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 32.0.0
21
//! DATE: 2025-05-02, 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/tanssi-node
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_proxy
34
// --extrinsic
35
// *
36
// --chain=dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/dancebox_weights/pallet_proxy.rs
46

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

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

            
54
/// Weights for pallet_proxy using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> pallet_proxy::WeightInfo for SubstrateWeight<T> {
57
	fn poke_deposit() -> sp_runtime::Weight {
58
		Default::default()
59
	}
60
	/// Storage: `Proxy::Proxies` (r:1 w:0)
61
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
62
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
63
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
64
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
65
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
66
	/// The range of component `p` is `[1, 31]`.
67
192
	fn proxy(p: u32, ) -> Weight {
68
192
		// Proof Size summary in bytes:
69
192
		//  Measured:  `208 + p * (37 ±0)`
70
192
		//  Estimated: `4706 + p * (37 ±0)`
71
192
		// Minimum execution time: 26_593_000 picoseconds.
72
192
		Weight::from_parts(27_632_669, 4706)
73
192
			// Standard Error: 1_709
74
192
			.saturating_add(Weight::from_parts(45_998, 0).saturating_mul(p.into()))
75
192
			.saturating_add(T::DbWeight::get().reads(3_u64))
76
192
			.saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
77
192
	}
78
	/// Storage: `Proxy::Proxies` (r:1 w:0)
79
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
80
	/// Storage: `Proxy::Announcements` (r:1 w:1)
81
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
82
	/// Storage: `System::Account` (r:1 w:1)
83
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
84
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
85
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
86
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
87
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
88
	/// The range of component `a` is `[0, 31]`.
89
	/// The range of component `p` is `[1, 31]`.
90
24
	fn proxy_announced(a: u32, p: u32, ) -> Weight {
91
24
		// Proof Size summary in bytes:
92
24
		//  Measured:  `535 + a * (68 ±0) + p * (37 ±0)`
93
24
		//  Estimated: `5698 + a * (68 ±0) + p * (37 ±0)`
94
24
		// Minimum execution time: 61_092_000 picoseconds.
95
24
		Weight::from_parts(62_611_829, 5698)
96
24
			// Standard Error: 5_184
97
24
			.saturating_add(Weight::from_parts(166_164, 0).saturating_mul(a.into()))
98
24
			// Standard Error: 5_356
99
24
			.saturating_add(Weight::from_parts(36_452, 0).saturating_mul(p.into()))
100
24
			.saturating_add(T::DbWeight::get().reads(5_u64))
101
24
			.saturating_add(T::DbWeight::get().writes(2_u64))
102
24
			.saturating_add(Weight::from_parts(0, 68).saturating_mul(a.into()))
103
24
			.saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
104
24
	}
105
	/// Storage: `Proxy::Announcements` (r:1 w:1)
106
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
107
	/// Storage: `System::Account` (r:1 w:1)
108
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
109
	/// The range of component `a` is `[0, 31]`.
110
	/// The range of component `p` is `[1, 31]`.
111
	fn remove_announcement(a: u32, p: u32, ) -> Weight {
112
		// Proof Size summary in bytes:
113
		//  Measured:  `370 + a * (68 ±0)`
114
		//  Estimated: `5698`
115
		// Minimum execution time: 33_466_000 picoseconds.
116
		Weight::from_parts(34_644_335, 5698)
117
			// Standard Error: 1_584
118
			.saturating_add(Weight::from_parts(172_702, 0).saturating_mul(a.into()))
119
			// Standard Error: 1_637
120
			.saturating_add(Weight::from_parts(4_669, 0).saturating_mul(p.into()))
121
			.saturating_add(T::DbWeight::get().reads(2_u64))
122
			.saturating_add(T::DbWeight::get().writes(2_u64))
123
	}
124
	/// Storage: `Proxy::Announcements` (r:1 w:1)
125
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
126
	/// Storage: `System::Account` (r:1 w:1)
127
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
128
	/// The range of component `a` is `[0, 31]`.
129
	/// The range of component `p` is `[1, 31]`.
130
24
	fn reject_announcement(a: u32, p: u32, ) -> Weight {
131
24
		// Proof Size summary in bytes:
132
24
		//  Measured:  `370 + a * (68 ±0)`
133
24
		//  Estimated: `5698`
134
24
		// Minimum execution time: 33_433_000 picoseconds.
135
24
		Weight::from_parts(34_472_920, 5698)
136
24
			// Standard Error: 1_607
137
24
			.saturating_add(Weight::from_parts(178_965, 0).saturating_mul(a.into()))
138
24
			// Standard Error: 1_660
139
24
			.saturating_add(Weight::from_parts(9_532, 0).saturating_mul(p.into()))
140
24
			.saturating_add(T::DbWeight::get().reads(2_u64))
141
24
			.saturating_add(T::DbWeight::get().writes(2_u64))
142
24
	}
143
	/// Storage: `Proxy::Proxies` (r:1 w:0)
144
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
145
	/// Storage: `Proxy::Announcements` (r:1 w:1)
