collectives_westend_runtime/weights/pallet_collective.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_collective`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `e0f303704c84`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/collectives-westend-runtime/collectives_westend_runtime.wasm
31// --pallet=pallet_collective
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/collectives/collectives-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_collective`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> {
53 /// Storage: `AllianceMotion::Members` (r:1 w:1)
54 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
55 /// Storage: `AllianceMotion::Proposals` (r:1 w:0)
56 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
57 /// Storage: `AllianceMotion::Voting` (r:100 w:100)
58 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
59 /// Storage: `AllianceMotion::Prime` (r:0 w:1)
60 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
61 /// The range of component `m` is `[0, 100]`.
62 /// The range of component `n` is `[0, 100]`.
63 /// The range of component `p` is `[0, 100]`.
64 fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
65 // Proof Size summary in bytes:
66 // Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
67 // Estimated: `15728 + m * (1967 ±23) + p * (4332 ±23)`
68 // Minimum execution time: 16_273_000 picoseconds.
69 Weight::from_parts(16_696_000, 0)
70 .saturating_add(Weight::from_parts(0, 15728))
71 // Standard Error: 74_425
72 .saturating_add(Weight::from_parts(5_587_078, 0).saturating_mul(m.into()))
73 // Standard Error: 74_425
74 .saturating_add(Weight::from_parts(9_950_043, 0).saturating_mul(p.into()))
75 .saturating_add(T::DbWeight::get().reads(2))
76 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
77 .saturating_add(T::DbWeight::get().writes(2))
78 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
79 .saturating_add(Weight::from_parts(0, 1967).saturating_mul(m.into()))
80 .saturating_add(Weight::from_parts(0, 4332).saturating_mul(p.into()))
81 }
82 /// Storage: `AllianceMotion::Members` (r:1 w:0)
83 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
84 /// The range of component `b` is `[2, 1024]`.
85 /// The range of component `m` is `[1, 100]`.
86 fn execute(b: u32, m: u32, ) -> Weight {
87 // Proof Size summary in bytes:
88 // Measured: `69 + m * (32 ±0)`
89 // Estimated: `1555 + m * (32 ±0)`
90 // Minimum execution time: 14_858_000 picoseconds.
91 Weight::from_parts(14_156_893, 0)
92 .saturating_add(Weight::from_parts(0, 1555))
93 // Standard Error: 31
94 .saturating_add(Weight::from_parts(1_367, 0).saturating_mul(b.into()))
95 // Standard Error: 319
96 .saturating_add(Weight::from_parts(16_451, 0).saturating_mul(m.into()))
97 .saturating_add(T::DbWeight::get().reads(1))
98 .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
99 }
100 /// Storage: `AllianceMotion::Members` (r:1 w:0)
101 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
102 /// Storage: `AllianceMotion::ProposalOf` (r:1 w:0)
103 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
104 /// The range of component `b` is `[2, 1024]`.
105 /// The range of component `m` is `[1, 100]`.
106 fn propose_execute(b: u32, m: u32, ) -> Weight {
107 // Proof Size summary in bytes:
108 // Measured: `69 + m * (32 ±0)`
109 // Estimated: `3535 + m * (32 ±0)`
110 // Minimum execution time: 17_653_000 picoseconds.
111 Weight::from_parts(16_775_034, 0)
112 .saturating_add(Weight::from_parts(0, 3535))
113 // Standard Error: 35
114 .saturating_add(Weight::from_parts(1_558, 0).saturating_mul(b.into()))
115 // Standard Error: 370
116 .saturating_add(Weight::from_parts(27_907, 0).saturating_mul(m.into()))
117 .saturating_add(T::DbWeight::get().reads(2))
118 .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
119 }
120 /// Storage: `AllianceMotion::Members` (r:1 w:0)
121 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
122 /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1)
123 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
124 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
125 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
126 /// Storage: `AllianceMotion::ProposalCount` (r:1 w:1)
127 /// Proof: `AllianceMotion::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
128 /// Storage: `AllianceMotion::Voting` (r:0 w:1)
129 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
130 /// The range of component `b` is `[2, 1024]`.
131 /// The range of component `m` is `[2, 100]`.
132 /// The range of component `p` is `[1, 100]`.
133 fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
134 // Proof Size summary in bytes:
135 // Measured: `359 + m * (32 ±0) + p * (36 ±0)`
136 // Estimated: `3751 + m * (33 ±0) + p * (36 ±0)`
137 // Minimum execution time: 23_361_000 picoseconds.
138 Weight::from_parts(21_486_243, 0)
139 .saturating_add(Weight::from_parts(0, 3751))
140 // Standard Error: 235
141 .saturating_add(Weight::from_parts(3_711, 0).saturating_mul(b.into()))
142 // Standard Error: 2_462
143 .saturating_add(Weight::from_parts(49_738, 0).saturating_mul(m.into()))
144 // Standard Error: 2_430
145 .saturating_add(Weight::from_parts(217_480, 0).saturating_mul(p.into()))
146 .saturating_add(T::DbWeight::get().reads(4))
147 .saturating_add(T::DbWeight::get().writes(4))
148 .saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into()))
149 .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
150 }
151 /// Storage: `AllianceMotion::Members` (r:1 w:0)
152 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
153 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
154 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
155 /// The range of component `m` is `[5, 100]`.
156 fn vote(m: u32, ) -> Weight {
157 // Proof Size summary in bytes:
158 // Measured: `808 + m * (64 ±0)`
159 // Estimated: `4272 + m * (64 ±0)`
160 // Minimum execution time: 31_498_000 picoseconds.
161 Weight::from_parts(32_782_494, 0)
162 .saturating_add(Weight::from_parts(0, 4272))
163 // Standard Error: 833
164 .saturating_add(Weight::from_parts(41_618, 0).saturating_mul(m.into()))
165 .saturating_add(T::DbWeight::get().reads(2))
166 .saturating_add(T::DbWeight::get().writes(1))
167 .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
168 }
169 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
170 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
171 /// Storage: `AllianceMotion::Members` (r:1 w:0)
172 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
173 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
174 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
175 /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1)
176 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
177 /// The range of component `m` is `[4, 100]`.
178 /// The range of component `p` is `[1, 100]`.
179 fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
180 // Proof Size summary in bytes:
181 // Measured: `397 + m * (64 ±0) + p * (36 ±0)`
182 // Estimated: `3842 + m * (65 ±0) + p * (36 ±0)`
183 // Minimum execution time: 27_489_000 picoseconds.
184 Weight::from_parts(30_750_053, 0)
185 .saturating_add(Weight::from_parts(0, 3842))
186 // Standard Error: 1_459
187 .saturating_add(Weight::from_parts(43_268, 0).saturating_mul(m.into()))
188 // Standard Error: 1_423
189 .saturating_add(Weight::from_parts(204_203, 0).saturating_mul(p.into()))
190 .saturating_add(T::DbWeight::get().reads(3))
191 .saturating_add(T::DbWeight::get().writes(3))
192 .saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
193 .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
194 }
195 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
196 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
197 /// Storage: `AllianceMotion::Members` (r:1 w:0)
198 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
199 /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1)
200 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
201 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
202 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
203 /// The range of component `b` is `[2, 1024]`.
204 /// The range of component `m` is `[4, 100]`.
205 /// The range of component `p` is `[1, 100]`.
206 fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
207 // Proof Size summary in bytes:
208 // Measured: `699 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
209 // Estimated: `4016 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
210 // Minimum execution time: 42_776_000 picoseconds.
211 Weight::from_parts(44_404_614, 0)
212 .saturating_add(Weight::from_parts(0, 4016))
213 // Standard Error: 192
214 .saturating_add(Weight::from_parts(2_919, 0).saturating_mul(b.into()))
215 // Standard Error: 2_034
216 .saturating_add(Weight::from_parts(20_724, 0).saturating_mul(m.into()))
217 // Standard Error: 1_982
218 .saturating_add(Weight::from_parts(218_386, 0).saturating_mul(p.into()))
219 .saturating_add(T::DbWeight::get().reads(4))
220 .saturating_add(T::DbWeight::get().writes(3))
221 .saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
222 .saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
223 .saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
224 }
225 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
226 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
227 /// Storage: `AllianceMotion::Members` (r:1 w:0)
228 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
229 /// Storage: `AllianceMotion::Prime` (r:1 w:0)
230 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
231 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
232 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
233 /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1)
234 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
235 /// The range of component `m` is `[4, 100]`.
236 /// The range of component `p` is `[1, 100]`.
237 fn close_disapproved(m: u32, p: u32, ) -> Weight {
238 // Proof Size summary in bytes:
239 // Measured: `495 + m * (48 ±0) + p * (36 ±0)`
240 // Estimated: `3935 + m * (49 ±0) + p * (36 ±0)`
241 // Minimum execution time: 32_738_000 picoseconds.
242 Weight::from_parts(32_423_025, 0)
243 .saturating_add(Weight::from_parts(0, 3935))
244 // Standard Error: 1_306
245 .saturating_add(Weight::from_parts(45_893, 0).saturating_mul(m.into()))
246 // Standard Error: 1_273
247 .saturating_add(Weight::from_parts(210_810, 0).saturating_mul(p.into()))
248 .saturating_add(T::DbWeight::get().reads(4))
249 .saturating_add(T::DbWeight::get().writes(3))
250 .saturating_add(Weight::from_parts(0, 49).saturating_mul(m.into()))
251 .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
252 }
253 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
254 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
255 /// Storage: `AllianceMotion::Members` (r:1 w:0)
256 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
257 /// Storage: `AllianceMotion::Prime` (r:1 w:0)
258 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
259 /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1)
260 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
261 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
262 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
263 /// The range of component `b` is `[2, 1024]`.
264 /// The range of component `m` is `[4, 100]`.
265 /// The range of component `p` is `[1, 100]`.
266 fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
267 // Proof Size summary in bytes:
268 // Measured: `719 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
269 // Estimated: `4036 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
270 // Minimum execution time: 44_168_000 picoseconds.
271 Weight::from_parts(46_428_136, 0)
272 .saturating_add(Weight::from_parts(0, 4036))
273 // Standard Error: 174
274 .saturating_add(Weight::from_parts(2_573, 0).saturating_mul(b.into()))
275 // Standard Error: 1_842
276 .saturating_add(Weight::from_parts(29_044, 0).saturating_mul(m.into()))
277 // Standard Error: 1_795
278 .saturating_add(Weight::from_parts(223_527, 0).saturating_mul(p.into()))
279 .saturating_add(T::DbWeight::get().reads(5))
280 .saturating_add(T::DbWeight::get().writes(3))
281 .saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
282 .saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
283 .saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
284 }
285 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
286 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
287 /// Storage: `AllianceMotion::Voting` (r:0 w:1)
288 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
289 /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1)
290 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
291 /// The range of component `p` is `[1, 100]`.
292 fn disapprove_proposal(p: u32, ) -> Weight {
293 // Proof Size summary in bytes:
294 // Measured: `226 + p * (32 ±0)`
295 // Estimated: `1711 + p * (32 ±0)`
296 // Minimum execution time: 14_524_000 picoseconds.
297 Weight::from_parts(16_298_044, 0)
298 .saturating_add(Weight::from_parts(0, 1711))
299 // Standard Error: 1_381
300 .saturating_add(Weight::from_parts(177_631, 0).saturating_mul(p.into()))
301 .saturating_add(T::DbWeight::get().reads(1))
302 .saturating_add(T::DbWeight::get().writes(3))
303 .saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
304 }
305 /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1)
306 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
307 /// Storage: `AllianceMotion::CostOf` (r:1 w:0)
308 /// Proof: `AllianceMotion::CostOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
309 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
310 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
311 /// Storage: `AllianceMotion::Voting` (r:0 w:1)
312 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
313 /// The range of component `d` is `[0, 1]`.
314 /// The range of component `p` is `[1, 100]`.
315 fn kill(d: u32, p: u32, ) -> Weight {
316 // Proof Size summary in bytes:
317 // Measured: `1497 + p * (36 ±0)`
318 // Estimated: `4896 + d * (123 ±6) + p * (37 ±0)`
319 // Minimum execution time: 21_079_000 picoseconds.
320 Weight::from_parts(24_345_812, 0)
321 .saturating_add(Weight::from_parts(0, 4896))
322 // Standard Error: 150_548
323 .saturating_add(Weight::from_parts(1_841_577, 0).saturating_mul(d.into()))
324 // Standard Error: 2_331
325 .saturating_add(Weight::from_parts(242_465, 0).saturating_mul(p.into()))
326 .saturating_add(T::DbWeight::get().reads(3))
327 .saturating_add(T::DbWeight::get().writes(3))
328 .saturating_add(Weight::from_parts(0, 123).saturating_mul(d.into()))
329 .saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
330 }
331 /// Storage: `AllianceMotion::ProposalOf` (r:1 w:0)
332 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
333 /// Storage: `AllianceMotion::CostOf` (r:1 w:0)
334 /// Proof: `AllianceMotion::CostOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
335 fn release_proposal_cost() -> Weight {
336 // Proof Size summary in bytes:
337 // Measured: `911`
338 // Estimated: `4376`
339 // Minimum execution time: 17_024_000 picoseconds.
340 Weight::from_parts(17_620_000, 0)
341 .saturating_add(Weight::from_parts(0, 4376))
342 .saturating_add(T::DbWeight::get().reads(2))
343 }
344}