referrerpolicy=no-referrer-when-downgrade

westend_runtime/weights/
polkadot_runtime_parachains_configuration.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Polkadot is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Polkadot.  If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `polkadot_runtime_parachains::configuration`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `13d69b199c54`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/westend-runtime/westend_runtime.wasm
32// --pallet=polkadot_runtime_parachains::configuration
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `polkadot_runtime_parachains::configuration`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> polkadot_runtime_parachains::configuration::WeightInfo for WeightInfo<T> {
54	/// Storage: `Configuration::PendingConfigs` (r:1 w:1)
55	/// Proof: `Configuration::PendingConfigs` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56	/// Storage: `Configuration::BypassConsistencyCheck` (r:1 w:0)
57	/// Proof: `Configuration::BypassConsistencyCheck` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
58	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
59	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
60	fn set_config_with_block_number() -> Weight {
61		// Proof Size summary in bytes:
62		//  Measured:  `151`
63		//  Estimated: `1636`
64		// Minimum execution time: 10_838_000 picoseconds.
65		Weight::from_parts(11_218_000, 0)
66			.saturating_add(Weight::from_parts(0, 1636))
67			.saturating_add(T::DbWeight::get().reads(3))
68			.saturating_add(T::DbWeight::get().writes(1))
69	}
70	/// Storage: `Configuration::PendingConfigs` (r:1 w:1)
71	/// Proof: `Configuration::PendingConfigs` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
72	/// Storage: `Configuration::BypassConsistencyCheck` (r:1 w:0)
73	/// Proof: `Configuration::BypassConsistencyCheck` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
74	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
75	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
76	fn set_config_with_u32() -> Weight {
77		// Proof Size summary in bytes:
78		//  Measured:  `151`
79		//  Estimated: `1636`
80		// Minimum execution time: 10_949_000 picoseconds.
81		Weight::from_parts(11_200_000, 0)
82			.saturating_add(Weight::from_parts(0, 1636))
83			.saturating_add(T::DbWeight::get().reads(3))
84			.saturating_add(T::DbWeight::get().writes(1))
85	}
86	/// Storage: `Configuration::PendingConfigs` (r:1 w:1)
87	/// Proof: `Configuration::PendingConfigs` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88	/// Storage: `Configuration::BypassConsistencyCheck` (r:1 w:0)
89	/// Proof: `Configuration::BypassConsistencyCheck` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
90	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
91	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92	fn set_config_with_option_u32() -> Weight {
93		// Proof Size summary in bytes:
94		//  Measured:  `151`
95		//  Estimated: `1636`
96		// Minimum execution time: 10_975_000 picoseconds.
97		Weight::from_parts(11_519_000, 0)
98			.saturating_add(Weight::from_parts(0, 1636))
99			.saturating_add(T::DbWeight::get().reads(3))
100			.saturating_add(T::DbWeight::get().writes(1))
101	}
102	/// Storage: `Benchmark::Override` (r:0 w:0)
103	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
104	fn set_hrmp_open_request_ttl() -> Weight {
105		// Proof Size summary in bytes:
106		//  Measured:  `0`
107		//  Estimated: `0`
108		// Minimum execution time: 2_000_000_000_000 picoseconds.
109		Weight::from_parts(2_000_000_000_000, 0)
110			.saturating_add(Weight::from_parts(0, 0))
111	}
112	/// Storage: `Configuration::PendingConfigs` (r:1 w:1)
113	/// Proof: `Configuration::PendingConfigs` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
114	/// Storage: `Configuration::BypassConsistencyCheck` (r:1 w:0)
115	/// Proof: `Configuration::BypassConsistencyCheck` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
116	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
117	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
118	fn set_config_with_balance() -> Weight {
119		// Proof Size summary in bytes:
120		//  Measured:  `151`
121		//  Estimated: `1636`
122		// Minimum execution time: 10_729_000 picoseconds.
123		Weight::from_parts(11_195_000, 0)
124			.saturating_add(Weight::from_parts(0, 1636))
125			.saturating_add(T::DbWeight::get().reads(3))
126			.saturating_add(T::DbWeight::get().writes(1))
127	}
128	/// Storage: `Configuration::PendingConfigs` (r:1 w:1)
129	/// Proof: `Configuration::PendingConfigs` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
130	/// Storage: `Configuration::BypassConsistencyCheck` (r:1 w:0)
131	/// Proof: `Configuration::BypassConsistencyCheck` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
132	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
133	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
134	fn set_config_with_executor_params() -> Weight {
135		// Proof Size summary in bytes:
136		//  Measured:  `151`
137		//  Estimated: `1636`
138		// Minimum execution time: 12_949_000 picoseconds.
139		Weight::from_parts(13_251_000, 0)
140			.saturating_add(Weight::from_parts(0, 1636))
141			.saturating_add(T::DbWeight::get().reads(3))
142			.saturating_add(T::DbWeight::get().writes(1))
143	}
144	/// Storage: `Configuration::PendingConfigs` (r:1 w:1)
145	/// Proof: `Configuration::PendingConfigs` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
146	/// Storage: `Configuration::BypassConsistencyCheck` (r:1 w:0)
147	/// Proof: `Configuration::BypassConsistencyCheck` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
148	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
149	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
150	fn set_config_with_perbill() -> Weight {
151		// Proof Size summary in bytes:
152		//  Measured:  `151`
153		//  Estimated: `1636`
154		// Minimum execution time: 10_683_000 picoseconds.
155		Weight::from_parts(11_196_000, 0)
156			.saturating_add(Weight::from_parts(0, 1636))
157			.saturating_add(T::DbWeight::get().reads(3))
158			.saturating_add(T::DbWeight::get().writes(1))
159	}
160	/// Storage: `Configuration::PendingConfigs` (r:1 w:1)
161	/// Proof: `Configuration::PendingConfigs` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162	/// Storage: `Configuration::BypassConsistencyCheck` (r:1 w:0)
163	/// Proof: `Configuration::BypassConsistencyCheck` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
164	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
165	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
166	fn set_node_feature() -> Weight {
167		// Proof Size summary in bytes:
168		//  Measured:  `151`
169		//  Estimated: `1636`
170		// Minimum execution time: 12_855_000 picoseconds.
171		Weight::from_parts(13_484_000, 0)
172			.saturating_add(Weight::from_parts(0, 1636))
173			.saturating_add(T::DbWeight::get().reads(3))
174			.saturating_add(T::DbWeight::get().writes(1))
175	}
176	/// Storage: `Configuration::PendingConfigs` (r:1 w:1)
177	/// Proof: `Configuration::PendingConfigs` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
178	/// Storage: `Configuration::BypassConsistencyCheck` (r:1 w:0)
179	/// Proof: `Configuration::BypassConsistencyCheck` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
180	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
181	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
182	fn set_config_with_scheduler_params() -> Weight {
183		// Proof Size summary in bytes:
184		//  Measured:  `151`
185		//  Estimated: `1636`
186		// Minimum execution time: 10_933_000 picoseconds.
187		Weight::from_parts(11_367_000, 0)
188			.saturating_add(Weight::from_parts(0, 1636))
189			.saturating_add(T::DbWeight::get().reads(3))
190			.saturating_add(T::DbWeight::get().writes(1))
191	}
192}