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-04, 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("starlight-dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/tanssi-relay
28
// benchmark
29
// pallet
30
// --wasm-execution=compiled
31
// --pallet
32
// pallet_proxy
33
// --extrinsic
34
// *
35
// --chain=starlight-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/starlight_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(1241), added: 3716, mode: `MaxEncodedLen`)
58
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
59
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
60
	/// The range of component `p` is `[1, 31]`.
61
	fn proxy(p: u32, ) -> Weight {
62
		// Proof Size summary in bytes:
63
		//  Measured:  `169 + p * (37 ±0)`
64
		//  Estimated: `4706 + p * (37 ±0)`
65
		// Minimum execution time: 21_609_000 picoseconds.
66
		Weight::from_parts(22_641_080, 4706)
67
			// Standard Error: 1_324
68
			.saturating_add(Weight::from_parts(38_972, 0).saturating_mul(p.into()))
69
			.saturating_add(T::DbWeight::get().reads(2_u64))
70
			.saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
71
	}
72
	/// Storage: `Proxy::Proxies` (r:1 w:0)
73
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
74
	/// Storage: `Proxy::Announcements` (r:1 w:1)
75
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
76
	/// Storage: `System::Account` (r:1 w:1)
77
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
78
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
79
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
80
	/// The range of component `a` is `[0, 31]`.
81
	/// The range of component `p` is `[1, 31]`.
82
	fn proxy_announced(a: u32, p: u32, ) -> Weight {
83
		// Proof Size summary in bytes:
84
		//  Measured:  `530 + a * (68 ±0) + p * (37 ±0)`
85
		//  Estimated: `5698 + a * (67 ±0) + p * (38 ±0)`
86
		// Minimum execution time: 50_688_000 picoseconds.
87
		Weight::from_parts(52_043_683, 5698)
88
			// Standard Error: 1_962
89
			.saturating_add(Weight::from_parts(190_587, 0).saturating_mul(a.into()))
90
			// Standard Error: 2_027
91
			.saturating_add(Weight::from_parts(39_229, 0).saturating_mul(p.into()))
92
			.saturating_add(T::DbWeight::get().reads(4_u64))
93
			.saturating_add(T::DbWeight::get().writes(2_u64))
94
			.saturating_add(Weight::from_parts(0, 67).saturating_mul(a.into()))
95
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(p.into()))
96
	}
97
	/// Storage: `Proxy::Announcements` (r:1 w:1)
98
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
99
	/// Storage: `System::Account` (r:1 w:1)
100
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
101
	/// The range of component `a` is `[0, 31]`.
102
	/// The range of component `p` is `[1, 31]`.
103
	fn remove_announcement(a: u32, p: u32, ) -> Weight {
104
		// Proof Size summary in bytes:
105
		//  Measured:  `403 + a * (68 ±0)`
106
		//  Estimated: `5698`
107
		// Minimum execution time: 33_249_000 picoseconds.
108
		Weight::from_parts(34_079_358, 5698)
109
			// Standard Error: 1_484
110
			.saturating_add(Weight::from_parts(180_579, 0).saturating_mul(a.into()))
111
			// Standard Error: 1_533
112
			.saturating_add(Weight::from_parts(9_953, 0).saturating_mul(p.into()))
113
			.saturating_add(T::DbWeight::get().reads(2_u64))
114
			.saturating_add(T::DbWeight::get().writes(2_u64))
115
	}
116
	/// Storage: `Proxy::Announcements` (r:1 w:1)
117
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
118
	/// Storage: `System::Account` (r:1 w:1)
119
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
120
	/// The range of component `a` is `[0, 31]`.
121
	/// The range of component `p` is `[1, 31]`.
122
	fn reject_announcement(a: u32, p: u32, ) -> Weight {
123
		// Proof Size summary in bytes:
124
		//  Measured:  `403 + a * (68 ±0)`
125
		//  Estimated: `5698`
126
		// Minimum execution time: 33_122_000 picoseconds.
127
		Weight::from_parts(34_022_500, 5698)
128
			// Standard Error: 1_462
129
			.saturating_add(Weight::from_parts(182_920, 0).saturating_mul(a.into()))
130
			// Standard Error: 1_510
131
			.saturating_add(Weight::from_parts(18_159, 0).saturating_mul(p.into()))
132
			.saturating_add(T::DbWeight::get().reads(2_u64))
133
			.saturating_add(T::DbWeight::get().writes(2_u64))
134
	}
135
	/// Storage: `Proxy::Proxies` (r:1 w:0)
136
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
137
	/// Storage: `Proxy::Announcements` (r:1 w:1)
138
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
139
	/// Storage: `System::Account` (r:1 w:1)
140
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
141
	/// The range of component `a` is `[0, 31]`.
142
	/// The range of component `p` is `[1, 31]`.
