pallet_election_provider_multi_block/weights/pallet_election_provider_multi_block_unsigned_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_unsigned`
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_unsigned
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_unsigned_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_unsigned`.
64pub struct WeightInfo<T>(PhantomData<T>);
65impl<T: frame_system::Config> crate::weights::traits::pallet_election_provider_multi_block_unsigned::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: UNKNOWN KEY `0x33ed3d010c1fea25c2adbfba9297161f` (r:1 w:0)
69 /// Proof: UNKNOWN KEY `0x33ed3d010c1fea25c2adbfba9297161f` (r:1 w:0)
70 /// Storage: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
71 /// Proof: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
72 /// Storage: `MultiBlockElection::Round` (r:1 w:0)
73 /// Proof: `MultiBlockElection::Round` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `Measured`)
74 /// Storage: `MultiBlockElectionVerifier::QueuedSolutionScore` (r:1 w:0)
75 /// Proof: `MultiBlockElectionVerifier::QueuedSolutionScore` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `Measured`)
76 /// Storage: `MultiBlockElectionVerifier::MinimumScore` (r:1 w:0)
77 /// Proof: `MultiBlockElectionVerifier::MinimumScore` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `Measured`)
78 /// Storage: `MultiBlockElection::DesiredTargets` (r:1 w:0)
79 /// Proof: `MultiBlockElection::DesiredTargets` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `Measured`)
80 /// Storage: UNKNOWN KEY `0xc209f5d8eb920681b56c64b8694ea78c` (r:1 w:0)
81 /// Proof: UNKNOWN KEY `0xc209f5d8eb920681b56c64b8694ea78c` (r:1 w:0)
82 fn validate_unsigned() -> Weight {
83 // Proof Size summary in bytes:
84 // Measured: `378`
85 // Estimated: `3843`
86 // Minimum execution time: 872_562_000 picoseconds.
87 Weight::from_parts(884_363_000, 3843)
88 .saturating_add(T::DbWeight::get().reads(8_u64))
89 }
90 /// Storage: UNKNOWN KEY `0x33ed3d010c1fea25c2adbfba9297161f` (r:1 w:0)
91 /// Proof: UNKNOWN KEY `0x33ed3d010c1fea25c2adbfba9297161f` (r:1 w:0)
92 /// Storage: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
93 /// Proof: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
94 /// Storage: `MultiBlockElection::Round` (r:1 w:0)
95 /// Proof: `MultiBlockElection::Round` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `Measured`)
96 /// Storage: `MultiBlockElectionVerifier::QueuedSolutionScore` (r:1 w:1)
97 /// Proof: `MultiBlockElectionVerifier::QueuedSolutionScore` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `Measured`)
98 /// Storage: `MultiBlockElectionVerifier::MinimumScore` (r:1 w:0)
99 /// Proof: `MultiBlockElectionVerifier::MinimumScore` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `Measured`)
100 /// Storage: `MultiBlockElection::PagedTargetSnapshot` (r:1 w:0)
101 /// Proof: `MultiBlockElection::PagedTargetSnapshot` (`max_values`: None, `max_size`: Some(64026), added: 66501, mode: `Measured`)
102 /// Storage: UNKNOWN KEY `0x5640fd84ada5e16d1b6739279282536c` (r:1 w:0)
103 /// Proof: UNKNOWN KEY `0x5640fd84ada5e16d1b6739279282536c` (r:1 w:0)
104 /// Storage: `MultiBlockElection::PagedVoterSnapshot` (r:4 w:0)
105 /// Proof: `MultiBlockElection::PagedVoterSnapshot` (`max_values`: None, `max_size`: Some(388785), added: 391260, mode: `Measured`)
106 /// Storage: UNKNOWN KEY `0x6f320d44e42312c78638e6c92dff65af` (r:1 w:0)
107 /// Proof: UNKNOWN KEY `0x6f320d44e42312c78638e6c92dff65af` (r:1 w:0)
108 /// Storage: `MultiBlockElection::DesiredTargets` (r:1 w:0)
109 /// Proof: `MultiBlockElection::DesiredTargets` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `Measured`)
110 /// Storage: `MultiBlockElectionVerifier::QueuedValidVariant` (r:1 w:0)
111 /// Proof: `MultiBlockElectionVerifier::QueuedValidVariant` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
112 /// Storage: `MultiBlockElectionVerifier::QueuedSolutionY` (r:0 w:4)
113 /// Proof: `MultiBlockElectionVerifier::QueuedSolutionY` (`max_values`: None, `max_size`: Some(33794026), added: 33796501, mode: `Measured`)
114 fn submit_unsigned() -> Weight {
115 // Proof Size summary in bytes:
116 // Measured: `1451085`
117 // Estimated: `1461975`
118 // Minimum execution time: 21_018_046_000 picoseconds.
119 Weight::from_parts(21_116_907_000, 1461975)
120 .saturating_add(T::DbWeight::get().reads(14_u64))
121 .saturating_add(T::DbWeight::get().writes(5_u64))
122 }
123}