referrerpolicy=no-referrer-when-downgrade

pallet_elections_phragmen/
weights.rs

1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// 	http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// 	http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_elections_phragmen`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_elections_phragmen
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/elections-phragmen/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --genesis-builder-policy=none
62// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier
63
64#![cfg_attr(rustfmt, rustfmt_skip)]
65#![allow(unused_parens)]
66#![allow(unused_imports)]
67#![allow(missing_docs)]
68#![allow(dead_code)]
69
70use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
71use core::marker::PhantomData;
72
73/// Weight functions needed for `pallet_elections_phragmen`.
74pub trait WeightInfo {
75	fn vote_equal(v: u32, ) -> Weight;
76	fn vote_more(v: u32, ) -> Weight;
77	fn vote_less(v: u32, ) -> Weight;
78	fn remove_voter() -> Weight;
79	fn submit_candidacy(c: u32, ) -> Weight;
80	fn renounce_candidacy_candidate(c: u32, ) -> Weight;
81	fn renounce_candidacy_members() -> Weight;
82	fn renounce_candidacy_runners_up() -> Weight;
83	fn remove_member_without_replacement() -> Weight;
84	fn remove_member_with_replacement() -> Weight;
85	fn clean_defunct_voters(v: u32, d: u32, ) -> Weight;
86	fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight;
87}
88
89/// Weights for `pallet_elections_phragmen` using the Substrate node and recommended hardware.
90pub struct SubstrateWeight<T>(PhantomData<T>);
91impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
92	/// Storage: `Elections::Candidates` (r:1 w:0)
93	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94	/// Storage: `Elections::Members` (r:1 w:0)
95	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96	/// Storage: `Elections::RunnersUp` (r:1 w:0)
97	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98	/// Storage: `Elections::Voting` (r:1 w:1)
99	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
100	/// Storage: `Balances::Locks` (r:1 w:1)
101	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
102	/// Storage: `Balances::Freezes` (r:1 w:0)
103	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
104	/// The range of component `v` is `[1, 16]`.
105	fn vote_equal(v: u32, ) -> Weight {
106		// Proof Size summary in bytes:
107		//  Measured:  `273 + v * (80 ±0)`
108		//  Estimated: `4764 + v * (83 ±0)`
109		// Minimum execution time: 30_859_000 picoseconds.
110		Weight::from_parts(31_688_053, 4764)
111			// Standard Error: 4_354
112			.saturating_add(Weight::from_parts(239_976, 0).saturating_mul(v.into()))
113			.saturating_add(T::DbWeight::get().reads(6_u64))
114			.saturating_add(T::DbWeight::get().writes(2_u64))
115			.saturating_add(Weight::from_parts(0, 83).saturating_mul(v.into()))
116	}
117	/// Storage: `Elections::Candidates` (r:1 w:0)
118	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
119	/// Storage: `Elections::Members` (r:1 w:0)
120	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
121	/// Storage: `Elections::RunnersUp` (r:1 w:0)
122	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
123	/// Storage: `Elections::Voting` (r:1 w:1)
124	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
125	/// Storage: `Balances::Locks` (r:1 w:1)
126	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
127	/// Storage: `Balances::Freezes` (r:1 w:0)
128	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
129	/// The range of component `v` is `[2, 16]`.
130	fn vote_more(v: u32, ) -> Weight {
131		// Proof Size summary in bytes:
132		//  Measured:  `241 + v * (80 ±0)`
133		//  Estimated: `4764 + v * (83 ±0)`
134		// Minimum execution time: 42_425_000 picoseconds.
135		Weight::from_parts(43_125_592, 4764)
136			// Standard Error: 4_549
137			.saturating_add(Weight::from_parts(244_542, 0).saturating_mul(v.into()))
138			.saturating_add(T::DbWeight::get().reads(6_u64))
139			.saturating_add(T::DbWeight::get().writes(2_u64))
140			.saturating_add(Weight::from_parts(0, 83).saturating_mul(v.into()))
141	}
142	/// Storage: `Elections::Candidates` (r:1 w:0)
143	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
144	/// Storage: `Elections::Members` (r:1 w:0)
145	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
146	/// Storage: `Elections::RunnersUp` (r:1 w:0)
147	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
148	/// Storage: `Elections::Voting` (r:1 w:1)
149	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
150	/// Storage: `Balances::Locks` (r:1 w:1)
151	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
152	/// Storage: `Balances::Freezes` (r:1 w:0)
153	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
154	/// The range of component `v` is `[2, 16]`.
155	fn vote_less(v: u32, ) -> Weight {
156		// Proof Size summary in bytes:
157		//  Measured:  `273 + v * (80 ±0)`
158		//  Estimated: `4764 + v * (83 ±0)`
159		// Minimum execution time: 42_205_000 picoseconds.
160		Weight::from_parts(43_351_255, 4764)
161			// Standard Error: 4_319
162			.saturating_add(Weight::from_parts(242_837, 0).saturating_mul(v.into()))
163			.saturating_add(T::DbWeight::get().reads(6_u64))
164			.saturating_add(T::DbWeight::get().writes(2_u64))
165			.saturating_add(Weight::from_parts(0, 83).saturating_mul(v.into()))
166	}
167	/// Storage: `Elections::Voting` (r:1 w:1)
168	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
169	/// Storage: `Balances::Locks` (r:1 w:1)
170	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
171	/// Storage: `Balances::Freezes` (r:1 w:0)
172	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
173	fn remove_voter() -> Weight {
174		// Proof Size summary in bytes:
175		//  Measured:  `794`
176		//  Estimated: `4764`
177		// Minimum execution time: 42_574_000 picoseconds.
178		Weight::from_parts(43_828_000, 4764)
179			.saturating_add(T::DbWeight::get().reads(3_u64))
180			.saturating_add(T::DbWeight::get().writes(2_u64))
181	}
182	/// Storage: `Elections::Candidates` (r:1 w:1)
183	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
184	/// Storage: `Elections::Members` (r:1 w:0)
185	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
186	/// Storage: `Elections::RunnersUp` (r:1 w:0)
187	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
188	/// The range of component `c` is `[1, 128]`.
189	fn submit_candidacy(c: u32, ) -> Weight {
190		// Proof Size summary in bytes:
191		//  Measured:  `1473 + c * (48 ±0)`
192		//  Estimated: `2959 + c * (48 ±0)`
193		// Minimum execution time: 35_171_000 picoseconds.
194		Weight::from_parts(36_158_550, 2959)
195			// Standard Error: 1_017
196			.saturating_add(Weight::from_parts(80_161, 0).saturating_mul(c.into()))
197			.saturating_add(T::DbWeight::get().reads(3_u64))
198			.saturating_add(T::DbWeight::get().writes(1_u64))
199			.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
200	}
201	/// Storage: `Elections::Candidates` (r:1 w:1)
202	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
203	/// The range of component `c` is `[1, 128]`.
204	fn renounce_candidacy_candidate(c: u32, ) -> Weight {
205		// Proof Size summary in bytes:
206		//  Measured:  `214 + c * (48 ±0)`
207		//  Estimated: `1750 + c * (48 ±0)`
208		// Minimum execution time: 27_427_000 picoseconds.
209		Weight::from_parts(28_254_151, 1750)
210			// Standard Error: 658
211			.saturating_add(Weight::from_parts(68_988, 0).saturating_mul(c.into()))
212			.saturating_add(T::DbWeight::get().reads(1_u64))
213			.saturating_add(T::DbWeight::get().writes(1_u64))
214			.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
215	}
216	/// Storage: `Elections::Members` (r:1 w:1)
217	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
218	/// Storage: `Elections::RunnersUp` (r:1 w:1)
219	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
220	/// Storage: `Council::Prime` (r:1 w:1)
221	/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
222	/// Storage: `Council::Proposals` (r:1 w:0)
223	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
224	/// Storage: `Council::Members` (r:0 w:1)
225	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
226	fn renounce_candidacy_members() -> Weight {
227		// Proof Size summary in bytes:
228		//  Measured:  `1575`
229		//  Estimated: `3060`
230		// Minimum execution time: 40_828_000 picoseconds.
231		Weight::from_parts(42_179_000, 3060)
232			.saturating_add(T::DbWeight::get().reads(4_u64))
233			.saturating_add(T::DbWeight::get().writes(4_u64))
234	}
235	/// Storage: `Elections::RunnersUp` (r:1 w:1)
236	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
237	fn renounce_candidacy_runners_up() -> Weight {
238		// Proof Size summary in bytes:
239		//  Measured:  `751`
240		//  Estimated: `2236`
241		// Minimum execution time: 29_536_000 picoseconds.
242		Weight::from_parts(30_472_000, 2236)
243			.saturating_add(T::DbWeight::get().reads(1_u64))
244			.saturating_add(T::DbWeight::get().writes(1_u64))
245	}
246	/// Storage: `Benchmark::Override` (r:0 w:0)
247	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
248	fn remove_member_without_replacement() -> Weight {
249		// Proof Size summary in bytes:
250		//  Measured:  `0`
251		//  Estimated: `0`
252		// Minimum execution time: 2_000_000_000_000 picoseconds.
253		Weight::from_parts(2_000_000_000_000, 0)
254	}
255	/// Storage: `Elections::Members` (r:1 w:1)
256	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
257	/// Storage: `System::Account` (r:1 w:1)
258	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
259	/// Storage: `Elections::RunnersUp` (r:1 w:1)
260	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
261	/// Storage: `Council::Prime` (r:1 w:1)
262	/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
263	/// Storage: `Council::Proposals` (r:1 w:0)
264	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
265	/// Storage: `Council::Members` (r:0 w:1)
266	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
267	fn remove_member_with_replacement() -> Weight {
268		// Proof Size summary in bytes:
269		//  Measured:  `1575`
270		//  Estimated: `3593`
271		// Minimum execution time: 45_629_000 picoseconds.
272		Weight::from_parts(47_206_000, 3593)
273			.saturating_add(T::DbWeight::get().reads(5_u64))
274			.saturating_add(T::DbWeight::get().writes(5_u64))
275	}
276	/// Storage: `Elections::Voting` (r:129 w:128)
277	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
278	/// Storage: `Elections::Members` (r:1 w:0)
279	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
280	/// Storage: `Elections::RunnersUp` (r:1 w:0)
281	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
282	/// Storage: `Elections::Candidates` (r:1 w:0)
283	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
284	/// Storage: `Balances::Locks` (r:128 w:128)
285	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
286	/// Storage: `Balances::Freezes` (r:128 w:0)
287	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
288	/// Storage: `System::Account` (r:128 w:128)
289	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
290	/// The range of component `v` is `[128, 256]`.
291	/// The range of component `d` is `[0, 128]`.
292	fn clean_defunct_voters(v: u32, d: u32, ) -> Weight {
293		// Proof Size summary in bytes:
294		//  Measured:  `0 + d * (810 ±0) + v * (56 ±0)`
295		//  Estimated: `12490 + d * (3774 ±0) + v * (28 ±0)`
296		// Minimum execution time: 5_075_000 picoseconds.
297		Weight::from_parts(5_442_000, 12490)
298			// Standard Error: 10_524
299			.saturating_add(Weight::from_parts(356_284, 0).saturating_mul(v.into()))
300			// Standard Error: 22_925
301			.saturating_add(Weight::from_parts(59_936_319, 0).saturating_mul(d.into()))
302			.saturating_add(T::DbWeight::get().reads(4_u64))
303			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(d.into())))
304			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(d.into())))
305			.saturating_add(Weight::from_parts(0, 3774).saturating_mul(d.into()))
306			.saturating_add(Weight::from_parts(0, 28).saturating_mul(v.into()))
307	}
308	/// Storage: `Elections::Candidates` (r:1 w:1)
309	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
310	/// Storage: `Elections::Members` (r:1 w:1)
311	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
312	/// Storage: `Elections::RunnersUp` (r:1 w:1)
313	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
314	/// Storage: `Elections::Voting` (r:257 w:0)
315	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
316	/// Storage: `Council::Proposals` (r:1 w:0)
317	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
318	/// Storage: `System::Account` (r:108 w:108)
319	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
320	/// Storage: `Elections::ElectionRounds` (r:1 w:1)
321	/// Proof: `Elections::ElectionRounds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
322	/// Storage: `Council::Members` (r:0 w:1)
323	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
324	/// Storage: `Council::Prime` (r:0 w:1)
325	/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
326	/// The range of component `c` is `[1, 128]`.
327	/// The range of component `v` is `[1, 256]`.
328	/// The range of component `e` is `[256, 4096]`.
329	fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
330		// Proof Size summary in bytes:
331		//  Measured:  `0 + e * (16 ±0) + v * (331 ±0)`
332		//  Estimated: `253201 + c * (2409 ±3) + e * (9 ±0) + v * (1952 ±4)`
333		// Minimum execution time: 1_442_707_000 picoseconds.
334		Weight::from_parts(1_453_511_000, 253201)
335			// Standard Error: 339_169
336			.saturating_add(Weight::from_parts(17_830_182, 0).saturating_mul(v.into()))
337			// Standard Error: 21_751
338			.saturating_add(Weight::from_parts(521_821, 0).saturating_mul(e.into()))
339			.saturating_add(T::DbWeight::get().reads(112_u64))
340			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into())))
341			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
342			.saturating_add(T::DbWeight::get().writes(6_u64))
343			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into())))
344			.saturating_add(Weight::from_parts(0, 2409).saturating_mul(c.into()))
345			.saturating_add(Weight::from_parts(0, 9).saturating_mul(e.into()))
346			.saturating_add(Weight::from_parts(0, 1952).saturating_mul(v.into()))
347	}
348}
349
350// For backwards compatibility and tests.
351impl WeightInfo for () {
352	/// Storage: `Elections::Candidates` (r:1 w:0)
353	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
354	/// Storage: `Elections::Members` (r:1 w:0)
355	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
356	/// Storage: `Elections::RunnersUp` (r:1 w:0)
357	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
358	/// Storage: `Elections::Voting` (r:1 w:1)
359	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
360	/// Storage: `Balances::Locks` (r:1 w:1)
361	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
362	/// Storage: `Balances::Freezes` (r:1 w:0)
363	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
364	/// The range of component `v` is `[1, 16]`.
365	fn vote_equal(v: u32, ) -> Weight {
366		// Proof Size summary in bytes:
367		//  Measured:  `273 + v * (80 ±0)`
368		//  Estimated: `4764 + v * (83 ±0)`
369		// Minimum execution time: 30_859_000 picoseconds.
370		Weight::from_parts(31_688_053, 4764)
371			// Standard Error: 4_354
372			.saturating_add(Weight::from_parts(239_976, 0).saturating_mul(v.into()))
373			.saturating_add(RocksDbWeight::get().reads(6_u64))
374			.saturating_add(RocksDbWeight::get().writes(2_u64))
375			.saturating_add(Weight::from_parts(0, 83).saturating_mul(v.into()))
376	}
377	/// Storage: `Elections::Candidates` (r:1 w:0)
378	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
379	/// Storage: `Elections::Members` (r:1 w:0)
380	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
381	/// Storage: `Elections::RunnersUp` (r:1 w:0)
382	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
383	/// Storage: `Elections::Voting` (r:1 w:1)
384	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
385	/// Storage: `Balances::Locks` (r:1 w:1)
386	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
387	/// Storage: `Balances::Freezes` (r:1 w:0)
388	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
389	/// The range of component `v` is `[2, 16]`.
390	fn vote_more(v: u32, ) -> Weight {
391		// Proof Size summary in bytes:
392		//  Measured:  `241 + v * (80 ±0)`
393		//  Estimated: `4764 + v * (83 ±0)`
394		// Minimum execution time: 42_425_000 picoseconds.
395		Weight::from_parts(43_125_592, 4764)
396			// Standard Error: 4_549
397			.saturating_add(Weight::from_parts(244_542, 0).saturating_mul(v.into()))
398			.saturating_add(RocksDbWeight::get().reads(6_u64))
399			.saturating_add(RocksDbWeight::get().writes(2_u64))
400			.saturating_add(Weight::from_parts(0, 83).saturating_mul(v.into()))
401	}
402	/// Storage: `Elections::Candidates` (r:1 w:0)
403	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
404	/// Storage: `Elections::Members` (r:1 w:0)
405	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
406	/// Storage: `Elections::RunnersUp` (r:1 w:0)
407	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
408	/// Storage: `Elections::Voting` (r:1 w:1)
409	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
410	/// Storage: `Balances::Locks` (r:1 w:1)
411	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
412	/// Storage: `Balances::Freezes` (r:1 w:0)
413	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
414	/// The range of component `v` is `[2, 16]`.
415	fn vote_less(v: u32, ) -> Weight {
416		// Proof Size summary in bytes:
417		//  Measured:  `273 + v * (80 ±0)`
418		//  Estimated: `4764 + v * (83 ±0)`
419		// Minimum execution time: 42_205_000 picoseconds.
420		Weight::from_parts(43_351_255, 4764)
421			// Standard Error: 4_319
422			.saturating_add(Weight::from_parts(242_837, 0).saturating_mul(v.into()))
423			.saturating_add(RocksDbWeight::get().reads(6_u64))
424			.saturating_add(RocksDbWeight::get().writes(2_u64))
425			.saturating_add(Weight::from_parts(0, 83).saturating_mul(v.into()))
426	}
427	/// Storage: `Elections::Voting` (r:1 w:1)
428	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
429	/// Storage: `Balances::Locks` (r:1 w:1)
430	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
431	/// Storage: `Balances::Freezes` (r:1 w:0)
432	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
433	fn remove_voter() -> Weight {
434		// Proof Size summary in bytes:
435		//  Measured:  `794`
436		//  Estimated: `4764`
437		// Minimum execution time: 42_574_000 picoseconds.
438		Weight::from_parts(43_828_000, 4764)
439			.saturating_add(RocksDbWeight::get().reads(3_u64))
440			.saturating_add(RocksDbWeight::get().writes(2_u64))
441	}
442	/// Storage: `Elections::Candidates` (r:1 w:1)
443	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
444	/// Storage: `Elections::Members` (r:1 w:0)
445	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
446	/// Storage: `Elections::RunnersUp` (r:1 w:0)
447	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
448	/// The range of component `c` is `[1, 128]`.
449	fn submit_candidacy(c: u32, ) -> Weight {
450		// Proof Size summary in bytes:
451		//  Measured:  `1473 + c * (48 ±0)`
452		//  Estimated: `2959 + c * (48 ±0)`
453		// Minimum execution time: 35_171_000 picoseconds.
454		Weight::from_parts(36_158_550, 2959)
455			// Standard Error: 1_017
456			.saturating_add(Weight::from_parts(80_161, 0).saturating_mul(c.into()))
457			.saturating_add(RocksDbWeight::get().reads(3_u64))
458			.saturating_add(RocksDbWeight::get().writes(1_u64))
459			.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
460	}
461	/// Storage: `Elections::Candidates` (r:1 w:1)
462	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
463	/// The range of component `c` is `[1, 128]`.
464	fn renounce_candidacy_candidate(c: u32, ) -> Weight {
465		// Proof Size summary in bytes:
466		//  Measured:  `214 + c * (48 ±0)`
467		//  Estimated: `1750 + c * (48 ±0)`
468		// Minimum execution time: 27_427_000 picoseconds.
469		Weight::from_parts(28_254_151, 1750)
470			// Standard Error: 658
471			.saturating_add(Weight::from_parts(68_988, 0).saturating_mul(c.into()))
472			.saturating_add(RocksDbWeight::get().reads(1_u64))
473			.saturating_add(RocksDbWeight::get().writes(1_u64))
474			.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
475	}
476	/// Storage: `Elections::Members` (r:1 w:1)
477	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
478	/// Storage: `Elections::RunnersUp` (r:1 w:1)
479	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
480	/// Storage: `Council::Prime` (r:1 w:1)
481	/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
482	/// Storage: `Council::Proposals` (r:1 w:0)
483	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
484	/// Storage: `Council::Members` (r:0 w:1)
485	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
486	fn renounce_candidacy_members() -> Weight {
487		// Proof Size summary in bytes:
488		//  Measured:  `1575`
489		//  Estimated: `3060`
490		// Minimum execution time: 40_828_000 picoseconds.
491		Weight::from_parts(42_179_000, 3060)
492			.saturating_add(RocksDbWeight::get().reads(4_u64))
493			.saturating_add(RocksDbWeight::get().writes(4_u64))
494	}
495	/// Storage: `Elections::RunnersUp` (r:1 w:1)
496	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
497	fn renounce_candidacy_runners_up() -> Weight {
498		// Proof Size summary in bytes:
499		//  Measured:  `751`
500		//  Estimated: `2236`
501		// Minimum execution time: 29_536_000 picoseconds.
502		Weight::from_parts(30_472_000, 2236)
503			.saturating_add(RocksDbWeight::get().reads(1_u64))
504			.saturating_add(RocksDbWeight::get().writes(1_u64))
505	}
506	/// Storage: `Benchmark::Override` (r:0 w:0)
507	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
508	fn remove_member_without_replacement() -> Weight {
509		// Proof Size summary in bytes:
510		//  Measured:  `0`
511		//  Estimated: `0`
512		// Minimum execution time: 2_000_000_000_000 picoseconds.
513		Weight::from_parts(2_000_000_000_000, 0)
514	}
515	/// Storage: `Elections::Members` (r:1 w:1)
516	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
517	/// Storage: `System::Account` (r:1 w:1)
518	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
519	/// Storage: `Elections::RunnersUp` (r:1 w:1)
520	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
521	/// Storage: `Council::Prime` (r:1 w:1)
522	/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
523	/// Storage: `Council::Proposals` (r:1 w:0)
524	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
525	/// Storage: `Council::Members` (r:0 w:1)
526	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
527	fn remove_member_with_replacement() -> Weight {
528		// Proof Size summary in bytes:
529		//  Measured:  `1575`
530		//  Estimated: `3593`
531		// Minimum execution time: 45_629_000 picoseconds.
532		Weight::from_parts(47_206_000, 3593)
533			.saturating_add(RocksDbWeight::get().reads(5_u64))
534			.saturating_add(RocksDbWeight::get().writes(5_u64))
535	}
536	/// Storage: `Elections::Voting` (r:129 w:128)
537	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
538	/// Storage: `Elections::Members` (r:1 w:0)
539	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
540	/// Storage: `Elections::RunnersUp` (r:1 w:0)
541	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
542	/// Storage: `Elections::Candidates` (r:1 w:0)
543	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
544	/// Storage: `Balances::Locks` (r:128 w:128)
545	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
546	/// Storage: `Balances::Freezes` (r:128 w:0)
547	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
548	/// Storage: `System::Account` (r:128 w:128)
549	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
550	/// The range of component `v` is `[128, 256]`.
551	/// The range of component `d` is `[0, 128]`.
552	fn clean_defunct_voters(v: u32, d: u32, ) -> Weight {
553		// Proof Size summary in bytes:
554		//  Measured:  `0 + d * (810 ±0) + v * (56 ±0)`
555		//  Estimated: `12490 + d * (3774 ±0) + v * (28 ±0)`
556		// Minimum execution time: 5_075_000 picoseconds.
557		Weight::from_parts(5_442_000, 12490)
558			// Standard Error: 10_524
559			.saturating_add(Weight::from_parts(356_284, 0).saturating_mul(v.into()))
560			// Standard Error: 22_925
561			.saturating_add(Weight::from_parts(59_936_319, 0).saturating_mul(d.into()))
562			.saturating_add(RocksDbWeight::get().reads(4_u64))
563			.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(d.into())))
564			.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(d.into())))
565			.saturating_add(Weight::from_parts(0, 3774).saturating_mul(d.into()))
566			.saturating_add(Weight::from_parts(0, 28).saturating_mul(v.into()))
567	}
568	/// Storage: `Elections::Candidates` (r:1 w:1)
569	/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
570	/// Storage: `Elections::Members` (r:1 w:1)
571	/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
572	/// Storage: `Elections::RunnersUp` (r:1 w:1)
573	/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
574	/// Storage: `Elections::Voting` (r:257 w:0)
575	/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
576	/// Storage: `Council::Proposals` (r:1 w:0)
577	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
578	/// Storage: `System::Account` (r:108 w:108)
579	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
580	/// Storage: `Elections::ElectionRounds` (r:1 w:1)
581	/// Proof: `Elections::ElectionRounds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
582	/// Storage: `Council::Members` (r:0 w:1)
583	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
584	/// Storage: `Council::Prime` (r:0 w:1)
585	/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
586	/// The range of component `c` is `[1, 128]`.
587	/// The range of component `v` is `[1, 256]`.
588	/// The range of component `e` is `[256, 4096]`.
589	fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
590		// Proof Size summary in bytes:
591		//  Measured:  `0 + e * (16 ±0) + v * (331 ±0)`
592		//  Estimated: `253201 + c * (2409 ±3) + e * (9 ±0) + v * (1952 ±4)`
593		// Minimum execution time: 1_442_707_000 picoseconds.
594		Weight::from_parts(1_453_511_000, 253201)
595			// Standard Error: 339_169
596			.saturating_add(Weight::from_parts(17_830_182, 0).saturating_mul(v.into()))
597			// Standard Error: 21_751
598			.saturating_add(Weight::from_parts(521_821, 0).saturating_mul(e.into()))
599			.saturating_add(RocksDbWeight::get().reads(112_u64))
600			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into())))
601			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into())))
602			.saturating_add(RocksDbWeight::get().writes(6_u64))
603			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(c.into())))
604			.saturating_add(Weight::from_parts(0, 2409).saturating_mul(c.into()))
605			.saturating_add(Weight::from_parts(0, 9).saturating_mul(e.into()))
606			.saturating_add(Weight::from_parts(0, 1952).saturating_mul(v.into()))
607	}
608}