rococo_runtime/weights/pallet_whitelist.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 `pallet_whitelist`
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: `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=pallet_whitelist
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 `pallet_whitelist`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_whitelist::WeightInfo for WeightInfo<T> {
54 /// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
55 /// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
56 /// Storage: `Preimage::StatusFor` (r:1 w:0)
57 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
58 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
59 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
60 fn whitelist_call() -> Weight {
61 // Proof Size summary in bytes:
62 // Measured: `150`
63 // Estimated: `3556`
64 // Minimum execution time: 20_475_000 picoseconds.
65 Weight::from_parts(20_986_000, 0)
66 .saturating_add(Weight::from_parts(0, 3556))
67 .saturating_add(T::DbWeight::get().reads(3))
68 .saturating_add(T::DbWeight::get().writes(2))
69 }
70 /// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
71 /// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
72 /// Storage: `Preimage::StatusFor` (r:1 w:0)
73 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
74 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
75 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
76 fn remove_whitelisted_call() -> Weight {
77 // Proof Size summary in bytes:
78 // Measured: `279`
79 // Estimated: `3556`
80 // Minimum execution time: 20_529_000 picoseconds.
81 Weight::from_parts(21_448_000, 0)
82 .saturating_add(Weight::from_parts(0, 3556))
83 .saturating_add(T::DbWeight::get().reads(3))
84 .saturating_add(T::DbWeight::get().writes(2))
85 }
86 /// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
87 /// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
88 /// Storage: `Preimage::PreimageFor` (r:1 w:1)
89 /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
90 /// Storage: `Preimage::StatusFor` (r:1 w:0)
91 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
92 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
93 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
94 /// The range of component `n` is `[1, 4194294]`.
95 fn dispatch_whitelisted_call(n: u32, ) -> Weight {
96 // Proof Size summary in bytes:
97 // Measured: `355 + n * (1 ±0)`
98 // Estimated: `3819 + n * (1 ±0)`
99 // Minimum execution time: 32_770_000 picoseconds.
100 Weight::from_parts(33_390_000, 0)
101 .saturating_add(Weight::from_parts(0, 3819))
102 // Standard Error: 260
103 .saturating_add(Weight::from_parts(23_701, 0).saturating_mul(n.into()))
104 .saturating_add(T::DbWeight::get().reads(4))
105 .saturating_add(T::DbWeight::get().writes(3))
106 .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
107 }
108 /// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
109 /// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
110 /// Storage: `Preimage::StatusFor` (r:1 w:0)
111 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
112 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
113 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
114 /// The range of component `n` is `[1, 10000]`.
115 fn dispatch_whitelisted_call_with_preimage(n: u32, ) -> Weight {
116 // Proof Size summary in bytes:
117 // Measured: `279`
118 // Estimated: `3556`
119 // Minimum execution time: 24_811_000 picoseconds.
120 Weight::from_parts(25_795_703, 0)
121 .saturating_add(Weight::from_parts(0, 3556))
122 // Standard Error: 5
123 .saturating_add(Weight::from_parts(1_287, 0).saturating_mul(n.into()))
124 .saturating_add(T::DbWeight::get().reads(3))
125 .saturating_add(T::DbWeight::get().writes(2))
126 }
127}