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

            
26
// Executed Command:
27
// target/release/tanssi-relay
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_proxy
34
// --extrinsic
35
// *
36
// --chain=dancelight-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/dancelight_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() -> 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
	/// The range of component `p` is `[1, 31]`.
63
	fn proxy(p: u32, ) -> Weight {
64
		// Proof Size summary in bytes:
65
		//  Measured:  `127 + p * (37 ±0)`
66
		//  Estimated: `4706`
67
		// Minimum execution time: 19_464_000 picoseconds.
68
		Weight::from_parts(20_200_212, 4706)
69
			// Standard Error: 1_214
70
			.saturating_add(Weight::from_parts(45_072, 0).saturating_mul(p.into()))
71
			.saturating_add(T::DbWeight::get().reads(1_u64))
72
	}
73
	/// Storage: `Proxy::Proxies` (r:1 w:0)
74
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
75
	/// Storage: `Proxy::Announcements` (r:1 w:1)
76
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
77
	/// Storage: `System::Account` (r:1 w:1)
78
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
79
	/// The range of component `a` is `[0, 31]`.
80
	/// The range of component `p` is `[1, 31]`.
81
	fn proxy_announced(a: u32, p: u32, ) -> Weight {
82
		// Proof Size summary in bytes:
83
		//  Measured:  `488 + a * (68 ±0) + p * (37 ±0)`
84
		//  Estimated: `5698`
85
		// Minimum execution time: 49_218_000 picoseconds.
86
		Weight::from_parts(49_915_050, 5698)
87
			// Standard Error: 2_099
88
			.saturating_add(Weight::from_parts(181_738, 0).saturating_mul(a.into()))
89
			// Standard Error: 2_169
90
			.saturating_add(Weight::from_parts(41_101, 0).saturating_mul(p.into()))
91
			.saturating_add(T::DbWeight::get().reads(3_u64))
92
			.saturating_add(T::DbWeight::get().writes(2_u64))
93
	}
94
	/// Storage: `Proxy::Announcements` (r:1 w:1)
95
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
96
	/// Storage: `System::Account` (r:1 w:1)
97
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
98
	/// The range of component `a` is `[0, 31]`.
99
	/// The range of component `p` is `[1, 31]`.
100
	fn remove_announcement(a: u32, p: u32, ) -> Weight {
101
		// Proof Size summary in bytes:
102
		//  Measured:  `403 + a * (68 ±0)`
103
		//  Estimated: `5698`
104
		// Minimum execution time: 33_977_000 picoseconds.
105
		Weight::from_parts(34_945_701, 5698)
106
			// Standard Error: 1_420
107
			.saturating_add(Weight::from_parts(168_009, 0).saturating_mul(a.into()))
108
			// Standard Error: 1_467
109
			.saturating_add(Weight::from_parts(7_504, 0).saturating_mul(p.into()))
110
			.saturating_add(T::DbWeight::get().reads(2_u64))
111
			.saturating_add(T::DbWeight::get().writes(2_u64))
112
	}
113
	/// Storage: `Proxy::Announcements` (r:1 w:1)
114
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
115
	/// Storage: `System::Account` (r:1 w:1)
116
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
117
	/// The range of component `a` is `[0, 31]`.
118
	/// The range of component `p` is `[1, 31]`.
119
	fn reject_announcement(a: u32, p: u32, ) -> Weight {
120
		// Proof Size summary in bytes:
121
		//  Measured:  `403 + a * (68 ±0)`
122
		//  Estimated: `5698`
123
		// Minimum execution time: 33_333_000 picoseconds.
124
		Weight::from_parts(34_819_527, 5698)
125
			// Standard Error: 1_487
126
			.saturating_add(Weight::from_parts(170_964, 0).saturating_mul(a.into()))
127
			// Standard Error: 1_537
128
			.saturating_add(Weight::from_parts(7_283, 0).saturating_mul(p.into()))
129
			.saturating_add(T::DbWeight::get().reads(2_u64))
130
			.saturating_add(T::DbWeight::get().writes(2_u64))
131
	}
132
	/// Storage: `Proxy::Proxies` (r:1 w:0)
133
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
134
	/// Storage: `Proxy::Announcements` (r:1 w:1)
135
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
136
	/// Storage: `System::Account` (r:1 w:1)
137
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
138
	/// The range of component `a` is `[0, 31]`.
139
	/// The range of component `p` is `[1, 31]`.
