moonbase_runtime/weights/
pallet_proxy.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_proxy`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.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-198`, 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/moonbase-runtime/moonbase_runtime.wasm
32// --genesis-builder=runtime
33// --genesis-builder-preset=development
34// --steps=50
35// --repeat=20
36// --pallet=pallet_proxy
37// --extrinsic=*
38// --wasm-execution=compiled
39// --header=./file_header.txt
40// --template=./benchmarking/frame-weight-template.hbs
41// --output=./runtime/moonbase/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_proxy`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
53	/// Storage: `Proxy::Proxies` (r:1 w:0)
54	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
55	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
56	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
57	/// The range of component `p` is `[1, 31]`.
58	fn proxy(p: u32, ) -> Weight {
59		// Proof Size summary in bytes:
60		//  Measured:  `191 + p * (25 ±0)`
61		//  Estimated: `4310 + p * (25 ±0)`
62		// Minimum execution time: 15_720_000 picoseconds.
63		Weight::from_parts(16_502_630, 4310)
64			// Standard Error: 1_083
65			.saturating_add(Weight::from_parts(44_427, 0).saturating_mul(p.into()))
66			.saturating_add(T::DbWeight::get().reads(2_u64))
67			.saturating_add(Weight::from_parts(0, 25).saturating_mul(p.into()))
68			// 1 DB read that happen when filtering the proxy call transaction
69			.saturating_add(T::DbWeight::get().reads(1))
70	}
71	/// Storage: `Proxy::Proxies` (r:1 w:0)
72	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
73	/// Storage: `Proxy::Announcements` (r:1 w:1)
74	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
75	/// Storage: `System::Account` (r:1 w:1)
76	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
77	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
78	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
79	/// The range of component `a` is `[0, 31]`.
80	/// The range of component `p` is `[1, 31]`.
81	fn proxy_announced(a: u32, p: u32, ) -> Weight {
82		// Proof Size summary in bytes:
83		//  Measured:  `443 + a * (56 ±0) + p * (25 ±0)`
84		//  Estimated: `5302 + a * (59 ±0) + p * (22 ±0)`
85		// Minimum execution time: 41_293_000 picoseconds.
86		Weight::from_parts(42_090_066, 5302)
87			// Standard Error: 2_892
88			.saturating_add(Weight::from_parts(188_757, 0).saturating_mul(a.into()))
89			// Standard Error: 2_988
90			.saturating_add(Weight::from_parts(12_027, 0).saturating_mul(p.into()))
91			.saturating_add(T::DbWeight::get().reads(4_u64))
92			.saturating_add(T::DbWeight::get().writes(2_u64))
93			.saturating_add(Weight::from_parts(0, 59).saturating_mul(a.into()))
94			.saturating_add(Weight::from_parts(0, 22).saturating_mul(p.into()))
95	}
96	/// Storage: `Proxy::Announcements` (r:1 w:1)
97	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
98	/// Storage: `System::Account` (r:1 w:1)
99	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
100	/// The range of component `a` is `[0, 31]`.
101	/// The range of component `p` is `[1, 31]`.
102	fn remove_announcement(a: u32, _p: u32, ) -> Weight {
103		// Proof Size summary in bytes:
104		//  Measured:  `329 + a * (56 ±0)`
105		//  Estimated: `5302`
106		// Minimum execution time: 25_144_000 picoseconds.
107		Weight::from_parts(27_526_468, 5302)
108			// Standard Error: 3_735
109			.saturating_add(Weight::from_parts(216_598, 0).saturating_mul(a.into()))
110			.saturating_add(T::DbWeight::get().reads(2_u64))
111			.saturating_add(T::DbWeight::get().writes(2_u64))
112	}
113	/// Storage: `Proxy::Announcements` (r:1 w:1)
114	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
115	/// Storage: `System::Account` (r:1 w:1)
116	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
117	/// The range of component `a` is `[0, 31]`.
118	/// The range of component `p` is `[1, 31]`.
119	fn reject_announcement(a: u32, _p: u32, ) -> Weight {
120		// Proof Size summary in bytes:
121		//  Measured:  `329 + a * (56 ±0)`
122		//  Estimated: `5302`
123		// Minimum execution time: 24_840_000 picoseconds.
124		Weight::from_parts(27_340_101, 5302)
125			// Standard Error: 3_751
126			.saturating_add(Weight::from_parts(216_272, 0).saturating_mul(a.into()))
127			.saturating_add(T::DbWeight::get().reads(2_u64))
128			.saturating_add(T::DbWeight::get().writes(2_u64))
129	}
130	/// Storage: `Proxy::Proxies` (r:1 w:0)
131	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
132	/// Storage: `Proxy::Announcements` (r:1 w:1)
133	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
134	/// Storage: `System::Account` (r:1 w:1)
135	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
136	/// The range of component `a` is `[0, 31]`.
137	/// The range of component `p` is `[1, 31]`.
138	fn announce(a: u32, p: u32, ) -> Weight {
139		// Proof Size summary in bytes:
140		//  Measured:  `345 + a * (56 ±0) + p * (25 ±0)`
141		//  Estimated: `5302`
142		// Minimum execution time: 35_132_000 picoseconds.
143		Weight::from_parts(36_049_814, 5302)
144			// Standard Error: 2_341
145			.saturating_add(Weight::from_parts(181_992, 0).saturating_mul(a.into()))
146			// Standard Error: 2_419
147			.saturating_add(Weight::from_parts(8_519, 0).saturating_mul(p.into()))
148			.saturating_add(T::DbWeight::get().reads(3_u64))
149			.saturating_add(T::DbWeight::get().writes(2_u64))
150	}
151	/// Storage: `Proxy::Proxies` (r:1 w:1)
152	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
153	/// The range of component `p` is `[1, 31]`.
154	fn add_proxy(p: u32, ) -> Weight {
155		// Proof Size summary in bytes:
156		//  Measured:  `149 + p * (25 ±0)`
157		//  Estimated: `4310`
158		// Minimum execution time: 24_556_000 picoseconds.
159		Weight::from_parts(25_394_955, 4310)
160			// Standard Error: 1_290
161			.saturating_add(Weight::from_parts(50_256, 0).saturating_mul(p.into()))
162			.saturating_add(T::DbWeight::get().reads(1_u64))
163			.saturating_add(T::DbWeight::get().writes(1_u64))
164	}
165	/// Storage: `Proxy::Proxies` (r:1 w:1)
166	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
167	/// The range of component `p` is `[1, 31]`.
168	fn remove_proxy(p: u32, ) -> Weight {
169		// Proof Size summary in bytes:
170		//  Measured:  `149 + p * (25 ±0)`
171		//  Estimated: `4310`
172		// Minimum execution time: 24_140_000 picoseconds.
173		Weight::from_parts(25_099_199, 4310)
174			// Standard Error: 1_404
175			.saturating_add(Weight::from_parts(49_712, 0).saturating_mul(p.into()))
176			.saturating_add(T::DbWeight::get().reads(1_u64))
177			.saturating_add(T::DbWeight::get().writes(1_u64))
178	}
179	/// Storage: `Proxy::Proxies` (r:1 w:1)
180	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
181	/// The range of component `p` is `[1, 31]`.
182	fn remove_proxies(p: u32, ) -> Weight {
183		// Proof Size summary in bytes:
184		//  Measured:  `149 + p * (25 ±0)`
185		//  Estimated: `4310`
186		// Minimum execution time: 22_011_000 picoseconds.
187		Weight::from_parts(22_923_841, 4310)
188			// Standard Error: 1_213
189			.saturating_add(Weight::from_parts(39_357, 0).saturating_mul(p.into()))
190			.saturating_add(T::DbWeight::get().reads(1_u64))
191			.saturating_add(T::DbWeight::get().writes(1_u64))
192	}
193	/// Storage: `Proxy::Proxies` (r:1 w:1)
194	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
195	/// The range of component `p` is `[1, 31]`.
196	fn create_pure(p: u32, ) -> Weight {
197		// Proof Size summary in bytes:
198		//  Measured:  `161`
199		//  Estimated: `4310`
200		// Minimum execution time: 25_843_000 picoseconds.
201		Weight::from_parts(27_157_704, 4310)
202			// Standard Error: 1_290
203			.saturating_add(Weight::from_parts(11_262, 0).saturating_mul(p.into()))
204			.saturating_add(T::DbWeight::get().reads(1_u64))
205			.saturating_add(T::DbWeight::get().writes(1_u64))
206	}
207	/// Storage: `Proxy::Proxies` (r:1 w:1)
208	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
209	/// The range of component `p` is `[0, 30]`.
210	fn kill_pure(p: u32, ) -> Weight {
211		// Proof Size summary in bytes:
212		//  Measured:  `174 + p * (25 ±0)`
213		//  Estimated: `4310`
214		// Minimum execution time: 24_810_000 picoseconds.
215		Weight::from_parts(25_869_556, 4310)
216			// Standard Error: 1_476
217			.saturating_add(Weight::from_parts(39_188, 0).saturating_mul(p.into()))
218			.saturating_add(T::DbWeight::get().reads(1_u64))
219			.saturating_add(T::DbWeight::get().writes(1_u64))
220	}
221	/// Storage: `Proxy::Proxies` (r:1 w:1)
222	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
223	/// Storage: `System::Account` (r:1 w:1)
224	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
225	/// Storage: `Proxy::Announcements` (r:1 w:1)
226	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
227	fn poke_deposit() -> Weight {
228		// Proof Size summary in bytes:
229		//  Measured:  `463`
230		//  Estimated: `5302`
231		// Minimum execution time: 47_114_000 picoseconds.
232		Weight::from_parts(48_264_000, 5302)
233			.saturating_add(T::DbWeight::get().reads(3_u64))
234			.saturating_add(T::DbWeight::get().writes(3_u64))
235	}
236}