143
	fn announce(a: u32, p: u32, ) -> Weight {
144
		// Proof Size summary in bytes:
145
		//  Measured:  `420 + a * (68 ±0) + p * (37 ±0)`
146
		//  Estimated: `5698`
147
		// Minimum execution time: 43_156_000 picoseconds.
148
		Weight::from_parts(43_749_120, 5698)
149
			// Standard Error: 1_634
150
			.saturating_add(Weight::from_parts(177_424, 0).saturating_mul(a.into()))
151
			// Standard Error: 1_688
152
			.saturating_add(Weight::from_parts(36_709, 0).saturating_mul(p.into()))
153
			.saturating_add(T::DbWeight::get().reads(3_u64))
154
			.saturating_add(T::DbWeight::get().writes(2_u64))
155
	}
156
	/// Storage: `Proxy::Proxies` (r:1 w:1)
157
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
158
	/// The range of component `p` is `[1, 31]`.
159
	fn add_proxy(p: u32, ) -> Weight {
160
		// Proof Size summary in bytes:
161
		//  Measured:  `127 + p * (37 ±0)`
162
		//  Estimated: `4706`
163
		// Minimum execution time: 32_400_000 picoseconds.
164
		Weight::from_parts(33_314_090, 4706)
165
			// Standard Error: 1_318
166
			.saturating_add(Weight::from_parts(38_012, 0).saturating_mul(p.into()))
167
			.saturating_add(T::DbWeight::get().reads(1_u64))
168
			.saturating_add(T::DbWeight::get().writes(1_u64))
169
	}
170
	/// Storage: `Proxy::Proxies` (r:1 w:1)
171
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
172
	/// The range of component `p` is `[1, 31]`.
173
	fn remove_proxy(p: u32, ) -> Weight {
174
		// Proof Size summary in bytes:
175
		//  Measured:  `127 + p * (37 ±0)`
176
		//  Estimated: `4706`
177
		// Minimum execution time: 32_007_000 picoseconds.
178
		Weight::from_parts(33_057_477, 4706)
179
			// Standard Error: 1_192
180
			.saturating_add(Weight::from_parts(39_349, 0).saturating_mul(p.into()))
181
			.saturating_add(T::DbWeight::get().reads(1_u64))
182
			.saturating_add(T::DbWeight::get().writes(1_u64))
183
	}
184
	/// Storage: `Proxy::Proxies` (r:1 w:1)
185
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
186
	/// The range of component `p` is `[1, 31]`.
187
	fn remove_proxies(p: u32, ) -> Weight {
188
		// Proof Size summary in bytes:
189
		//  Measured:  `127 + p * (37 ±0)`
190
		//  Estimated: `4706`
191
		// Minimum execution time: 28_721_000 picoseconds.
192
		Weight::from_parts(29_664_549, 4706)
193
			// Standard Error: 1_202
194
			.saturating_add(Weight::from_parts(24_967, 0).saturating_mul(p.into()))
195
			.saturating_add(T::DbWeight::get().reads(1_u64))
196
			.saturating_add(T::DbWeight::get().writes(1_u64))
197
	}
198
	/// Storage: `Proxy::Proxies` (r:1 w:1)
199
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
200
	/// The range of component `p` is `[1, 31]`.
201
	fn create_pure(p: u32, ) -> Weight {
202
		// Proof Size summary in bytes:
203
		//  Measured:  `139`
204
		//  Estimated: `4706`
205
		// Minimum execution time: 33_943_000 picoseconds.
206
		Weight::from_parts(34_976_461, 4706)
207
			// Standard Error: 1_227
208
			.saturating_add(Weight::from_parts(16_100, 0).saturating_mul(p.into()))
209
			.saturating_add(T::DbWeight::get().reads(1_u64))
210
			.saturating_add(T::DbWeight::get().writes(1_u64))
211
	}
212
	/// Storage: `Proxy::Proxies` (r:1 w:1)
213
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
214
	/// The range of component `p` is `[0, 30]`.
215
	fn kill_pure(p: u32, ) -> Weight {
216
		// Proof Size summary in bytes:
217
		//  Measured:  `164 + p * (37 ±0)`
218
		//  Estimated: `4706`
219
		// Minimum execution time: 32_283_000 picoseconds.
220
		Weight::from_parts(33_651_024, 4706)
221
			// Standard Error: 1_364
222
			.saturating_add(Weight::from_parts(23_755, 0).saturating_mul(p.into()))
223
			.saturating_add(T::DbWeight::get().reads(1_u64))
224
			.saturating_add(T::DbWeight::get().writes(1_u64))
225
	}
226
	/// Storage: `Proxy::Proxies` (r:1 w:1)
227
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
228
	/// Storage: `System::Account` (r:1 w:1)
229
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
230
	/// Storage: `Proxy::Announcements` (r:1 w:1)
231
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
232
	fn poke_deposit() -> Weight {
233
		// Proof Size summary in bytes:
234
		//  Measured:  `452`
235
		//  Estimated: `5698`
236
		// Minimum execution time: 59_791_000 picoseconds.
237
		Weight::from_parts(60_626_000, 5698)
238
			.saturating_add(T::DbWeight::get().reads(3_u64))
239
			.saturating_add(T::DbWeight::get().writes(3_u64))
240
	}
241
}