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