140
	fn announce(a: u32, p: u32, ) -> Weight {
141
		// Proof Size summary in bytes:
142
		//  Measured:  `420 + a * (68 ±0) + p * (37 ±0)`
143
		//  Estimated: `5698`
144
		// Minimum execution time: 44_202_000 picoseconds.
145
		Weight::from_parts(45_063_992, 5698)
146
			// Standard Error: 1_879
147
			.saturating_add(Weight::from_parts(177_236, 0).saturating_mul(a.into()))
148
			// Standard Error: 1_941
149
			.saturating_add(Weight::from_parts(37_965, 0).saturating_mul(p.into()))
150
			.saturating_add(T::DbWeight::get().reads(3_u64))
151
			.saturating_add(T::DbWeight::get().writes(2_u64))
152
	}
153
	/// Storage: `Proxy::Proxies` (r:1 w:1)
154
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
155
	/// The range of component `p` is `[1, 31]`.
156
	fn add_proxy(p: u32, ) -> Weight {
157
		// Proof Size summary in bytes:
158
		//  Measured:  `127 + p * (37 ±0)`
159
		//  Estimated: `4706`
160
		// Minimum execution time: 32_431_000 picoseconds.
161
		Weight::from_parts(33_360_073, 4706)
162
			// Standard Error: 1_107
163
			.saturating_add(Weight::from_parts(59_482, 0).saturating_mul(p.into()))
164
			.saturating_add(T::DbWeight::get().reads(1_u64))
165
			.saturating_add(T::DbWeight::get().writes(1_u64))
166
	}
167
	/// Storage: `Proxy::Proxies` (r:1 w:1)
168
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
169
	/// The range of component `p` is `[1, 31]`.
170
	fn remove_proxy(p: u32, ) -> Weight {
171
		// Proof Size summary in bytes:
172
		//  Measured:  `127 + p * (37 ±0)`
173
		//  Estimated: `4706`
174
		// Minimum execution time: 32_392_000 picoseconds.
175
		Weight::from_parts(33_342_511, 4706)
176
			// Standard Error: 1_359
177
			.saturating_add(Weight::from_parts(55_008, 0).saturating_mul(p.into()))
178
			.saturating_add(T::DbWeight::get().reads(1_u64))
179
			.saturating_add(T::DbWeight::get().writes(1_u64))
180
	}
181
	/// Storage: `Proxy::Proxies` (r:1 w:1)
182
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
183
	/// The range of component `p` is `[1, 31]`.
184
	fn remove_proxies(p: u32, ) -> Weight {
185
		// Proof Size summary in bytes:
186
		//  Measured:  `127 + p * (37 ±0)`
187
		//  Estimated: `4706`
188
		// Minimum execution time: 29_025_000 picoseconds.
189
		Weight::from_parts(30_072_724, 4706)
190
			// Standard Error: 1_440
191
			.saturating_add(Weight::from_parts(38_827, 0).saturating_mul(p.into()))
192
			.saturating_add(T::DbWeight::get().reads(1_u64))
193
			.saturating_add(T::DbWeight::get().writes(1_u64))
194
	}
195
	/// Storage: `Proxy::Proxies` (r:1 w:1)
196
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
197
	/// The range of component `p` is `[1, 31]`.
198
	fn create_pure(p: u32, ) -> Weight {
199
		// Proof Size summary in bytes:
200
		//  Measured:  `139`
201
		//  Estimated: `4706`
202
		// Minimum execution time: 34_745_000 picoseconds.
203
		Weight::from_parts(35_725_852, 4706)
204
			// Standard Error: 1_373
205
			.saturating_add(Weight::from_parts(6_864, 0).saturating_mul(p.into()))
206
			.saturating_add(T::DbWeight::get().reads(1_u64))
207
			.saturating_add(T::DbWeight::get().writes(1_u64))
208
	}
209
	/// Storage: `Proxy::Proxies` (r:1 w:1)
210
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
211
	/// The range of component `p` is `[0, 30]`.
212
	fn kill_pure(p: u32, ) -> Weight {
213
		// Proof Size summary in bytes:
214
		//  Measured:  `164 + p * (37 ±0)`
215
		//  Estimated: `4706`
216
		// Minimum execution time: 30_338_000 picoseconds.
217
		Weight::from_parts(31_159_659, 4706)
218
			// Standard Error: 1_298
219
			.saturating_add(Weight::from_parts(47_349, 0).saturating_mul(p.into()))
220
			.saturating_add(T::DbWeight::get().reads(1_u64))
221
			.saturating_add(T::DbWeight::get().writes(1_u64))
222
	}
223
}