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 49.1.0
21
//! DATE: 2025-11-03, 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: 25_466_000 picoseconds.
68
		Weight::from_parts(26_241_663, 4310)
69
			// Standard Error: 1_240
70
			.saturating_add(Weight::from_parts(31_581, 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_959_000 picoseconds.
91
		Weight::from_parts(58_685_601, 5302)
92
			// Standard Error: 2_201
93
			.saturating_add(Weight::from_parts(206_379, 0).saturating_mul(a.into()))
94
			// Standard Error: 2_274
95
			.saturating_add(Weight::from_parts(19_883, 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: 33_011_000 picoseconds.
112
		Weight::from_parts(34_112_852, 5302)
113
			// Standard Error: 1_622
114
			.saturating_add(Weight::from_parts(179_949, 0).saturating_mul(a.into()))
115
			.saturating_add(T::DbWeight::get().reads(2_u64))
116
			.saturating_add(T::DbWeight::get().writes(2_u64))
117
	}
118
	/// Storage: `Proxy::Announcements` (r:1 w:1)
119
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
120
	/// Storage: `System::Account` (r:1 w:1)
121
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
122
	/// The range of component `a` is `[0, 31]`.
123
	/// The range of component `p` is `[1, 31]`.
124
	fn reject_announcement(a: u32, p: u32, ) -> Weight {
125
		// Proof Size summary in bytes:
126
		//  Measured:  `294 + a * (56 ±0)`
127
		//  Estimated: `5302`
128
		// Minimum execution time: 33_230_000 picoseconds.
129
		Weight::from_parts(34_016_954, 5302)
130
			// Standard Error: 1_591
131
			.saturating_add(Weight::from_parts(177_717, 0).saturating_mul(a.into()))
132
			// Standard Error: 1_644
133
			.saturating_add(Weight::from_parts(1_071, 0).saturating_mul(p.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_990_000 picoseconds.
150
		Weight::from_parts(43_656_332, 5302)
151
			// Standard Error: 2_103
152
			.saturating_add(Weight::from_parts(185_736, 0).saturating_mul(a.into()))
153
			// Standard Error: 2_173
154
			.saturating_add(Weight::from_parts(15_386, 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: 33_114_000 picoseconds.
166
		Weight::from_parts(33_860_768, 4310)
167
			// Standard Error: 1_057
168
			.saturating_add(Weight::from_parts(36_053, 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: 32_843_000 picoseconds.
180
		Weight::from_parts(33_895_062, 4310)
181
			// Standard Error: 1_139
182
			.saturating_add(Weight::from_parts(32_568, 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: 30_054_000 picoseconds.
194
		Weight::from_parts(30_834_047, 4310)
195
			// Standard Error: 1_034
196
			.saturating_add(Weight::from_parts(17_506, 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: 35_218_000 picoseconds.
208
		Weight::from_parts(36_136_763, 4310)
209
			// Standard Error: 1_155
210
			.saturating_add(Weight::from_parts(18_897, 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: 33_602_000 picoseconds.
222
		Weight::from_parts(34_615_211, 4310)
223
			// Standard Error: 1_056
224
			.saturating_add(Weight::from_parts(21_514, 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: 59_472_000 picoseconds.
239
		Weight::from_parts(60_443_000, 5302)
240
			.saturating_add(T::DbWeight::get().reads(3_u64))
241
			.saturating_add(T::DbWeight::get().writes(3_u64))
242
	}
243
}