1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi 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
// Tanssi 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 Tanssi.  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 47.0.0
21
//! DATE: 2025-09-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/container-chain-frontier-node
28
// benchmark
29
// pallet
30
// --wasm-execution=compiled
31
// --pallet
32
// pallet_proxy
33
// --extrinsic
34
// *
35
// --chain=dev
36
// --steps
37
// 50
38
// --repeat
39
// 20
40
// --template=benchmarking/frame-weight-runtime-template.hbs
41
// --json-file
42
// raw.json
43
// --output
44
// tmp/frontier_template_weights/pallet_proxy.rs
45

            
46
#![cfg_attr(rustfmt, rustfmt_skip)]
47
#![allow(unused_parens)]
48
#![allow(unused_imports)]
49

            
50
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
51
use core::marker::PhantomData;
52

            
53
/// Weights for pallet_proxy using the Substrate node and recommended hardware.
54
pub struct SubstrateWeight<T>(PhantomData<T>);
55
impl<T: frame_system::Config> pallet_proxy::WeightInfo for SubstrateWeight<T> {
56
	/// Storage: `Proxy::Proxies` (r:1 w:0)
57
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
58
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
59
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
60
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
61
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
62
	/// The range of component `p` is `[1, 31]`.
63
	fn proxy(p: u32, ) -> Weight {
64
		// Proof Size summary in bytes:
65
		//  Measured:  `161 + p * (25 ±0)`
66
		//  Estimated: `4310 + p * (25 ±0)`
67
		// Minimum execution time: 24_403_000 picoseconds.
68
		Weight::from_parts(25_237_399, 4310)
69
			// Standard Error: 1_394
70
			.saturating_add(Weight::from_parts(42_558, 0).saturating_mul(p.into()))
71
			.saturating_add(T::DbWeight::get().reads(3_u64))
72
			.saturating_add(Weight::from_parts(0, 25).saturating_mul(p.into()))
73
	}
74
	/// Storage: `Proxy::Proxies` (r:1 w:0)
75
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
76
	/// Storage: `Proxy::Announcements` (r:1 w:1)
77
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
78
	/// Storage: `System::Account` (r:1 w:1)
79
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
80
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
81
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
82
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
83
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
84
	/// The range of component `a` is `[0, 31]`.
85
	/// The range of component `p` is `[1, 31]`.
86
	fn proxy_announced(a: u32, p: u32, ) -> Weight {
87
		// Proof Size summary in bytes:
88
		//  Measured:  `412 + a * (56 ±0) + p * (25 ±0)`
89
		//  Estimated: `5302 + a * (57 ±0) + p * (25 ±0)`
90
		// Minimum execution time: 56_588_000 picoseconds.
91
		Weight::from_parts(57_300_573, 5302)
92
			// Standard Error: 2_835
93
			.saturating_add(Weight::from_parts(215_256, 0).saturating_mul(a.into()))
94
			// Standard Error: 2_929
95
			.saturating_add(Weight::from_parts(28_757, 0).saturating_mul(p.into()))
96
			.saturating_add(T::DbWeight::get().reads(5_u64))
97
			.saturating_add(T::DbWeight::get().writes(2_u64))
98
			.saturating_add(Weight::from_parts(0, 57).saturating_mul(a.into()))
99
			.saturating_add(Weight::from_parts(0, 25).saturating_mul(p.into()))
100
	}
101
	/// Storage: `Proxy::Announcements` (r:1 w:1)
102
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
103
	/// Storage: `System::Account` (r:1 w:1)
104
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
105
	/// The range of component `a` is `[0, 31]`.
106
	/// The range of component `p` is `[1, 31]`.
107
	fn remove_announcement(a: u32, p: u32, ) -> Weight {
108
		// Proof Size summary in bytes:
109
		//  Measured:  `294 + a * (56 ±0)`
110
		//  Estimated: `5302`
111
		// Minimum execution time: 32_564_000 picoseconds.
112
		Weight::from_parts(33_252_440, 5302)
113
			// Standard Error: 1_701
114
			.saturating_add(Weight::from_parts(193_918, 0).saturating_mul(a.into()))
115
			// Standard Error: 1_758
116
			.saturating_add(Weight::from_parts(3_176, 0).saturating_mul(p.into()))
117
			.saturating_add(T::DbWeight::get().reads(2_u64))
118
			.saturating_add(T::DbWeight::get().writes(2_u64))
119
	}
120
	/// Storage: `Proxy::Announcements` (r:1 w:1)
121
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
122
	/// Storage: `System::Account` (r:1 w:1)
123
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
124
	/// The range of component `a` is `[0, 31]`.
125
	/// The range of component `p` is `[1, 31]`.
126
	fn reject_announcement(a: u32, _p: u32, ) -> Weight {
127
		// Proof Size summary in bytes:
128
		//  Measured:  `294 + a * (56 ±0)`
129
		//  Estimated: `5302`
130
		// Minimum execution time: 32_333_000 picoseconds.
131
		Weight::from_parts(33_352_883, 5302)
132
			// Standard Error: 1_585
133
			.saturating_add(Weight::from_parts(192_405, 0).saturating_mul(a.into()))
134
			.saturating_add(T::DbWeight::get().reads(2_u64))
135
			.saturating_add(T::DbWeight::get().writes(2_u64))
136
	}
137
	/// Storage: `Proxy::Proxies` (r:1 w:0)
138
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
139
	/// Storage: `Proxy::Announcements` (r:1 w:1)
140
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
141
	/// Storage: `System::Account` (r:1 w:1)
142
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
143
	/// The range of component `a` is `[0, 31]`.
144
	/// The range of component `p` is `[1, 31]`.
145
	fn announce(a: u32, p: u32, ) -> Weight {
146
		// Proof Size summary in bytes:
147
		//  Measured:  `310 + a * (56 ±0) + p * (25 ±0)`
148
		//  Estimated: `5302`
149
		// Minimum execution time: 42_159_000 picoseconds.
150
		Weight::from_parts(42_724_721, 5302)
151
			// Standard Error: 2_225
152
			.saturating_add(Weight::from_parts(194_393, 0).saturating_mul(a.into()))
153
			// Standard Error: 2_299
154
			.saturating_add(Weight::from_parts(16_729, 0).saturating_mul(p.into()))
155
			.saturating_add(T::DbWeight::get().reads(3_u64))
156
			.saturating_add(T::DbWeight::get().writes(2_u64))
157
	}
158
	/// Storage: `Proxy::Proxies` (r:1 w:1)
159
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
160
	/// The range of component `p` is `[1, 31]`.
161
	fn add_proxy(p: u32, ) -> Weight {
162
		// Proof Size summary in bytes:
163
		//  Measured:  `115 + p * (25 ±0)`
164
		//  Estimated: `4310`
165
		// Minimum execution time: 32_319_000 picoseconds.
166
		Weight::from_parts(33_076_402, 4310)
167
			// Standard Error: 1_047
168
			.saturating_add(Weight::from_parts(36_494, 0).saturating_mul(p.into()))
169
			.saturating_add(T::DbWeight::get().reads(1_u64))
170
			.saturating_add(T::DbWeight::get().writes(1_u64))
171
	}
172
	/// Storage: `Proxy::Proxies` (r:1 w:1)
173
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
174
	/// The range of component `p` is `[1, 31]`.
175
	fn remove_proxy(p: u32, ) -> Weight {
176
		// Proof Size summary in bytes:
177
		//  Measured:  `115 + p * (25 ±0)`
178
		//  Estimated: `4310`
179
		// Minimum execution time: 31_878_000 picoseconds.
180
		Weight::from_parts(33_003_216, 4310)
181
			// Standard Error: 1_157
182
			.saturating_add(Weight::from_parts(33_607, 0).saturating_mul(p.into()))
183
			.saturating_add(T::DbWeight::get().reads(1_u64))
184
			.saturating_add(T::DbWeight::get().writes(1_u64))
185
	}
186
	/// Storage: `Proxy::Proxies` (r:1 w:1)
187
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
188
	/// The range of component `p` is `[1, 31]`.
189
	fn remove_proxies(p: u32, ) -> Weight {
190
		// Proof Size summary in bytes:
191
		//  Measured:  `115 + p * (25 ±0)`
192
		//  Estimated: `4310`
193
		// Minimum execution time: 29_276_000 picoseconds.
194
		Weight::from_parts(29_983_479, 4310)
195
			// Standard Error: 981
196
			.saturating_add(Weight::from_parts(28_138, 0).saturating_mul(p.into()))
197
			.saturating_add(T::DbWeight::get().reads(1_u64))
198
			.saturating_add(T::DbWeight::get().writes(1_u64))
199
	}
200
	/// Storage: `Proxy::Proxies` (r:1 w:1)
201
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
202
	/// The range of component `p` is `[1, 31]`.
203
	fn create_pure(p: u32, ) -> Weight {
204
		// Proof Size summary in bytes:
205
		//  Measured:  `127`
206
		//  Estimated: `4310`
207
		// Minimum execution time: 34_519_000 picoseconds.
208
		Weight::from_parts(35_292_010, 4310)
209
			// Standard Error: 1_093
210
			.saturating_add(Weight::from_parts(9_345, 0).saturating_mul(p.into()))
211
			.saturating_add(T::DbWeight::get().reads(1_u64))
212
			.saturating_add(T::DbWeight::get().writes(1_u64))
213
	}
214
	/// Storage: `Proxy::Proxies` (r:1 w:1)
215
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
216
	/// The range of component `p` is `[0, 30]`.
217
	fn kill_pure(p: u32, ) -> Weight {
218
		// Proof Size summary in bytes:
219
		//  Measured:  `140 + p * (25 ±0)`
220
		//  Estimated: `4310`
221
		// Minimum execution time: 30_207_000 picoseconds.
222
		Weight::from_parts(31_008_812, 4310)
223
			// Standard Error: 961
224
			.saturating_add(Weight::from_parts(26_055, 0).saturating_mul(p.into()))
225
			.saturating_add(T::DbWeight::get().reads(1_u64))
226
			.saturating_add(T::DbWeight::get().writes(1_u64))
227
	}
228
	/// Storage: `Proxy::Proxies` (r:1 w:1)
229
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
230
	/// Storage: `System::Account` (r:1 w:1)
231
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
232
	/// Storage: `Proxy::Announcements` (r:1 w:1)
233
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
234
	fn poke_deposit() -> Weight {
235
		// Proof Size summary in bytes:
236
		//  Measured:  `392`
237
		//  Estimated: `5302`
238
		// Minimum execution time: 57_770_000 picoseconds.
239
		Weight::from_parts(59_195_000, 5302)
240
			.saturating_add(T::DbWeight::get().reads(3_u64))
241
			.saturating_add(T::DbWeight::get().writes(3_u64))
242
	}
243
}