referrerpolicy=no-referrer-when-downgrade

pallet_election_provider_multi_block/weights/
pallet_election_provider_multi_block_signed_dot_size.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
19//! Autogenerated weights for `pallet_election_provider_multi_block_signed`
20//!
21//! This is a special template for `election-provider-multi-block` pallet. This is required because
22// ! we don't want to generate the `trait WeightInfo`.
23//!
24//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
25//! DATE: 2025-10-08, STEPS: `10`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
26//! WORST CASE MAP SIZE: `1000000`
27//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor`
28//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
29
30// Executed Command:
31// ../../../../../target/release/frame-omni-bencher
32// v1
33// benchmark
34// pallet
35// --pallet
36// pallet_election_provider_multi_block_signed
37// --extrinsic
38// *
39// --runtime
40// ../../../../../target/release/wbuild/pallet-staking-async-parachain-runtime/pallet_staking_async_parachain_runtime.compact.wasm
41// --steps
42// 10
43// --repeat
44// 10
45// --genesis-builder-preset
46// fake-dot
47// --template
48// ../../../../../substrate/frame/election-provider-multi-block/src/template.hbs
49// --heap-pages
50// 65000
51// --output
52// ./pallet_election_provider_multi_block_signed_fake-dot.rs
53
54#![cfg_attr(rustfmt, rustfmt_skip)]
55#![allow(unused_parens)]
56#![allow(unused_imports)]
57#![allow(missing_docs)]
58#![allow(dead_code)]
59
60use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
61use core::marker::PhantomData;
62
63/// Weights for `pallet_election_provider_multi_block_signed`.
64pub struct WeightInfo<T>(PhantomData<T>);
65impl<T: frame_system::Config> crate::weights::traits::pallet_election_provider_multi_block_signed::WeightInfo for WeightInfo<T> {
66	/// Storage: `MultiBlockElection::CurrentPhase` (r:1 w:0)
67	/// Proof: `MultiBlockElection::CurrentPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `Measured`)
68	/// Storage: `MultiBlockElectionSigned::Invulnerables` (r:1 w:0)
69	/// Proof: `MultiBlockElectionSigned::Invulnerables` (`max_values`: Some(1), `max_size`: Some(513), added: 1008, mode: `Measured`)
70	/// Storage: `MultiBlockElection::Round` (r:1 w:0)
71	/// Proof: `MultiBlockElection::Round` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `Measured`)
72	/// Storage: `MultiBlockElectionSigned::SortedScores` (r:1 w:1)
73	/// Proof: `MultiBlockElectionSigned::SortedScores` (`max_values`: None, `max_size`: Some(653), added: 3128, mode: `Measured`)
74	/// Storage: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
75	/// Proof: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
76	/// Storage: `Balances::Holds` (r:1 w:1)
77	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(211), added: 2686, mode: `Measured`)
78	/// Storage: `MultiBlockElectionSigned::SubmissionMetadataStorage` (r:0 w:1)
79	/// Proof: `MultiBlockElectionSigned::SubmissionMetadataStorage` (`max_values`: None, `max_size`: Some(181), added: 2656, mode: `Measured`)
80	fn register_not_full() -> Weight {
81		// Proof Size summary in bytes:
82		//  Measured:  `3312`
83		//  Estimated: `6777`
84		// Minimum execution time: 130_211_000 picoseconds.
85		Weight::from_parts(131_911_000, 6777)
86			.saturating_add(T::DbWeight::get().reads(6_u64))
87			.saturating_add(T::DbWeight::get().writes(3_u64))
88	}
89	/// Storage: `MultiBlockElection::CurrentPhase` (r:1 w:0)
90	/// Proof: `MultiBlockElection::CurrentPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `Measured`)
91	/// Storage: `MultiBlockElectionSigned::Invulnerables` (r:1 w:0)
92	/// Proof: `MultiBlockElectionSigned::Invulnerables` (`max_values`: Some(1), `max_size`: Some(513), added: 1008, mode: `Measured`)
93	/// Storage: `MultiBlockElection::Round` (r:1 w:0)
94	/// Proof: `MultiBlockElection::Round` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `Measured`)
95	/// Storage: `MultiBlockElectionSigned::SortedScores` (r:1 w:1)
96	/// Proof: `MultiBlockElectionSigned::SortedScores` (`max_values`: None, `max_size`: Some(653), added: 3128, mode: `Measured`)
97	/// Storage: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
98	/// Proof: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
99	/// Storage: `Balances::Holds` (r:2 w:2)
100	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(211), added: 2686, mode: `Measured`)
101	/// Storage: `MultiBlockElectionSigned::SubmissionMetadataStorage` (r:1 w:2)
102	/// Proof: `MultiBlockElectionSigned::SubmissionMetadataStorage` (`max_values`: None, `max_size`: Some(181), added: 2656, mode: `Measured`)
103	/// Storage: `MultiBlockElectionSigned::SubmissionStorage` (r:32 w:32)
104	/// Proof: `MultiBlockElectionSigned::SubmissionStorage` (`max_values`: None, `max_size`: Some(45072), added: 47547, mode: `Measured`)
105	fn register_eject() -> Weight {
106		// Proof Size summary in bytes:
107		//  Measured:  `7846`
108		//  Estimated: `88036`
109		// Minimum execution time: 314_814_000 picoseconds.
110		Weight::from_parts(323_504_000, 88036)
111			.saturating_add(T::DbWeight::get().reads(40_u64))
112			.saturating_add(T::DbWeight::get().writes(37_u64))
113	}
114	/// Storage: `MultiBlockElection::CurrentPhase` (r:1 w:0)
115	/// Proof: `MultiBlockElection::CurrentPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `Measured`)
116	/// Storage: `MultiBlockElection::Round` (r:1 w:0)
117	/// Proof: `MultiBlockElection::Round` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `Measured`)
118	/// Storage: `MultiBlockElectionSigned::SubmissionMetadataStorage` (r:1 w:1)
119	/// Proof: `MultiBlockElectionSigned::SubmissionMetadataStorage` (`max_values`: None, `max_size`: Some(181), added: 2656, mode: `Measured`)
120	/// Storage: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
121	/// Proof: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
122	/// Storage: `MultiBlockElectionSigned::Invulnerables` (r:1 w:0)
123	/// Proof: `MultiBlockElectionSigned::Invulnerables` (`max_values`: Some(1), `max_size`: Some(513), added: 1008, mode: `Measured`)
124	/// Storage: `MultiBlockElectionSigned::SortedScores` (r:1 w:0)
125	/// Proof: `MultiBlockElectionSigned::SortedScores` (`max_values`: None, `max_size`: Some(653), added: 3128, mode: `Measured`)
126	/// Storage: `Balances::Holds` (r:1 w:1)
127	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(211), added: 2686, mode: `Measured`)
128	/// Storage: `MultiBlockElectionSigned::SubmissionStorage` (r:1 w:1)
129	/// Proof: `MultiBlockElectionSigned::SubmissionStorage` (`max_values`: None, `max_size`: Some(45072), added: 47547, mode: `Measured`)
130	fn submit_page() -> Weight {
131		// Proof Size summary in bytes:
132		//  Measured:  `3845`
133		//  Estimated: `7310`
134		// Minimum execution time: 313_002_000 picoseconds.
135		Weight::from_parts(329_092_000, 7310)
136			.saturating_add(T::DbWeight::get().reads(8_u64))
137			.saturating_add(T::DbWeight::get().writes(3_u64))
138	}
139	/// Storage: `MultiBlockElection::CurrentPhase` (r:1 w:0)
140	/// Proof: `MultiBlockElection::CurrentPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `Measured`)
141	/// Storage: `MultiBlockElection::Round` (r:1 w:0)
142	/// Proof: `MultiBlockElection::Round` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `Measured`)
143	/// Storage: `MultiBlockElectionSigned::SubmissionMetadataStorage` (r:1 w:1)
144	/// Proof: `MultiBlockElectionSigned::SubmissionMetadataStorage` (`max_values`: None, `max_size`: Some(181), added: 2656, mode: `Measured`)
145	/// Storage: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
146	/// Proof: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
147	/// Storage: `MultiBlockElectionSigned::Invulnerables` (r:1 w:0)
148	/// Proof: `MultiBlockElectionSigned::Invulnerables` (`max_values`: Some(1), `max_size`: Some(513), added: 1008, mode: `Measured`)
149	/// Storage: `MultiBlockElectionSigned::SortedScores` (r:1 w:0)
150	/// Proof: `MultiBlockElectionSigned::SortedScores` (`max_values`: None, `max_size`: Some(653), added: 3128, mode: `Measured`)
151	/// Storage: `Balances::Holds` (r:1 w:1)
152	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(211), added: 2686, mode: `Measured`)
153	/// Storage: `MultiBlockElectionSigned::SubmissionStorage` (r:1 w:1)
154	/// Proof: `MultiBlockElectionSigned::SubmissionStorage` (`max_values`: None, `max_size`: Some(45072), added: 47547, mode: `Measured`)
155	fn unset_page() -> Weight {
156		// Proof Size summary in bytes:
157		//  Measured:  `6737`
158		//  Estimated: `10202`
159		// Minimum execution time: 262_482_000 picoseconds.
160		Weight::from_parts(288_781_000, 10202)
161			.saturating_add(T::DbWeight::get().reads(8_u64))
162			.saturating_add(T::DbWeight::get().writes(3_u64))
163	}
164	/// Storage: `MultiBlockElection::CurrentPhase` (r:1 w:0)
165	/// Proof: `MultiBlockElection::CurrentPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `Measured`)
166	/// Storage: `MultiBlockElection::Round` (r:1 w:0)
167	/// Proof: `MultiBlockElection::Round` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `Measured`)
168	/// Storage: `MultiBlockElectionSigned::SortedScores` (r:1 w:1)
169	/// Proof: `MultiBlockElectionSigned::SortedScores` (`max_values`: None, `max_size`: Some(653), added: 3128, mode: `Measured`)
170	/// Storage: `MultiBlockElectionSigned::SubmissionStorage` (r:32 w:32)
171	/// Proof: `MultiBlockElectionSigned::SubmissionStorage` (`max_values`: None, `max_size`: Some(45072), added: 47547, mode: `Measured`)
172	/// Storage: `MultiBlockElectionSigned::SubmissionMetadataStorage` (r:1 w:1)
173	/// Proof: `MultiBlockElectionSigned::SubmissionMetadataStorage` (`max_values`: None, `max_size`: Some(181), added: 2656, mode: `Measured`)
174	/// Storage: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
175	/// Proof: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
176	/// Storage: `Balances::Holds` (r:1 w:1)
177	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(211), added: 2686, mode: `Measured`)
178	fn bail() -> Weight {
179		// Proof Size summary in bytes:
180		//  Measured:  `4777`
181		//  Estimated: `84967`
182		// Minimum execution time: 204_581_000 picoseconds.
183		Weight::from_parts(206_781_000, 84967)
184			.saturating_add(T::DbWeight::get().reads(38_u64))
185			.saturating_add(T::DbWeight::get().writes(35_u64))
186	}
187	/// Storage: `MultiBlockElection::Round` (r:1 w:0)
188	/// Proof: `MultiBlockElection::Round` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `Measured`)
189	/// Storage: `MultiBlockElectionSigned::SortedScores` (r:1 w:1)
190	/// Proof: `MultiBlockElectionSigned::SortedScores` (`max_values`: None, `max_size`: Some(653), added: 3128, mode: `Measured`)
191	/// Storage: `MultiBlockElectionSigned::SubmissionStorage` (r:32 w:32)
192	/// Proof: `MultiBlockElectionSigned::SubmissionStorage` (`max_values`: None, `max_size`: Some(45072), added: 47547, mode: `Measured`)
193	/// Storage: `MultiBlockElectionSigned::SubmissionMetadataStorage` (r:1 w:1)
194	/// Proof: `MultiBlockElectionSigned::SubmissionMetadataStorage` (`max_values`: None, `max_size`: Some(181), added: 2656, mode: `Measured`)
195	/// Storage: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
196	/// Proof: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
197	/// Storage: `Balances::Holds` (r:1 w:1)
198	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(211), added: 2686, mode: `Measured`)
199	/// Storage: `MultiBlockElectionSigned::Invulnerables` (r:1 w:0)
200	/// Proof: `MultiBlockElectionSigned::Invulnerables` (`max_values`: Some(1), `max_size`: Some(513), added: 1008, mode: `Measured`)
201	/// The range of component `p` is `[1, 32]`.
202	fn clear_old_round_data(p: u32, ) -> Weight {
203		// Proof Size summary in bytes:
204		//  Measured:  `3769 + p * (32 ±0)`
205		//  Estimated: `7234 + p * (2507 ±0)`
206		// Minimum execution time: 128_480_000 picoseconds.
207		Weight::from_parts(127_828_412, 7234)
208			// Standard Error: 25_106
209			.saturating_add(Weight::from_parts(1_389_687, 0).saturating_mul(p.into()))
210			.saturating_add(T::DbWeight::get().reads(6_u64))
211			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
212			.saturating_add(T::DbWeight::get().writes(3_u64))
213			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
214			.saturating_add(Weight::from_parts(0, 2507).saturating_mul(p.into()))
215	}
216}