rococo_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-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `d3a9aad6f7a3`, 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/rococo-runtime/rococo_runtime.wasm
32// --pallet=polkadot_runtime_parachains::inclusion
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/rococo/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: `Paras::FutureCodeHash` (r:1 w:1)
55 /// Proof: `Paras::FutureCodeHash` (`max_values`: None, `max_size`: None, mode: `Measured`)
56 /// Storage: `Paras::CurrentCodeHash` (r:1 w:0)
57 /// Proof: `Paras::CurrentCodeHash` (`max_values`: None, `max_size`: None, mode: `Measured`)
58 /// Storage: `Paras::UpgradeCooldowns` (r:1 w:1)
59 /// Proof: `Paras::UpgradeCooldowns` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
60 /// Storage: `Paras::PvfActiveVoteMap` (r:1 w:1)
61 /// Proof: `Paras::PvfActiveVoteMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
62 /// Storage: `Paras::CodeByHash` (r:1 w:1)
63 /// Proof: `Paras::CodeByHash` (`max_values`: None, `max_size`: None, mode: `Measured`)
64 /// Storage: `ParasShared::ActiveValidatorKeys` (r:1 w:0)
65 /// Proof: `ParasShared::ActiveValidatorKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
66 /// Storage: `Paras::PvfActiveVoteList` (r:1 w:1)
67 /// Proof: `Paras::PvfActiveVoteList` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
68 /// Storage: `Paras::CodeByHashRefs` (r:1 w:1)
69 /// Proof: `Paras::CodeByHashRefs` (`max_values`: None, `max_size`: None, mode: `Measured`)
70 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
71 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
72 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:1)
73 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
74 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
75 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(55), added: 2530, mode: `MaxEncodedLen`)
76 /// Storage: `MessageQueue::Pages` (r:1 w:2)
77 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(32818), added: 35293, mode: `MaxEncodedLen`)
78 /// Storage: `Hrmp::HrmpChannelDigests` (r:3 w:3)
79 /// Proof: `Hrmp::HrmpChannelDigests` (`max_values`: None, `max_size`: None, mode: `Measured`)
80 /// Storage: `Hrmp::HrmpChannels` (r:2 w:2)
81 /// Proof: `Hrmp::HrmpChannels` (`max_values`: None, `max_size`: None, mode: `Measured`)
82 /// Storage: `Hrmp::HrmpChannelContents` (r:2 w:2)
83 /// Proof: `Hrmp::HrmpChannelContents` (`max_values`: None, `max_size`: None, mode: `Measured`)
84 /// Storage: `Paras::FutureCodeUpgrades` (r:1 w:0)
85 /// Proof: `Paras::FutureCodeUpgrades` (`max_values`: None, `max_size`: None, mode: `Measured`)
86 /// Storage: `Registrar::Paras` (r:1 w:0)
87 /// Proof: `Registrar::Paras` (`max_values`: None, `max_size`: None, mode: `Measured`)
88 /// Storage: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1)
89 /// Proof: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1)
90 /// Storage: `Hrmp::HrmpWatermarks` (r:0 w:1)
91 /// Proof: `Hrmp::HrmpWatermarks` (`max_values`: None, `max_size`: None, mode: `Measured`)
92 /// Storage: `Paras::Heads` (r:0 w:1)
93 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
94 /// Storage: `Paras::UpgradeGoAheadSignal` (r:0 w:1)
95 /// Proof: `Paras::UpgradeGoAheadSignal` (`max_values`: None, `max_size`: None, mode: `Measured`)
96 /// Storage: `Paras::MostRecentContext` (r:0 w:1)
97 /// Proof: `Paras::MostRecentContext` (`max_values`: None, `max_size`: None, mode: `Measured`)
98 /// Storage: `Paras::UpgradeRestrictionSignal` (r:0 w:1)
99 /// Proof: `Paras::UpgradeRestrictionSignal` (`max_values`: None, `max_size`: None, mode: `Measured`)
100 /// Storage: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1)
101 /// Proof: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1)
102 /// The range of component `u` is `[0, 2]`.
103 /// The range of component `h` is `[0, 2]`.
104 /// The range of component `c` is `[0, 1]`.
105 fn enact_candidate(u: u32, h: u32, c: u32, ) -> Weight {
106 // Proof Size summary in bytes:
107 // Measured: `330 + c * (16114 ±0) + h * (92 ±0) + u * (32955 ±0)`
108 // Estimated: `36283 + c * (16122 ±370) + h * (7594 ±341) + u * (20798 ±341)`
109 // Minimum execution time: 380_428_000 picoseconds.
110 Weight::from_parts(69_678_364, 0)
111 .saturating_add(Weight::from_parts(0, 36283))
112 // Standard Error: 289_403
113 .saturating_add(Weight::from_parts(136_373_549, 0).saturating_mul(u.into()))
114 // Standard Error: 289_403
115 .saturating_add(Weight::from_parts(150_488_651, 0).saturating_mul(h.into()))
116 // Standard Error: 479_576
117 .saturating_add(Weight::from_parts(65_201_475, 0).saturating_mul(c.into()))
118 .saturating_add(T::DbWeight::get().reads(4))
119 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
120 .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(h.into())))
121 .saturating_add(T::DbWeight::get().reads((9_u64).saturating_mul(c.into())))
122 .saturating_add(T::DbWeight::get().writes(5))
123 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(u.into())))
124 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(h.into())))
125 .saturating_add(T::DbWeight::get().writes((8_u64).saturating_mul(c.into())))
126 .saturating_add(Weight::from_parts(0, 16122).saturating_mul(c.into()))
127 .saturating_add(Weight::from_parts(0, 7594).saturating_mul(h.into()))
128 .saturating_add(Weight::from_parts(0, 20798).saturating_mul(u.into()))
129 }
130}