referrerpolicy=no-referrer-when-downgrade

westend_runtime/weights/
polkadot_runtime_parachains_inclusion.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::inclusion`
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::inclusion
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::inclusion`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> polkadot_runtime_parachains::inclusion::WeightInfo for WeightInfo<T> {
54	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
55	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56	/// Storage: `ParaSessionInfo::AccountKeys` (r:1 w:0)
57	/// Proof: `ParaSessionInfo::AccountKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
58	/// Storage: `Session::Validators` (r:1 w:0)
59	/// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
60	/// Storage: `Staking::ActiveEra` (r:1 w:0)
61	/// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
62	/// Storage: `Staking::ErasRewardPoints` (r:1 w:1)
63	/// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: None, mode: `Measured`)
64	/// Storage: `Paras::FutureCodeHash` (r:1 w:1)
65	/// Proof: `Paras::FutureCodeHash` (`max_values`: None, `max_size`: None, mode: `Measured`)
66	/// Storage: `Paras::CurrentCodeHash` (r:1 w:0)
67	/// Proof: `Paras::CurrentCodeHash` (`max_values`: None, `max_size`: None, mode: `Measured`)
68	/// Storage: `Paras::UpgradeCooldowns` (r:1 w:1)
69	/// Proof: `Paras::UpgradeCooldowns` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
70	/// Storage: `Paras::PvfActiveVoteMap` (r:1 w:1)
71	/// Proof: `Paras::PvfActiveVoteMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
72	/// Storage: `Paras::CodeByHash` (r:1 w:1)
73	/// Proof: `Paras::CodeByHash` (`max_values`: None, `max_size`: None, mode: `Measured`)
74	/// Storage: `ParasShared::ActiveValidatorKeys` (r:1 w:0)
75	/// Proof: `ParasShared::ActiveValidatorKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
76	/// Storage: `Paras::PvfActiveVoteList` (r:1 w:1)
77	/// Proof: `Paras::PvfActiveVoteList` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
78	/// Storage: `Paras::CodeByHashRefs` (r:1 w:1)
79	/// Proof: `Paras::CodeByHashRefs` (`max_values`: None, `max_size`: None, mode: `Measured`)
80	/// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
81	/// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
82	/// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:1)
83	/// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
84	/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
85	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(55), added: 2530, mode: `MaxEncodedLen`)
86	/// Storage: `MessageQueue::Pages` (r:1 w:2)
87	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(131122), added: 133597, mode: `MaxEncodedLen`)
88	/// Storage: `Hrmp::HrmpChannelDigests` (r:3 w:3)
89	/// Proof: `Hrmp::HrmpChannelDigests` (`max_values`: None, `max_size`: None, mode: `Measured`)
90	/// Storage: `Hrmp::HrmpChannels` (r:2 w:2)
91	/// Proof: `Hrmp::HrmpChannels` (`max_values`: None, `max_size`: None, mode: `Measured`)
92	/// Storage: `Hrmp::HrmpChannelContents` (r:2 w:2)
93	/// Proof: `Hrmp::HrmpChannelContents` (`max_values`: None, `max_size`: None, mode: `Measured`)
94	/// Storage: `Paras::FutureCodeUpgrades` (r:1 w:0)
95	/// Proof: `Paras::FutureCodeUpgrades` (`max_values`: None, `max_size`: None, mode: `Measured`)
96	/// Storage: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1)
97	/// Proof: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1)
98	/// Storage: `Hrmp::HrmpWatermarks` (r:0 w:1)
99	/// Proof: `Hrmp::HrmpWatermarks` (`max_values`: None, `max_size`: None, mode: `Measured`)
100	/// Storage: `Paras::Heads` (r:0 w:1)
101	/// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
102	/// Storage: `Paras::UpgradeGoAheadSignal` (r:0 w:1)
103	/// Proof: `Paras::UpgradeGoAheadSignal` (`max_values`: None, `max_size`: None, mode: `Measured`)
104	/// Storage: `Paras::MostRecentContext` (r:0 w:1)
105	/// Proof: `Paras::MostRecentContext` (`max_values`: None, `max_size`: None, mode: `Measured`)
106	/// Storage: `Paras::UpgradeRestrictionSignal` (r:0 w:1)
107	/// Proof: `Paras::UpgradeRestrictionSignal` (`max_values`: None, `max_size`: None, mode: `Measured`)
108	/// Storage: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1)
109	/// Proof: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1)
110	/// The range of component `u` is `[0, 2]`.
111	/// The range of component `h` is `[0, 2]`.
112	/// The range of component `c` is `[0, 1]`.
113	fn enact_candidate(u: u32, h: u32, c: u32, ) -> Weight {
114		// Proof Size summary in bytes:
115		//  Measured:  `1447 + c * (15992 ±0) + h * (92 ±0) + u * (131259 ±0)`
116		//  Estimated: `134587 + c * (25419 ±939) + h * (29985 ±511) + u * (82828 ±511)`
117		// Minimum execution time: 1_208_571_000 picoseconds.
118		Weight::from_parts(156_323_556, 0)
119			.saturating_add(Weight::from_parts(0, 134587))
120			// Standard Error: 1_121_931
121			.saturating_add(Weight::from_parts(529_418_705, 0).saturating_mul(u.into()))
122			// Standard Error: 1_121_931
123			.saturating_add(Weight::from_parts(527_179_667, 0).saturating_mul(h.into()))
124			// Standard Error: 1_859_173
125			.saturating_add(Weight::from_parts(45_652_413, 0).saturating_mul(c.into()))
126			.saturating_add(T::DbWeight::get().reads(8))
127			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
128			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(h.into())))
129			.saturating_add(T::DbWeight::get().reads((9_u64).saturating_mul(c.into())))
130			.saturating_add(T::DbWeight::get().writes(6))
131			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(u.into())))
132			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(h.into())))
133			.saturating_add(T::DbWeight::get().writes((8_u64).saturating_mul(c.into())))
134			.saturating_add(Weight::from_parts(0, 25419).saturating_mul(c.into()))
135			.saturating_add(Weight::from_parts(0, 29985).saturating_mul(h.into()))
136			.saturating_add(Weight::from_parts(0, 82828).saturating_mul(u.into()))
137	}
138}