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 48.0.0
21
//! DATE: 2025-09-03, 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_proxy
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

            
47
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
48
use sp_std::marker::PhantomData;
49

            
50
/// Weights for `pallet_proxy`.
51
pub struct WeightInfo<T>(PhantomData<T>);
52
impl<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:  `224 + p * (25 ±0)`
61
		//  Estimated: `4310 + p * (25 ±0)`
62
		// Minimum execution time: 17_622_000 picoseconds.
63
		Weight::from_parts(18_381_659, 4310)
64
			// Standard Error: 1_169
65
			.saturating_add(Weight::from_parts(29_372, 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:  `514 + a * (56 ±0) + p * (25 ±0)`
84
		//  Estimated: `5302 + a * (58 ±0) + p * (23 ±0)`
85
		// Minimum execution time: 41_890_000 picoseconds.
86
		Weight::from_parts(42_431_210, 5302)
87
			// Standard Error: 2_341
88
			.saturating_add(Weight::from_parts(155_611, 0).saturating_mul(a.into()))
89
			// Standard Error: 2_419
90
			.saturating_add(Weight::from_parts(36_493, 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, 58).saturating_mul(a.into()))
94
			.saturating_add(Weight::from_parts(0, 23).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:  `400 + a * (56 ±0)`
105
		//  Estimated: `5302`
106
		// Minimum execution time: 27_924_000 picoseconds.
107
		Weight::from_parts(28_857_443, 5302)
108
			// Standard Error: 1_790
109
			.saturating_add(Weight::from_parts(146_098, 0).saturating_mul(a.into()))
110
			// Standard Error: 1_850
111
			.saturating_add(Weight::from_parts(9_652, 0).saturating_mul(p.into()))
112
			.saturating_add(T::DbWeight::get().reads(2_u64))
113
			.saturating_add(T::DbWeight::get().writes(2_u64))
114
	}
115
	/// Storage: `Proxy::Announcements` (r:1 w:1)
116
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
117
	/// Storage: `System::Account` (r:1 w:1)
118
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
119
	/// The range of component `a` is `[0, 31]`.
120
	/// The range of component `p` is `[1, 31]`.
121
	fn reject_announcement(a: u32, p: u32, ) -> Weight {
122
		// Proof Size summary in bytes:
123
		//  Measured:  `400 + a * (56 ±0)`
124
		//  Estimated: `5302`
125
		// Minimum execution time: 27_993_000 picoseconds.
126
		Weight::from_parts(28_841_973, 5302)
127
			// Standard Error: 1_771
128
			.saturating_add(Weight::from_parts(145_985, 0).saturating_mul(a.into()))
129
			// Standard Error: 1_829
130
			.saturating_add(Weight::from_parts(13_370, 0).saturating_mul(p.into()))
131
			.saturating_add(T::DbWeight::get().reads(2_u64))
132
			.saturating_add(T::DbWeight::get().writes(2_u64))
133
	}
134
	/// Storage: `Proxy::Proxies` (r:1 w:0)
135
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
136
	/// Storage: `Proxy::Announcements` (r:1 w:1)
137
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
138
	/// Storage: `System::Account` (r:1 w:1)
139
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
140
	/// The range of component `a` is `[0, 31]`.
141
	/// The range of component `p` is `[1, 31]`.
142
	fn announce(a: u32, p: u32, ) -> Weight {
143
		// Proof Size summary in bytes:
144
		//  Measured:  `416 + a * (56 ±0) + p * (25 ±0)`
145
		//  Estimated: `5302`
146
		// Minimum execution time: 35_758_000 picoseconds.
147
		Weight::from_parts(36_331_831, 5302)
148
			// Standard Error: 1_943
149
			.saturating_add(Weight::from_parts(155_303, 0).saturating_mul(a.into()))
150
			// Standard Error: 2_007
151
			.saturating_add(Weight::from_parts(32_492, 0).saturating_mul(p.into()))
152
			.saturating_add(T::DbWeight::get().reads(3_u64))
153
			.saturating_add(T::DbWeight::get().writes(2_u64))
154
	}
155
	/// Storage: `Proxy::Proxies` (r:1 w:1)
156
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
157
	/// The range of component `p` is `[1, 31]`.
158
	fn add_proxy(p: u32, ) -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `182 + p * (25 ±0)`
161
		//  Estimated: `4310`
162
		// Minimum execution time: 24_342_000 picoseconds.
163
		Weight::from_parts(25_372_222, 4310)
164
			// Standard Error: 1_200
165
			.saturating_add(Weight::from_parts(45_986, 0).saturating_mul(p.into()))
166
			.saturating_add(T::DbWeight::get().reads(1_u64))
167
			.saturating_add(T::DbWeight::get().writes(1_u64))
168
	}
169
	/// Storage: `Proxy::Proxies` (r:1 w:1)
170
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
171
	/// The range of component `p` is `[1, 31]`.
172
	fn remove_proxy(p: u32, ) -> Weight {
173
		// Proof Size summary in bytes:
174
		//  Measured:  `182 + p * (25 ±0)`
175
		//  Estimated: `4310`
176
		// Minimum execution time: 24_576_000 picoseconds.
177
		Weight::from_parts(25_438_689, 4310)
178
			// Standard Error: 1_278
179
			.saturating_add(Weight::from_parts(44_432, 0).saturating_mul(p.into()))
180
			.saturating_add(T::DbWeight::get().reads(1_u64))
181
			.saturating_add(T::DbWeight::get().writes(1_u64))
182
	}
183
	/// Storage: `Proxy::Proxies` (r:1 w:1)
184
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
185
	/// The range of component `p` is `[1, 31]`.
186
	fn remove_proxies(p: u32, ) -> Weight {
187
		// Proof Size summary in bytes:
188
		//  Measured:  `182 + p * (25 ±0)`
189
		//  Estimated: `4310`
190
		// Minimum execution time: 22_179_000 picoseconds.
191
		Weight::from_parts(23_109_520, 4310)
192
			// Standard Error: 1_056
193
			.saturating_add(Weight::from_parts(27_476, 0).saturating_mul(p.into()))
194
			.saturating_add(T::DbWeight::get().reads(1_u64))
195
			.saturating_add(T::DbWeight::get().writes(1_u64))
196
	}
197
	/// Storage: `Proxy::Proxies` (r:1 w:1)
198
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
199
	/// The range of component `p` is `[1, 31]`.
200
	fn create_pure(p: u32, ) -> Weight {
201
		// Proof Size summary in bytes:
202
		//  Measured:  `194`
203
		//  Estimated: `4310`
204
		// Minimum execution time: 26_189_000 picoseconds.
205
		Weight::from_parts(27_169_534, 4310)
206
			// Standard Error: 1_249
207
			.saturating_add(Weight::from_parts(12_477, 0).saturating_mul(p.into()))
208
			.saturating_add(T::DbWeight::get().reads(1_u64))
209
			.saturating_add(T::DbWeight::get().writes(1_u64))
210
	}
211
	/// Storage: `Proxy::Proxies` (r:1 w:1)
212
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
213
	/// The range of component `p` is `[0, 30]`.
214
	fn kill_pure(p: u32, ) -> Weight {
215
		// Proof Size summary in bytes:
216
		//  Measured:  `207 + p * (25 ±0)`
217
		//  Estimated: `4310`
218
		// Minimum execution time: 22_875_000 picoseconds.
219
		Weight::from_parts(23_859_102, 4310)
220
			// Standard Error: 1_137
221
			.saturating_add(Weight::from_parts(26_922, 0).saturating_mul(p.into()))
222
			.saturating_add(T::DbWeight::get().reads(1_u64))
223
			.saturating_add(T::DbWeight::get().writes(1_u64))
224
	}
225
	/// Storage: `Proxy::Proxies` (r:1 w:1)
226
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
227
	/// Storage: `System::Account` (r:1 w:1)
228
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
229
	/// Storage: `Proxy::Announcements` (r:1 w:1)
230
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
231
	fn poke_deposit() -> Weight {
232
		// Proof Size summary in bytes:
233
		//  Measured:  `496`
234
		//  Estimated: `5302`
235
		// Minimum execution time: 46_856_000 picoseconds.
236
		Weight::from_parts(48_681_000, 5302)
237
			.saturating_add(T::DbWeight::get().reads(3_u64))
238
			.saturating_add(T::DbWeight::get().writes(3_u64))
239
	}
240
}