referrerpolicy=no-referrer-when-downgrade

rococo_runtime/weights/
pallet_proxy.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot 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// Polkadot 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 Polkadot.  If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `pallet_proxy`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `99fc4dfa9c86`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/rococo-runtime/rococo_runtime.wasm
32// --pallet=pallet_proxy
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/rococo/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_proxy`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
54	/// Storage: `Proxy::Proxies` (r:1 w:0)
55	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
56	/// The range of component `p` is `[1, 31]`.
57	fn proxy(p: u32, ) -> Weight {
58		// Proof Size summary in bytes:
59		//  Measured:  `89 + p * (37 ±0)`
60		//  Estimated: `4706`
61		// Minimum execution time: 13_806_000 picoseconds.
62		Weight::from_parts(14_554_351, 0)
63			.saturating_add(Weight::from_parts(0, 4706))
64			// Standard Error: 1_532
65			.saturating_add(Weight::from_parts(34_377, 0).saturating_mul(p.into()))
66			.saturating_add(T::DbWeight::get().reads(1))
67	}
68	/// Storage: `Proxy::Proxies` (r:1 w:0)
69	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
70	/// Storage: `Proxy::Announcements` (r:1 w:1)
71	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
72	/// Storage: `System::Account` (r:1 w:1)
73	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
74	/// The range of component `a` is `[0, 31]`.
75	/// The range of component `p` is `[1, 31]`.
76	fn proxy_announced(a: u32, p: u32, ) -> Weight {
77		// Proof Size summary in bytes:
78		//  Measured:  `416 + a * (68 ±0) + p * (37 ±0)`
79		//  Estimated: `5698`
80		// Minimum execution time: 37_228_000 picoseconds.
81		Weight::from_parts(38_313_529, 0)
82			.saturating_add(Weight::from_parts(0, 5698))
83			// Standard Error: 2_504
84			.saturating_add(Weight::from_parts(152_320, 0).saturating_mul(a.into()))
85			// Standard Error: 2_587
86			.saturating_add(Weight::from_parts(31_543, 0).saturating_mul(p.into()))
87			.saturating_add(T::DbWeight::get().reads(3))
88			.saturating_add(T::DbWeight::get().writes(2))
89	}
90	/// Storage: `Proxy::Announcements` (r:1 w:1)
91	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
92	/// Storage: `System::Account` (r:1 w:1)
93	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
94	/// The range of component `a` is `[0, 31]`.
95	/// The range of component `p` is `[1, 31]`.
96	fn remove_announcement(a: u32, p: u32, ) -> Weight {
97		// Proof Size summary in bytes:
98		//  Measured:  `331 + a * (68 ±0)`
99		//  Estimated: `5698`
100		// Minimum execution time: 25_166_000 picoseconds.
101		Weight::from_parts(26_418_176, 0)
102			.saturating_add(Weight::from_parts(0, 5698))
103			// Standard Error: 2_246
104			.saturating_add(Weight::from_parts(153_564, 0).saturating_mul(a.into()))
105			// Standard Error: 2_320
106			.saturating_add(Weight::from_parts(4_962, 0).saturating_mul(p.into()))
107			.saturating_add(T::DbWeight::get().reads(2))
108			.saturating_add(T::DbWeight::get().writes(2))
109	}
110	/// Storage: `Proxy::Announcements` (r:1 w:1)
111	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
112	/// Storage: `System::Account` (r:1 w:1)
113	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
114	/// The range of component `a` is `[0, 31]`.
115	/// The range of component `p` is `[1, 31]`.
116	fn reject_announcement(a: u32, p: u32, ) -> Weight {
117		// Proof Size summary in bytes:
118		//  Measured:  `331 + a * (68 ±0)`
119		//  Estimated: `5698`
120		// Minimum execution time: 25_037_000 picoseconds.
121		Weight::from_parts(26_468_002, 0)
122			.saturating_add(Weight::from_parts(0, 5698))
123			// Standard Error: 2_411
124			.saturating_add(Weight::from_parts(143_670, 0).saturating_mul(a.into()))
125			// Standard Error: 2_491
126			.saturating_add(Weight::from_parts(6_595, 0).saturating_mul(p.into()))
127			.saturating_add(T::DbWeight::get().reads(2))
128			.saturating_add(T::DbWeight::get().writes(2))
129	}
130	/// Storage: `Proxy::Proxies` (r:1 w:0)
131	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
132	/// Storage: `Proxy::Announcements` (r:1 w:1)
133	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
134	/// Storage: `System::Account` (r:1 w:1)
135	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
136	/// The range of component `a` is `[0, 31]`.
137	/// The range of component `p` is `[1, 31]`.
138	fn announce(a: u32, p: u32, ) -> Weight {
139		// Proof Size summary in bytes:
140		//  Measured:  `348 + a * (68 ±0) + p * (37 ±0)`
141		//  Estimated: `5698`
142		// Minimum execution time: 33_282_000 picoseconds.
143		Weight::from_parts(34_525_175, 0)
144			.saturating_add(Weight::from_parts(0, 5698))
145			// Standard Error: 2_568
146			.saturating_add(Weight::from_parts(153_824, 0).saturating_mul(a.into()))
147			// Standard Error: 2_654
148			.saturating_add(Weight::from_parts(32_899, 0).saturating_mul(p.into()))
149			.saturating_add(T::DbWeight::get().reads(3))
150			.saturating_add(T::DbWeight::get().writes(2))
151	}
152	/// Storage: `Proxy::Proxies` (r:1 w:1)
153	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
154	/// The range of component `p` is `[1, 31]`.
155	fn add_proxy(p: u32, ) -> Weight {
156		// Proof Size summary in bytes:
157		//  Measured:  `89 + p * (37 ±0)`
158		//  Estimated: `4706`
159		// Minimum execution time: 23_623_000 picoseconds.
160		Weight::from_parts(24_796_223, 0)
161			.saturating_add(Weight::from_parts(0, 4706))
162			// Standard Error: 1_528
163			.saturating_add(Weight::from_parts(49_181, 0).saturating_mul(p.into()))
164			.saturating_add(T::DbWeight::get().reads(1))
165			.saturating_add(T::DbWeight::get().writes(1))
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:  `89 + p * (37 ±0)`
173		//  Estimated: `4706`
174		// Minimum execution time: 23_507_000 picoseconds.
175		Weight::from_parts(24_816_973, 0)
176			.saturating_add(Weight::from_parts(0, 4706))
177			// Standard Error: 1_511
178			.saturating_add(Weight::from_parts(38_405, 0).saturating_mul(p.into()))
179			.saturating_add(T::DbWeight::get().reads(1))
180			.saturating_add(T::DbWeight::get().writes(1))
181	}
182	/// Storage: `Proxy::Proxies` (r:1 w:1)
183	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
184	/// The range of component `p` is `[1, 31]`.
185	fn remove_proxies(p: u32, ) -> Weight {
186		// Proof Size summary in bytes:
187		//  Measured:  `89 + p * (37 ±0)`
188		//  Estimated: `4706`
189		// Minimum execution time: 20_730_000 picoseconds.
190		Weight::from_parts(22_017_715, 0)
191			.saturating_add(Weight::from_parts(0, 4706))
192			// Standard Error: 1_790
193			.saturating_add(Weight::from_parts(23_582, 0).saturating_mul(p.into()))
194			.saturating_add(T::DbWeight::get().reads(1))
195			.saturating_add(T::DbWeight::get().writes(1))
196	}
197	/// Storage: `Proxy::Proxies` (r:1 w:1)
198	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
199	/// The range of component `p` is `[1, 31]`.
200	fn create_pure(p: u32, ) -> Weight {
201		// Proof Size summary in bytes:
202		//  Measured:  `101`
203		//  Estimated: `4706`
204		// Minimum execution time: 25_202_000 picoseconds.
205		Weight::from_parts(26_459_004, 0)
206			.saturating_add(Weight::from_parts(0, 4706))
207			// Standard Error: 1_850
208			.saturating_add(Weight::from_parts(3_579, 0).saturating_mul(p.into()))
209			.saturating_add(T::DbWeight::get().reads(1))
210			.saturating_add(T::DbWeight::get().writes(1))
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:  `126 + p * (37 ±0)`
218		//  Estimated: `4706`
219		// Minimum execution time: 21_449_000 picoseconds.
220		Weight::from_parts(22_621_565, 0)
221			.saturating_add(Weight::from_parts(0, 4706))
222			// Standard Error: 2_057
223			.saturating_add(Weight::from_parts(41_291, 0).saturating_mul(p.into()))
224			.saturating_add(T::DbWeight::get().reads(1))
225			.saturating_add(T::DbWeight::get().writes(1))
226	}
227	/// Storage: `Proxy::Proxies` (r:1 w:1)
228	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
229	/// Storage: `System::Account` (r:1 w:1)
230	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
231	/// Storage: `Proxy::Announcements` (r:1 w:1)
232	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
233	fn poke_deposit() -> Weight {
234		// Proof Size summary in bytes:
235		//  Measured:  `414`
236		//  Estimated: `5698`
237		// Minimum execution time: 44_155_000 picoseconds.
238		Weight::from_parts(45_402_000, 0)
239			.saturating_add(Weight::from_parts(0, 5698))
240			.saturating_add(T::DbWeight::get().reads(3))
241			.saturating_add(T::DbWeight::get().writes(3))
242	}
243}