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/container-chain-frontier-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/frontier_template_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
	/// Storage: `Proxy::Proxies` (r:1 w:0)
58
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
59
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
60
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
61
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
62
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
63
	/// The range of component `p` is `[1, 31]`.
64
	fn proxy(p: u32, ) -> Weight {
65
		// Proof Size summary in bytes:
66
		//  Measured:  `161 + p * (25 ±0)`
67
		//  Estimated: `4310 + p * (25 ±0)`
68
		// Minimum execution time: 25_691_000 picoseconds.
69
		Weight::from_parts(26_627_006, 4310)
70
			// Standard Error: 1_376
71
			.saturating_add(Weight::from_parts(37_002, 0).saturating_mul(p.into()))
72
			.saturating_add(T::DbWeight::get().reads(3_u64))
73
			.saturating_add(Weight::from_parts(0, 25).saturating_mul(p.into()))
74
	}
75
	/// Storage: `Proxy::Proxies` (r:1 w:0)
76
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
77
	/// Storage: `Proxy::Announcements` (r:1 w:1)
78
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
79
	/// Storage: `System::Account` (r:1 w:1)
80
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
81
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
82
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
83
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
84
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
85
	/// The range of component `a` is `[0, 31]`.
86
	/// The range of component `p` is `[1, 31]`.
87
	fn proxy_announced(a: u32, p: u32, ) -> Weight {
88
		// Proof Size summary in bytes:
89
		//  Measured:  `412 + a * (56 ±0) + p * (25 ±0)`
90
		//  Estimated: `5302 + a * (57 ±0) + p * (25 ±0)`
91
		// Minimum execution time: 60_592_000 picoseconds.
92
		Weight::from_parts(61_641_712, 5302)
93
			// Standard Error: 2_558
94
			.saturating_add(Weight::from_parts(192_136, 0).saturating_mul(a.into()))
95
			// Standard Error: 2_642
96
			.saturating_add(Weight::from_parts(27_601, 0).saturating_mul(p.into()))
97
			.saturating_add(T::DbWeight::get().reads(5_u64))
98
			.saturating_add(T::DbWeight::get().writes(2_u64))
99
			.saturating_add(Weight::from_parts(0, 57).saturating_mul(a.into()))
100
			.saturating_add(Weight::from_parts(0, 25).saturating_mul(p.into()))
101
	}
102
	/// Storage: `Proxy::Announcements` (r:1 w:1)
103
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
104
	/// Storage: `System::Account` (r:1 w:1)
105
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
106
	/// The range of component `a` is `[0, 31]`.
107
	/// The range of component `p` is `[1, 31]`.
108
	fn remove_announcement(a: u32, _p: u32, ) -> Weight {
109
		// Proof Size summary in bytes:
110
		//  Measured:  `294 + a * (56 ±0)`
111
		//  Estimated: `5302`
112
		// Minimum execution time: 33_552_000 picoseconds.
113
		Weight::from_parts(34_708_704, 5302)
114
			// Standard Error: 1_778
115
			.saturating_add(Weight::from_parts(183_620, 0).saturating_mul(a.into()))
116
			.saturating_add(T::DbWeight::get().reads(2_u64))
117
			.saturating_add(T::DbWeight::get().writes(2_u64))
118
	}
119
	/// Storage: `Proxy::Announcements` (r:1 w:1)
120
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
121
	/// Storage: `System::Account` (r:1 w:1)
122
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
123
	/// The range of component `a` is `[0, 31]`.
124
	/// The range of component `p` is `[1, 31]`.
125
	fn reject_announcement(a: u32, _p: u32, ) -> Weight {
126
		// Proof Size summary in bytes:
127
		//  Measured:  `294 + a * (56 ±0)`
128
		//  Estimated: `5302`
129
		// Minimum execution time: 33_427_000 picoseconds.
130
		Weight::from_parts(34_613_071, 5302)
131
			// Standard Error: 1_722
132
			.saturating_add(Weight::from_parts(188_252, 0).saturating_mul(a.into()))
133
			.saturating_add(T::DbWeight::get().reads(2_u64))
134
			.saturating_add(T::DbWeight::get().writes(2_u64))
135
	}
136
	/// Storage: `Proxy::Proxies` (r:1 w:0)
137
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
138
	/// Storage: `Proxy::Announcements` (r:1 w:1)
139
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
140
	/// Storage: `System::Account` (r:1 w:1)
141
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
142
	/// The range of component `a` is `[0, 31]`.
143
	/// The range of component `p` is `[1, 31]`.
