moonbeam_runtime/weights/pallet_whitelist.rs
1// Copyright 2025 Moonbeam foundation
2// This file is part of Moonbeam.
3
4// Moonbeam 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// Moonbeam 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 Moonbeam. If not, see <http://www.gnu.org/licenses/>.
16
17
18//! Autogenerated weights for `pallet_whitelist`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 51.0.0
21//! DATE: 2025-12-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25
26// Executed Command:
27// ./frame-omni-bencher
28// v1
29// benchmark
30// pallet
31// --runtime=./target/production/wbuild/moonbeam-runtime/moonbeam_runtime.wasm
32// --genesis-builder=runtime
33// --genesis-builder-preset=development
34// --steps=50
35// --repeat=20
36// --pallet=pallet_whitelist
37// --extrinsic=*
38// --wasm-execution=compiled
39// --header=./file_header.txt
40// --template=./benchmarking/frame-weight-template.hbs
41// --output=./runtime/moonbeam/src/weights
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46
47use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
48use sp_std::marker::PhantomData;
49
50/// Weights for `pallet_whitelist`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_whitelist::WeightInfo for WeightInfo<T> {
53 /// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
54 /// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
55 /// Storage: `Preimage::StatusFor` (r:1 w:0)
56 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
57 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
58 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
59 fn whitelist_call() -> Weight {
60 // Proof Size summary in bytes:
61 // Measured: `84`
62 // Estimated: `3544`
63 // Minimum execution time: 20_025_000 picoseconds.
64 Weight::from_parts(20_802_000, 3544)
65 .saturating_add(T::DbWeight::get().reads(3_u64))
66 .saturating_add(T::DbWeight::get().writes(2_u64))
67 }
68 /// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
69 /// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
70 /// Storage: `Preimage::StatusFor` (r:1 w:0)
71 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
72 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
73 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
74 fn remove_whitelisted_call() -> Weight {
75 // Proof Size summary in bytes:
76 // Measured: `213`
77 // Estimated: `3544`
78 // Minimum execution time: 19_357_000 picoseconds.
79 Weight::from_parts(20_362_000, 3544)
80 .saturating_add(T::DbWeight::get().reads(3_u64))
81 .saturating_add(T::DbWeight::get().writes(2_u64))
82 }
83 /// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
84 /// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
85 /// Storage: `Preimage::PreimageFor` (r:1 w:1)
86 /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
87 /// Storage: `Preimage::StatusFor` (r:1 w:0)
88 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
89 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
90 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
91 /// The range of component `n` is `[1, 4194294]`.
92 fn dispatch_whitelisted_call(n: u32, ) -> Weight {
93 // Proof Size summary in bytes:
94 // Measured: `289 + n * (1 ±0)`
95 // Estimated: `3753 + n * (1 ±0)`
96 // Minimum execution time: 33_815_000 picoseconds.
97 Weight::from_parts(34_182_000, 3753)
98 // Standard Error: 13
99 .saturating_add(Weight::from_parts(1_677, 0).saturating_mul(n.into()))
100 .saturating_add(T::DbWeight::get().reads(4_u64))
101 .saturating_add(T::DbWeight::get().writes(3_u64))
102 .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
103 }
104 /// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
105 /// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
106 /// Storage: `Preimage::StatusFor` (r:1 w:0)
107 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
108 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
109 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
110 /// The range of component `n` is `[1, 10000]`.
111 fn dispatch_whitelisted_call_with_preimage(n: u32, ) -> Weight {
112 // Proof Size summary in bytes:
113 // Measured: `213`
114 // Estimated: `3544`
115 // Minimum execution time: 23_747_000 picoseconds.
116 Weight::from_parts(24_693_714, 3544)
117 // Standard Error: 4
118 .saturating_add(Weight::from_parts(1_348, 0).saturating_mul(n.into()))
119 .saturating_add(T::DbWeight::get().reads(3_u64))
120 .saturating_add(T::DbWeight::get().writes(2_u64))
121 }
122}