referrerpolicy=no-referrer-when-downgrade

asset_hub_westend_runtime/weights/
pallet_proxy.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// 	http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_proxy`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-03-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `99fc4dfa9c86`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/asset-hub-westend-runtime/asset_hub_westend_runtime.wasm
31// --pallet=pallet_proxy
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_proxy`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
53	/// Storage: `Proxy::Proxies` (r:1 w:0)
54	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
55	/// The range of component `p` is `[1, 31]`.
56	fn proxy(p: u32, ) -> Weight {
57		// Proof Size summary in bytes:
58		//  Measured:  `161 + p * (37 ±0)`
59		//  Estimated: `4706`
60		// Minimum execution time: 14_242_000 picoseconds.
61		Weight::from_parts(14_960_578, 0)
62			.saturating_add(Weight::from_parts(0, 4706))
63			// Standard Error: 1_137
64			.saturating_add(Weight::from_parts(35_649, 0).saturating_mul(p.into()))
65			.saturating_add(T::DbWeight::get().reads(1))
66	}
67	/// Storage: `Proxy::Proxies` (r:1 w:0)
68	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
69	/// Storage: `Proxy::Announcements` (r:1 w:1)
70	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
71	/// Storage: `System::Account` (r:1 w:1)
72	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
73	/// The range of component `a` is `[0, 31]`.
74	/// The range of component `p` is `[1, 31]`.
75	fn proxy_announced(a: u32, p: u32, ) -> Weight {
76		// Proof Size summary in bytes:
77		//  Measured:  `488 + a * (68 ±0) + p * (37 ±0)`
78		//  Estimated: `5698`
79		// Minimum execution time: 41_637_000 picoseconds.
80		Weight::from_parts(41_169_266, 0)
81			.saturating_add(Weight::from_parts(0, 5698))
82			// Standard Error: 2_978
83			.saturating_add(Weight::from_parts(172_008, 0).saturating_mul(a.into()))
84			// Standard Error: 3_077
85			.saturating_add(Weight::from_parts(68_505, 0).saturating_mul(p.into()))
86			.saturating_add(T::DbWeight::get().reads(3))
87			.saturating_add(T::DbWeight::get().writes(2))
88	}
89	/// Storage: `Proxy::Announcements` (r:1 w:1)
90	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
91	/// Storage: `System::Account` (r:1 w:1)
92	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
93	/// The range of component `a` is `[0, 31]`.
94	/// The range of component `p` is `[1, 31]`.
95	fn remove_announcement(a: u32, p: u32, ) -> Weight {
96		// Proof Size summary in bytes:
97		//  Measured:  `403 + a * (68 ±0)`
98		//  Estimated: `5698`
99		// Minimum execution time: 26_087_000 picoseconds.
100		Weight::from_parts(26_927_415, 0)
101			.saturating_add(Weight::from_parts(0, 5698))
102			// Standard Error: 1_873
103			.saturating_add(Weight::from_parts(147_445, 0).saturating_mul(a.into()))
104			// Standard Error: 1_935
105			.saturating_add(Weight::from_parts(22_864, 0).saturating_mul(p.into()))
106			.saturating_add(T::DbWeight::get().reads(2))
107			.saturating_add(T::DbWeight::get().writes(2))
108	}
109	/// Storage: `Proxy::Announcements` (r:1 w:1)
110	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
111	/// Storage: `System::Account` (r:1 w:1)
112	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
113	/// The range of component `a` is `[0, 31]`.
114	/// The range of component `p` is `[1, 31]`.
115	fn reject_announcement(a: u32, p: u32, ) -> Weight {
116		// Proof Size summary in bytes:
117		//  Measured:  `403 + a * (68 ±0)`
118		//  Estimated: `5698`
119		// Minimum execution time: 26_473_000 picoseconds.
120		Weight::from_parts(26_682_318, 0)
121			.saturating_add(Weight::from_parts(0, 5698))
122			// Standard Error: 1_651
123			.saturating_add(Weight::from_parts(153_500, 0).saturating_mul(a.into()))
124			// Standard Error: 1_706
125			.saturating_add(Weight::from_parts(25_850, 0).saturating_mul(p.into()))
126			.saturating_add(T::DbWeight::get().reads(2))
127			.saturating_add(T::DbWeight::get().writes(2))
128	}
129	/// Storage: `Proxy::Proxies` (r:1 w:0)
130	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
131	/// Storage: `Proxy::Announcements` (r:1 w:1)
132	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
133	/// Storage: `System::Account` (r:1 w:1)
134	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
135	/// The range of component `a` is `[0, 31]`.
136	/// The range of component `p` is `[1, 31]`.
137	fn announce(a: u32, p: u32, ) -> Weight {
138		// Proof Size summary in bytes:
139		//  Measured:  `420 + a * (68 ±0) + p * (37 ±0)`
140		//  Estimated: `5698`
141		// Minimum execution time: 37_884_000 picoseconds.
142		Weight::from_parts(38_379_964, 0)
143			.saturating_add(Weight::from_parts(0, 5698))
144			// Standard Error: 1_965
145			.saturating_add(Weight::from_parts(151_226, 0).saturating_mul(a.into()))
146			// Standard Error: 2_030
147			.saturating_add(Weight::from_parts(51_251, 0).saturating_mul(p.into()))
148			.saturating_add(T::DbWeight::get().reads(3))
149			.saturating_add(T::DbWeight::get().writes(2))
150	}
151	/// Storage: `Proxy::Proxies` (r:1 w:1)
152	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
153	/// The range of component `p` is `[1, 31]`.
154	fn add_proxy(p: u32, ) -> Weight {
155		// Proof Size summary in bytes:
156		//  Measured:  `161 + p * (37 ±0)`
157		//  Estimated: `4706`
158		// Minimum execution time: 24_317_000 picoseconds.
159		Weight::from_parts(25_244_966, 0)
160			.saturating_add(Weight::from_parts(0, 4706))
161			// Standard Error: 1_330
162			.saturating_add(Weight::from_parts(50_765, 0).saturating_mul(p.into()))
163			.saturating_add(T::DbWeight::get().reads(1))
164			.saturating_add(T::DbWeight::get().writes(1))
165	}
166	/// Storage: `Proxy::Proxies` (r:1 w:1)
167	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
168	/// The range of component `p` is `[1, 31]`.
169	fn remove_proxy(p: u32, ) -> Weight {
170		// Proof Size summary in bytes:
171		//  Measured:  `161 + p * (37 ±0)`
172		//  Estimated: `4706`
173		// Minimum execution time: 23_865_000 picoseconds.
174		Weight::from_parts(25_111_800, 0)
175			.saturating_add(Weight::from_parts(0, 4706))
176			// Standard Error: 1_501
177			.saturating_add(Weight::from_parts(45_002, 0).saturating_mul(p.into()))
178			.saturating_add(T::DbWeight::get().reads(1))
179			.saturating_add(T::DbWeight::get().writes(1))
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:  `161 + p * (37 ±0)`
187		//  Estimated: `4706`
188		// Minimum execution time: 21_721_000 picoseconds.
189		Weight::from_parts(22_626_669, 0)
190			.saturating_add(Weight::from_parts(0, 4706))
191			// Standard Error: 1_314
192			.saturating_add(Weight::from_parts(27_650, 0).saturating_mul(p.into()))
193			.saturating_add(T::DbWeight::get().reads(1))
194			.saturating_add(T::DbWeight::get().writes(1))
195	}
196	/// Storage: `Proxy::Proxies` (r:1 w:1)
197	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
198	/// The range of component `p` is `[1, 31]`.
199	fn create_pure(p: u32, ) -> Weight {
200		// Proof Size summary in bytes:
201		//  Measured:  `173`
202		//  Estimated: `4706`
203		// Minimum execution time: 25_709_000 picoseconds.
204		Weight::from_parts(27_143_129, 0)
205			.saturating_add(Weight::from_parts(0, 4706))
206			// Standard Error: 1_723
207			.saturating_add(Weight::from_parts(8_047, 0).saturating_mul(p.into()))
208			.saturating_add(T::DbWeight::get().reads(1))
209			.saturating_add(T::DbWeight::get().writes(1))
210	}
211	/// Storage: `Proxy::Proxies` (r:1 w:1)
212	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
213	/// The range of component `p` is `[0, 30]`.
214	fn kill_pure(p: u32, ) -> Weight {
215		// Proof Size summary in bytes:
216		//  Measured:  `198 + p * (37 ±0)`
217		//  Estimated: `4706`
218		// Minimum execution time: 22_817_000 picoseconds.
219		Weight::from_parts(23_755_496, 0)
220			.saturating_add(Weight::from_parts(0, 4706))
221			// Standard Error: 1_854
222			.saturating_add(Weight::from_parts(33_383, 0).saturating_mul(p.into()))
223			.saturating_add(T::DbWeight::get().reads(1))
224			.saturating_add(T::DbWeight::get().writes(1))
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:  `487`
235		//  Estimated: `5698`
236		// Minimum execution time: 43_822_000 picoseconds.
237		Weight::from_parts(45_419_000, 0)
238			.saturating_add(Weight::from_parts(0, 5698))
239			.saturating_add(T::DbWeight::get().reads(3))
240			.saturating_add(T::DbWeight::get().writes(3))
241	}
242}