144
	fn announce(a: u32, p: u32, ) -> Weight {
145
		// Proof Size summary in bytes:
146
		//  Measured:  `310 + a * (56 ±0) + p * (25 ±0)`
147
		//  Estimated: `5302`
148
		// Minimum execution time: 43_368_000 picoseconds.
149
		Weight::from_parts(44_352_568, 5302)
150
			// Standard Error: 2_557
151
			.saturating_add(Weight::from_parts(190_360, 0).saturating_mul(a.into()))
152
			// Standard Error: 2_642
153
			.saturating_add(Weight::from_parts(20_968, 0).saturating_mul(p.into()))
154
			.saturating_add(T::DbWeight::get().reads(3_u64))
155
			.saturating_add(T::DbWeight::get().writes(2_u64))
156
	}
157
	/// Storage: `Proxy::Proxies` (r:1 w:1)
158
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
159
	/// The range of component `p` is `[1, 31]`.
160
	fn add_proxy(p: u32, ) -> Weight {
161
		// Proof Size summary in bytes:
162
		//  Measured:  `115 + p * (25 ±0)`
163
		//  Estimated: `4310`
164
		// Minimum execution time: 33_052_000 picoseconds.
165
		Weight::from_parts(34_277_056, 4310)
166
			// Standard Error: 1_059
167
			.saturating_add(Weight::from_parts(33_515, 0).saturating_mul(p.into()))
168
			.saturating_add(T::DbWeight::get().reads(1_u64))
169
			.saturating_add(T::DbWeight::get().writes(1_u64))
170
	}
171
	/// Storage: `Proxy::Proxies` (r:1 w:1)
172
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
173
	/// The range of component `p` is `[1, 31]`.
174
	fn remove_proxy(p: u32, ) -> Weight {
175
		// Proof Size summary in bytes:
176
		//  Measured:  `115 + p * (25 ±0)`
177
		//  Estimated: `4310`
178
		// Minimum execution time: 33_236_000 picoseconds.
179
		Weight::from_parts(34_290_591, 4310)
180
			// Standard Error: 1_258
181
			.saturating_add(Weight::from_parts(42_342, 0).saturating_mul(p.into()))
182
			.saturating_add(T::DbWeight::get().reads(1_u64))
183
			.saturating_add(T::DbWeight::get().writes(1_u64))
184
	}
185
	/// Storage: `Proxy::Proxies` (r:1 w:1)
186
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
187
	/// The range of component `p` is `[1, 31]`.
188
	fn remove_proxies(p: u32, ) -> Weight {
189
		// Proof Size summary in bytes:
190
		//  Measured:  `115 + p * (25 ±0)`
191
		//  Estimated: `4310`
192
		// Minimum execution time: 29_975_000 picoseconds.
193
		Weight::from_parts(31_057_794, 4310)
194
			// Standard Error: 1_075
195
			.saturating_add(Weight::from_parts(29_672, 0).saturating_mul(p.into()))
196
			.saturating_add(T::DbWeight::get().reads(1_u64))
197
			.saturating_add(T::DbWeight::get().writes(1_u64))
198
	}
199
	/// Storage: `Proxy::Proxies` (r:1 w:1)
200
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
201
	/// The range of component `p` is `[1, 31]`.
202
	fn create_pure(p: u32, ) -> Weight {
203
		// Proof Size summary in bytes:
204
		//  Measured:  `127`
205
		//  Estimated: `4310`
206
		// Minimum execution time: 35_394_000 picoseconds.
207
		Weight::from_parts(36_451_816, 4310)
208
			// Standard Error: 1_396
209
			.saturating_add(Weight::from_parts(9_515, 0).saturating_mul(p.into()))
210
			.saturating_add(T::DbWeight::get().reads(1_u64))
211
			.saturating_add(T::DbWeight::get().writes(1_u64))
212
	}
213
	/// Storage: `Proxy::Proxies` (r:1 w:1)
214
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
215
	/// The range of component `p` is `[0, 30]`.
216
	fn kill_pure(p: u32, ) -> Weight {
217
		// Proof Size summary in bytes:
218
		//  Measured:  `140 + p * (25 ±0)`
219
		//  Estimated: `4310`
220
		// Minimum execution time: 31_180_000 picoseconds.
221
		Weight::from_parts(32_150_665, 4310)
222
			// Standard Error: 1_328
223
			.saturating_add(Weight::from_parts(34_516, 0).saturating_mul(p.into()))
224
			.saturating_add(T::DbWeight::get().reads(1_u64))
225
			.saturating_add(T::DbWeight::get().writes(1_u64))
226
	}
227
}