pallet_runtime_configs/
weights.rs

1
2//! Autogenerated weights for pallet_runtime_configs
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.0
5//! DATE: 2024-09-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `Ubuntu-2404-noble-amd64-base`, CPU: `Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz`
8//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
9
10// Executed Command:
11// ./target/release/subspace-node
12// benchmark
13// pallet
14// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
15// --genesis-builder=runtime
16// --steps=50
17// --repeat=20
18// --pallet=pallet_runtime_configs
19// --extrinsic=*
20// --wasm-execution=compiled
21// --heap-pages=4096
22// --output=./weights/pallet-runtime-configs.rs
23// --template=./frame-weight-template.hbs
24
25#![cfg_attr(rustfmt, rustfmt_skip)]
26#![allow(unused_parens)]
27#![allow(unused_imports)]
28
29use frame_support::{traits::Get, weights::{Weight, constants::ParityDbWeight}};
30use core::marker::PhantomData;
31
32/// Weight functions needed for pallet_runtime_configs.
33pub trait WeightInfo {
34	fn set_enable_domains() -> Weight;
35	fn set_enable_dynamic_cost_of_storage() -> Weight;
36	fn set_enable_balance_transfers() -> Weight;
37}
38
39/// Weights for pallet_runtime_configs using the Substrate node and recommended hardware.
40pub struct SubstrateWeight<T>(PhantomData<T>);
41impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
42	/// Storage: `RuntimeConfigs::EnableDomains` (r:0 w:1)
43	/// Proof: `RuntimeConfigs::EnableDomains` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
44	fn set_enable_domains() -> Weight {
45		// Proof Size summary in bytes:
46		//  Measured:  `0`
47		//  Estimated: `0`
48		// Minimum execution time: 3_227_000 picoseconds.
49		Weight::from_parts(3_380_000, 0)
50			.saturating_add(T::DbWeight::get().writes(1_u64))
51	}
52	/// Storage: `RuntimeConfigs::EnableDynamicCostOfStorage` (r:0 w:1)
53	/// Proof: `RuntimeConfigs::EnableDynamicCostOfStorage` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
54	fn set_enable_dynamic_cost_of_storage() -> Weight {
55		// Proof Size summary in bytes:
56		//  Measured:  `0`
57		//  Estimated: `0`
58		// Minimum execution time: 3_003_000 picoseconds.
59		Weight::from_parts(3_122_000, 0)
60			.saturating_add(T::DbWeight::get().writes(1_u64))
61	}
62	/// Storage: `RuntimeConfigs::EnableBalanceTransfers` (r:0 w:1)
63	/// Proof: `RuntimeConfigs::EnableBalanceTransfers` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
64	fn set_enable_balance_transfers() -> Weight {
65		// Proof Size summary in bytes:
66		//  Measured:  `0`
67		//  Estimated: `0`
68		// Minimum execution time: 3_078_000 picoseconds.
69		Weight::from_parts(3_216_000, 0)
70			.saturating_add(T::DbWeight::get().writes(1_u64))
71	}
72}
73
74// For backwards compatibility and tests
75impl WeightInfo for () {
76	/// Storage: `RuntimeConfigs::EnableDomains` (r:0 w:1)
77	/// Proof: `RuntimeConfigs::EnableDomains` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
78	fn set_enable_domains() -> Weight {
79		// Proof Size summary in bytes:
80		//  Measured:  `0`
81		//  Estimated: `0`
82		// Minimum execution time: 3_227_000 picoseconds.
83		Weight::from_parts(3_380_000, 0)
84			.saturating_add(ParityDbWeight::get().writes(1_u64))
85	}
86	/// Storage: `RuntimeConfigs::EnableDynamicCostOfStorage` (r:0 w:1)
87	/// Proof: `RuntimeConfigs::EnableDynamicCostOfStorage` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
88	fn set_enable_dynamic_cost_of_storage() -> Weight {
89		// Proof Size summary in bytes:
90		//  Measured:  `0`
91		//  Estimated: `0`
92		// Minimum execution time: 3_003_000 picoseconds.
93		Weight::from_parts(3_122_000, 0)
94			.saturating_add(ParityDbWeight::get().writes(1_u64))
95	}
96	/// Storage: `RuntimeConfigs::EnableBalanceTransfers` (r:0 w:1)
97	/// Proof: `RuntimeConfigs::EnableBalanceTransfers` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
98	fn set_enable_balance_transfers() -> Weight {
99		// Proof Size summary in bytes:
100		//  Measured:  `0`
101		//  Estimated: `0`
102		// Minimum execution time: 3_078_000 picoseconds.
103		Weight::from_parts(3_216_000, 0)
104			.saturating_add(ParityDbWeight::get().writes(1_u64))
105	}
106}