westend_runtime/weights/polkadot_runtime_parachains_paras_inherent.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::paras_inherent`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `3a2e9ae8a8f5`, 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::paras_inherent
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::paras_inherent`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> polkadot_runtime_parachains::paras_inherent::WeightInfo for WeightInfo<T> {
54 /// Storage: `ParaInherent::Included` (r:1 w:1)
55 /// Proof: `ParaInherent::Included` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56 /// Storage: `System::ParentHash` (r:1 w:0)
57 /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
58 /// Storage: `ParasShared::AllowedRelayParents` (r:1 w:1)
59 /// Proof: `ParasShared::AllowedRelayParents` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
60 /// Storage: `ParaScheduler::ClaimQueue` (r:1 w:0)
61 /// Proof: `ParaScheduler::ClaimQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
62 /// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
63 /// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
64 /// Storage: `ParaScheduler::ValidatorGroups` (r:1 w:0)
65 /// Proof: `ParaScheduler::ValidatorGroups` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
66 /// Storage: `ParasShared::ActiveValidatorKeys` (r:1 w:0)
67 /// Proof: `ParasShared::ActiveValidatorKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
68 /// Storage: `Babe::AuthorVrfRandomness` (r:1 w:0)
69 /// Proof: `Babe::AuthorVrfRandomness` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
70 /// Storage: `ParaInherent::OnChainVotes` (r:1 w:1)
71 /// Proof: `ParaInherent::OnChainVotes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
72 /// Storage: `ParasDisputes::Frozen` (r:1 w:0)
73 /// Proof: `ParasDisputes::Frozen` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
74 /// Storage: `ParaInclusion::V1` (r:1 w:0)
75 /// Proof: `ParaInclusion::V1` (`max_values`: None, `max_size`: None, mode: `Measured`)
76 /// Storage: `ParaScheduler::SessionStartBlock` (r:1 w:0)
77 /// Proof: `ParaScheduler::SessionStartBlock` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
78 /// Storage: `Initializer::BufferedSessionChanges` (r:1 w:0)
79 /// Proof: `Initializer::BufferedSessionChanges` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
80 /// Storage: `ParasShared::ActiveValidatorIndices` (r:1 w:0)
81 /// Proof: `ParasShared::ActiveValidatorIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
82 /// Storage: `Session::DisabledValidators` (r:1 w:0)
83 /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
84 fn enter_empty() -> Weight {
85 // Proof Size summary in bytes:
86 // Measured: `37558`
87 // Estimated: `41023`
88 // Minimum execution time: 204_765_000 picoseconds.
89 Weight::from_parts(218_574_000, 0)
90 .saturating_add(Weight::from_parts(0, 41023))
91 .saturating_add(T::DbWeight::get().reads(15))
92 .saturating_add(T::DbWeight::get().writes(3))
93 }
94 /// Storage: `ParaInherent::Included` (r:1 w:1)
95 /// Proof: `ParaInherent::Included` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96 /// Storage: `System::ParentHash` (r:1 w:0)
97 /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
98 /// Storage: `ParasShared::AllowedRelayParents` (r:1 w:1)
99 /// Proof: `ParasShared::AllowedRelayParents` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
100 /// Storage: `ParaScheduler::ClaimQueue` (r:1 w:1)
101 /// Proof: `ParaScheduler::ClaimQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
102 /// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
103 /// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
104 /// Storage: `ParaScheduler::ValidatorGroups` (r:1 w:0)
105 /// Proof: `ParaScheduler::ValidatorGroups` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
106 /// Storage: `ParasShared::ActiveValidatorKeys` (r:1 w:0)
107 /// Proof: `ParasShared::ActiveValidatorKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
108 /// Storage: `Babe::AuthorVrfRandomness` (r:1 w:0)
109 /// Proof: `Babe::AuthorVrfRandomness` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
110 /// Storage: `ParaSessionInfo::Sessions` (r:1 w:0)
111 /// Proof: `ParaSessionInfo::Sessions` (`max_values`: None, `max_size`: None, mode: `Measured`)
112 /// Storage: `ParasDisputes::Disputes` (r:1 w:1)
113 /// Proof: `ParasDisputes::Disputes` (`max_values`: None, `max_size`: None, mode: `Measured`)
114 /// Storage: `ParasDisputes::BackersOnDisputes` (r:1 w:1)
115 /// Proof: `ParasDisputes::BackersOnDisputes` (`max_values`: None, `max_size`: None, mode: `Measured`)
116 /// Storage: `ParasDisputes::Included` (r:1 w:1)
117 /// Proof: `ParasDisputes::Included` (`max_values`: None, `max_size`: None, mode: `Measured`)
118 /// Storage: `ParaSessionInfo::AccountKeys` (r:1 w:0)
119 /// Proof: `ParaSessionInfo::AccountKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
120 /// Storage: `Session::Validators` (r:1 w:0)
121 /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
122 /// Storage: `Staking::ActiveEra` (r:1 w:0)
123 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
124 /// Storage: `Staking::ErasRewardPoints` (r:1 w:1)
125 /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: None, mode: `Measured`)
126 /// Storage: `ParaInherent::OnChainVotes` (r:1 w:1)
127 /// Proof: `ParaInherent::OnChainVotes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
128 /// Storage: `ParasDisputes::Frozen` (r:1 w:0)
129 /// Proof: `ParasDisputes::Frozen` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
130 /// Storage: `ParaInclusion::V1` (r:2 w:1)
131 /// Proof: `ParaInclusion::V1` (`max_values`: None, `max_size`: None, mode: `Measured`)
132 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
133 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
134 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:1)
135 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
136 /// Storage: `Hrmp::HrmpChannelDigests` (r:1 w:1)
137 /// Proof: `Hrmp::HrmpChannelDigests` (`max_values`: None, `max_size`: None, mode: `Measured`)
138 /// Storage: `Paras::FutureCodeUpgrades` (r:1 w:0)
139 /// Proof: `Paras::FutureCodeUpgrades` (`max_values`: None, `max_size`: None, mode: `Measured`)
140 /// Storage: `ParaScheduler::SessionStartBlock` (r:1 w:0)
141 /// Proof: `ParaScheduler::SessionStartBlock` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
142 /// Storage: `Initializer::BufferedSessionChanges` (r:1 w:0)
143 /// Proof: `Initializer::BufferedSessionChanges` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
144 /// Storage: `ParasShared::ActiveValidatorIndices` (r:1 w:0)
145 /// Proof: `ParasShared::ActiveValidatorIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
146 /// Storage: `Session::DisabledValidators` (r:1 w:0)
147 /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
148 /// Storage: `CoretimeAssignmentProvider::CoreDescriptors` (r:1 w:1)
149 /// Proof: `CoretimeAssignmentProvider::CoreDescriptors` (`max_values`: None, `max_size`: None, mode: `Measured`)
150 /// Storage: `Hrmp::HrmpWatermarks` (r:0 w:1)
151 /// Proof: `Hrmp::HrmpWatermarks` (`max_values`: None, `max_size`: None, mode: `Measured`)
152 /// Storage: `Paras::Heads` (r:0 w:1)
153 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
154 /// Storage: `Paras::UpgradeGoAheadSignal` (r:0 w:1)
155 /// Proof: `Paras::UpgradeGoAheadSignal` (`max_values`: None, `max_size`: None, mode: `Measured`)
156 /// Storage: `Paras::MostRecentContext` (r:0 w:1)
157 /// Proof: `Paras::MostRecentContext` (`max_values`: None, `max_size`: None, mode: `Measured`)
158 /// The range of component `v` is `[400, 1024]`.
159 fn enter_variable_disputes(v: u32, ) -> Weight {
160 // Proof Size summary in bytes:
161 // Measured: `117466`
162 // Estimated: `123406`
163 // Minimum execution time: 18_505_556_000 picoseconds.
164 Weight::from_parts(680_113_149, 0)
165 .saturating_add(Weight::from_parts(0, 123406))
166 // Standard Error: 16_387
167 .saturating_add(Weight::from_parts(44_859_126, 0).saturating_mul(v.into()))
168 .saturating_add(T::DbWeight::get().reads(29))
169 .saturating_add(T::DbWeight::get().writes(17))
170 }
171 /// Storage: `ParaInherent::Included` (r:1 w:1)
172 /// Proof: `ParaInherent::Included` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
173 /// Storage: `System::ParentHash` (r:1 w:0)
174 /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
175 /// Storage: `ParasShared::AllowedRelayParents` (r:1 w:1)
176 /// Proof: `ParasShared::AllowedRelayParents` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
177 /// Storage: `ParaScheduler::ClaimQueue` (r:1 w:0)
178 /// Proof: `ParaScheduler::ClaimQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
179 /// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
180 /// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
181 /// Storage: `ParaScheduler::ValidatorGroups` (r:1 w:0)
182 /// Proof: `ParaScheduler::ValidatorGroups` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
183 /// Storage: `ParasShared::ActiveValidatorKeys` (r:1 w:0)
184 /// Proof: `ParasShared::ActiveValidatorKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
185 /// Storage: `Babe::AuthorVrfRandomness` (r:1 w:0)
186 /// Proof: `Babe::AuthorVrfRandomness` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
187 /// Storage: `ParaInherent::OnChainVotes` (r:1 w:1)
188 /// Proof: `ParaInherent::OnChainVotes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
189 /// Storage: `ParasDisputes::Frozen` (r:1 w:0)
190 /// Proof: `ParasDisputes::Frozen` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
191 /// Storage: `ParaInclusion::V1` (r:2 w:1)
192 /// Proof: `ParaInclusion::V1` (`max_values`: None, `max_size`: None, mode: `Measured`)
193 /// Storage: `ParaScheduler::SessionStartBlock` (r:1 w:0)
194 /// Proof: `ParaScheduler::SessionStartBlock` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
195 /// Storage: `Initializer::BufferedSessionChanges` (r:1 w:0)
196 /// Proof: `Initializer::BufferedSessionChanges` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
197 /// Storage: `ParasShared::ActiveValidatorIndices` (r:1 w:0)
198 /// Proof: `ParasShared::ActiveValidatorIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
199 /// Storage: `Session::DisabledValidators` (r:1 w:0)
200 /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
201 fn enter_bitfields() -> Weight {
202 // Proof Size summary in bytes:
203 // Measured: `74966`
204 // Estimated: `80906`
205 // Minimum execution time: 462_150_000 picoseconds.
206 Weight::from_parts(479_816_000, 0)
207 .saturating_add(Weight::from_parts(0, 80906))
208 .saturating_add(T::DbWeight::get().reads(16))
209 .saturating_add(T::DbWeight::get().writes(4))
210 }
211 /// Storage: `ParaInherent::Included` (r:1 w:1)
212 /// Proof: `ParaInherent::Included` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
213 /// Storage: `System::ParentHash` (r:1 w:0)
214 /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
215 /// Storage: `ParasShared::AllowedRelayParents` (r:1 w:1)
216 /// Proof: `ParasShared::AllowedRelayParents` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
217 /// Storage: `ParaScheduler::ClaimQueue` (r:1 w:1)
218 /// Proof: `ParaScheduler::ClaimQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
219 /// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
220 /// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
221 /// Storage: `ParaScheduler::ValidatorGroups` (r:1 w:0)
222 /// Proof: `ParaScheduler::ValidatorGroups` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
223 /// Storage: `ParasShared::ActiveValidatorKeys` (r:1 w:0)
224 /// Proof: `ParasShared::ActiveValidatorKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
225 /// Storage: `Babe::AuthorVrfRandomness` (r:1 w:0)
226 /// Proof: `Babe::AuthorVrfRandomness` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
227 /// Storage: `ParaInherent::OnChainVotes` (r:1 w:1)
228 /// Proof: `ParaInherent::OnChainVotes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
229 /// Storage: `ParasDisputes::Frozen` (r:1 w:0)
230 /// Proof: `ParasDisputes::Frozen` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
231 /// Storage: `ParaInclusion::V1` (r:2 w:1)
232 /// Proof: `ParaInclusion::V1` (`max_values`: None, `max_size`: None, mode: `Measured`)
233 /// Storage: `ParaSessionInfo::AccountKeys` (r:1 w:0)
234 /// Proof: `ParaSessionInfo::AccountKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
235 /// Storage: `Session::Validators` (r:1 w:0)
236 /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
237 /// Storage: `Staking::ActiveEra` (r:1 w:0)
238 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
239 /// Storage: `Staking::ErasRewardPoints` (r:1 w:1)
240 /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: None, mode: `Measured`)
241 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
242 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
243 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:1)
244 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
245 /// Storage: `Hrmp::HrmpChannelDigests` (r:1 w:1)
246 /// Proof: `Hrmp::HrmpChannelDigests` (`max_values`: None, `max_size`: None, mode: `Measured`)
247 /// Storage: `Paras::FutureCodeUpgrades` (r:1 w:0)
248 /// Proof: `Paras::FutureCodeUpgrades` (`max_values`: None, `max_size`: None, mode: `Measured`)
249 /// Storage: `ParasDisputes::Disputes` (r:1 w:0)
250 /// Proof: `ParasDisputes::Disputes` (`max_values`: None, `max_size`: None, mode: `Measured`)
251 /// Storage: `ParaScheduler::SessionStartBlock` (r:1 w:0)
252 /// Proof: `ParaScheduler::SessionStartBlock` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
253 /// Storage: `Initializer::BufferedSessionChanges` (r:1 w:0)
254 /// Proof: `Initializer::BufferedSessionChanges` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
255 /// Storage: `Paras::CurrentCodeHash` (r:1 w:0)
256 /// Proof: `Paras::CurrentCodeHash` (`max_values`: None, `max_size`: None, mode: `Measured`)
257 /// Storage: `Paras::ParaLifecycles` (r:1 w:0)
258 /// Proof: `Paras::ParaLifecycles` (`max_values`: None, `max_size`: None, mode: `Measured`)
259 /// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
260 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(55), added: 2530, mode: `MaxEncodedLen`)
261 /// Storage: `ParasShared::ActiveValidatorIndices` (r:1 w:0)
262 /// Proof: `ParasShared::ActiveValidatorIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
263 /// Storage: `Session::DisabledValidators` (r:1 w:0)
264 /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
265 /// Storage: `CoretimeAssignmentProvider::CoreDescriptors` (r:1 w:1)
266 /// Proof: `CoretimeAssignmentProvider::CoreDescriptors` (`max_values`: None, `max_size`: None, mode: `Measured`)
267 /// Storage: `ParasDisputes::Included` (r:0 w:1)
268 /// Proof: `ParasDisputes::Included` (`max_values`: None, `max_size`: None, mode: `Measured`)
269 /// Storage: `Hrmp::HrmpWatermarks` (r:0 w:1)
270 /// Proof: `Hrmp::HrmpWatermarks` (`max_values`: None, `max_size`: None, mode: `Measured`)
271 /// Storage: `Paras::Heads` (r:0 w:1)
272 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
273 /// Storage: `Paras::UpgradeGoAheadSignal` (r:0 w:1)
274 /// Proof: `Paras::UpgradeGoAheadSignal` (`max_values`: None, `max_size`: None, mode: `Measured`)
275 /// Storage: `Paras::MostRecentContext` (r:0 w:1)
276 /// Proof: `Paras::MostRecentContext` (`max_values`: None, `max_size`: None, mode: `Measured`)
277 /// The range of component `v` is `[2, 5]`.
278 fn enter_backed_candidates_variable(v: u32, ) -> Weight {
279 // Proof Size summary in bytes:
280 // Measured: `76410`
281 // Estimated: `82350`
282 // Minimum execution time: 1_488_610_000 picoseconds.
283 Weight::from_parts(1_450_591_151, 0)
284 .saturating_add(Weight::from_parts(0, 82350))
285 // Standard Error: 393_462
286 .saturating_add(Weight::from_parts(44_344_438, 0).saturating_mul(v.into()))
287 .saturating_add(T::DbWeight::get().reads(29))
288 .saturating_add(T::DbWeight::get().writes(15))
289 }
290 /// Storage: `ParaInherent::Included` (r:1 w:1)
291 /// Proof: `ParaInherent::Included` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
292 /// Storage: `System::ParentHash` (r:1 w:0)
293 /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
294 /// Storage: `ParasShared::AllowedRelayParents` (r:1 w:1)
295 /// Proof: `ParasShared::AllowedRelayParents` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
296 /// Storage: `ParaScheduler::ClaimQueue` (r:1 w:1)
297 /// Proof: `ParaScheduler::ClaimQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
298 /// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
299 /// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
300 /// Storage: `ParaScheduler::ValidatorGroups` (r:1 w:0)
301 /// Proof: `ParaScheduler::ValidatorGroups` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
302 /// Storage: `ParasShared::ActiveValidatorKeys` (r:1 w:0)
303 /// Proof: `ParasShared::ActiveValidatorKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
304 /// Storage: `Babe::AuthorVrfRandomness` (r:1 w:0)
305 /// Proof: `Babe::AuthorVrfRandomness` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
306 /// Storage: `ParaInherent::OnChainVotes` (r:1 w:1)
307 /// Proof: `ParaInherent::OnChainVotes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
308 /// Storage: `ParasDisputes::Frozen` (r:1 w:0)
309 /// Proof: `ParasDisputes::Frozen` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
310 /// Storage: `ParaInclusion::V1` (r:2 w:1)
311 /// Proof: `ParaInclusion::V1` (`max_values`: None, `max_size`: None, mode: `Measured`)
312 /// Storage: `ParaSessionInfo::AccountKeys` (r:1 w:0)
313 /// Proof: `ParaSessionInfo::AccountKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
314 /// Storage: `Session::Validators` (r:1 w:0)
315 /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
316 /// Storage: `Staking::ActiveEra` (r:1 w:0)
317 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
318 /// Storage: `Staking::ErasRewardPoints` (r:1 w:1)
319 /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: None, mode: `Measured`)
320 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
321 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
322 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:1)
323 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
324 /// Storage: `Hrmp::HrmpChannelDigests` (r:1 w:1)
325 /// Proof: `Hrmp::HrmpChannelDigests` (`max_values`: None, `max_size`: None, mode: `Measured`)
326 /// Storage: `Paras::FutureCodeUpgrades` (r:1 w:0)
327 /// Proof: `Paras::FutureCodeUpgrades` (`max_values`: None, `max_size`: None, mode: `Measured`)
328 /// Storage: `ParasDisputes::Disputes` (r:1 w:0)
329 /// Proof: `ParasDisputes::Disputes` (`max_values`: None, `max_size`: None, mode: `Measured`)
330 /// Storage: `ParaScheduler::SessionStartBlock` (r:1 w:0)
331 /// Proof: `ParaScheduler::SessionStartBlock` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
332 /// Storage: `Initializer::BufferedSessionChanges` (r:1 w:0)
333 /// Proof: `Initializer::BufferedSessionChanges` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
334 /// Storage: `Paras::CurrentCodeHash` (r:1 w:0)
335 /// Proof: `Paras::CurrentCodeHash` (`max_values`: None, `max_size`: None, mode: `Measured`)
336 /// Storage: `Paras::FutureCodeHash` (r:1 w:0)
337 /// Proof: `Paras::FutureCodeHash` (`max_values`: None, `max_size`: None, mode: `Measured`)
338 /// Storage: `Paras::UpgradeRestrictionSignal` (r:1 w:0)
339 /// Proof: `Paras::UpgradeRestrictionSignal` (`max_values`: None, `max_size`: None, mode: `Measured`)
340 /// Storage: `Paras::ParaLifecycles` (r:1 w:0)
341 /// Proof: `Paras::ParaLifecycles` (`max_values`: None, `max_size`: None, mode: `Measured`)
342 /// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
343 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(55), added: 2530, mode: `MaxEncodedLen`)
344 /// Storage: `ParasShared::ActiveValidatorIndices` (r:1 w:0)
345 /// Proof: `ParasShared::ActiveValidatorIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
346 /// Storage: `Session::DisabledValidators` (r:1 w:0)
347 /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
348 /// Storage: `CoretimeAssignmentProvider::CoreDescriptors` (r:1 w:1)
349 /// Proof: `CoretimeAssignmentProvider::CoreDescriptors` (`max_values`: None, `max_size`: None, mode: `Measured`)
350 /// Storage: `ParasDisputes::Included` (r:0 w:1)
351 /// Proof: `ParasDisputes::Included` (`max_values`: None, `max_size`: None, mode: `Measured`)
352 /// Storage: `Hrmp::HrmpWatermarks` (r:0 w:1)
353 /// Proof: `Hrmp::HrmpWatermarks` (`max_values`: None, `max_size`: None, mode: `Measured`)
354 /// Storage: `Paras::Heads` (r:0 w:1)
355 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
356 /// Storage: `Paras::UpgradeGoAheadSignal` (r:0 w:1)
357 /// Proof: `Paras::UpgradeGoAheadSignal` (`max_values`: None, `max_size`: None, mode: `Measured`)
358 /// Storage: `Paras::MostRecentContext` (r:0 w:1)
359 /// Proof: `Paras::MostRecentContext` (`max_values`: None, `max_size`: None, mode: `Measured`)
360 fn enter_backed_candidate_code_upgrade() -> Weight {
361 // Proof Size summary in bytes:
362 // Measured: `76423`
363 // Estimated: `82363`
364 // Minimum execution time: 83_641_026_000 picoseconds.
365 Weight::from_parts(84_843_754_000, 0)
366 .saturating_add(Weight::from_parts(0, 82363))
367 .saturating_add(T::DbWeight::get().reads(31))
368 .saturating_add(T::DbWeight::get().writes(15))
369 }
370}