146
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
147
	/// Storage: `System::Account` (r:1 w:1)
148
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
149
	/// The range of component `a` is `[0, 31]`.
150
	/// The range of component `p` is `[1, 31]`.
151
24
	fn announce(a: u32, p: u32, ) -> Weight {
152
24
		// Proof Size summary in bytes:
153
24
		//  Measured:  `387 + a * (68 ±0) + p * (37 ±0)`
154
24
		//  Estimated: `5698`
155
24
		// Minimum execution time: 43_883_000 picoseconds.
156
24
		Weight::from_parts(44_343_175, 5698)
157
24
			// Standard Error: 1_795
158
24
			.saturating_add(Weight::from_parts(174_154, 0).saturating_mul(a.into()))
159
24
			// Standard Error: 1_855
160
24
			.saturating_add(Weight::from_parts(43_568, 0).saturating_mul(p.into()))
161
24
			.saturating_add(T::DbWeight::get().reads(3_u64))
162
24
			.saturating_add(T::DbWeight::get().writes(2_u64))
163
24
	}
164
	/// Storage: `Proxy::Proxies` (r:1 w:1)
165
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
166
	/// The range of component `p` is `[1, 31]`.
167
132
	fn add_proxy(p: u32, ) -> Weight {
168
132
		// Proof Size summary in bytes:
169
132
		//  Measured:  `128 + p * (37 ±0)`
170
132
		//  Estimated: `4706`
171
132
		// Minimum execution time: 31_500_000 picoseconds.
172
132
		Weight::from_parts(32_384_048, 4706)
173
132
			// Standard Error: 1_124
174
132
			.saturating_add(Weight::from_parts(53_537, 0).saturating_mul(p.into()))
175
132
			.saturating_add(T::DbWeight::get().reads(1_u64))
176
132
			.saturating_add(T::DbWeight::get().writes(1_u64))
177
132
	}
178
	/// Storage: `Proxy::Proxies` (r:1 w:1)
179
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
180
	/// The range of component `p` is `[1, 31]`.
181
	fn remove_proxy(p: u32, ) -> Weight {
182
		// Proof Size summary in bytes:
183
		//  Measured:  `128 + p * (37 ±0)`
184
		//  Estimated: `4706`
185
		// Minimum execution time: 31_900_000 picoseconds.
186
		Weight::from_parts(32_855_727, 4706)
187
			// Standard Error: 1_280
188
			.saturating_add(Weight::from_parts(48_535, 0).saturating_mul(p.into()))
189
			.saturating_add(T::DbWeight::get().reads(1_u64))
190
			.saturating_add(T::DbWeight::get().writes(1_u64))
191
	}
192
	/// Storage: `Proxy::Proxies` (r:1 w:1)
193
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
194
	/// The range of component `p` is `[1, 31]`.
195
	fn remove_proxies(p: u32, ) -> Weight {
196
		// Proof Size summary in bytes:
197
		//  Measured:  `128 + p * (37 ±0)`
198
		//  Estimated: `4706`
199
		// Minimum execution time: 28_829_000 picoseconds.
200
		Weight::from_parts(29_649_593, 4706)
201
			// Standard Error: 1_224
202
			.saturating_add(Weight::from_parts(41_242, 0).saturating_mul(p.into()))
203
			.saturating_add(T::DbWeight::get().reads(1_u64))
204
			.saturating_add(T::DbWeight::get().writes(1_u64))
205
	}
206
	/// Storage: `Proxy::Proxies` (r:1 w:1)
207
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
208
	/// The range of component `p` is `[1, 31]`.
209
12
	fn create_pure(p: u32, ) -> Weight {
210
12
		// Proof Size summary in bytes:
211
12
		//  Measured:  `140`
212
12
		//  Estimated: `4706`
213
12
		// Minimum execution time: 34_068_000 picoseconds.
214
12
		Weight::from_parts(35_089_792, 4706)
215
12
			// Standard Error: 1_312
216
12
			.saturating_add(Weight::from_parts(12_206, 0).saturating_mul(p.into()))
217
12
			.saturating_add(T::DbWeight::get().reads(1_u64))
218
12
			.saturating_add(T::DbWeight::get().writes(1_u64))
219
12
	}
220
	/// Storage: `Proxy::Proxies` (r:1 w:1)
221
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
222
	/// The range of component `p` is `[0, 30]`.
223
	fn kill_pure(p: u32, ) -> Weight {
224
		// Proof Size summary in bytes:
225
		//  Measured:  `165 + p * (37 ±0)`
226
		//  Estimated: `4706`
227
		// Minimum execution time: 29_987_000 picoseconds.
228
		Weight::from_parts(30_984_670, 4706)
229
			// Standard Error: 1_178
230
			.saturating_add(Weight::from_parts(41_515, 0).saturating_mul(p.into()))
231
			.saturating_add(T::DbWeight::get().reads(1_u64))
232
			.saturating_add(T::DbWeight::get().writes(1_u64))
233
	}
234
}