referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
pallet_proxy.rs

1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// 	http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! Autogenerated weights for `pallet_proxy`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-westend-dev")`, DB CACHE: 1024
25
26// Executed Command:
27// ./target/production/polkadot-parachain
28// benchmark
29// pallet
30// --chain=asset-hub-next-westend-dev
31// --wasm-execution=compiled
32// --pallet=pallet_proxy
33// --no-storage-info
34// --no-median-slopes
35// --no-min-squares
36// --extrinsic=*
37// --steps=50
38// --repeat=20
39// --json
40// --header=./file_header.txt
41// --output=./parachains/runtimes/assets/asset-hub-next-westend/src/weights/
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	fn poke_deposit() -> Weight {
55		Default::default()
56	}
57	/// Storage: `Proxy::Proxies` (r:1 w:0)
58	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
59	/// The range of component `p` is `[1, 31]`.
60	fn proxy(p: u32, ) -> Weight {
61		// Proof Size summary in bytes:
62		//  Measured:  `127 + p * (37 ±0)`
63		//  Estimated: `4706`
64		// Minimum execution time: 15_673_000 picoseconds.
65		Weight::from_parts(16_387_670, 0)
66			.saturating_add(Weight::from_parts(0, 4706))
67			// Standard Error: 1_721
68			.saturating_add(Weight::from_parts(43_526, 0).saturating_mul(p.into()))
69			.saturating_add(T::DbWeight::get().reads(1))
70	}
71	/// Storage: `Proxy::Proxies` (r:1 w:0)
72	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
73	/// Storage: `Proxy::Announcements` (r:1 w:1)
74	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
75	/// Storage: `System::Account` (r:1 w:1)
76	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
77	/// The range of component `a` is `[0, 31]`.
78	/// The range of component `p` is `[1, 31]`.
79	fn proxy_announced(a: u32, p: u32, ) -> Weight {
80		// Proof Size summary in bytes:
81		//  Measured:  `454 + a * (68 ±0) + p * (37 ±0)`
82		//  Estimated: `5698`
83		// Minimum execution time: 36_942_000 picoseconds.
84		Weight::from_parts(36_433_953, 0)
85			.saturating_add(Weight::from_parts(0, 5698))
86			// Standard Error: 2_462
87			.saturating_add(Weight::from_parts(143_560, 0).saturating_mul(a.into()))
88			// Standard Error: 2_544
89			.saturating_add(Weight::from_parts(60_294, 0).saturating_mul(p.into()))
90			.saturating_add(T::DbWeight::get().reads(3))
91			.saturating_add(T::DbWeight::get().writes(2))
92	}
93	/// Storage: `Proxy::Announcements` (r:1 w:1)
94	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
95	/// Storage: `System::Account` (r:1 w:1)
96	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
97	/// The range of component `a` is `[0, 31]`.
98	/// The range of component `p` is `[1, 31]`.
99	fn remove_announcement(a: u32, p: u32, ) -> Weight {
100		// Proof Size summary in bytes:
101		//  Measured:  `369 + a * (68 ±0)`
102		//  Estimated: `5698`
103		// Minimum execution time: 23_781_000 picoseconds.
104		Weight::from_parts(24_589_553, 0)
105			.saturating_add(Weight::from_parts(0, 5698))
106			// Standard Error: 1_805
107			.saturating_add(Weight::from_parts(121_040, 0).saturating_mul(a.into()))
108			// Standard Error: 1_865
109			.saturating_add(Weight::from_parts(8_151, 0).saturating_mul(p.into()))
110			.saturating_add(T::DbWeight::get().reads(2))
111			.saturating_add(T::DbWeight::get().writes(2))
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:  `369 + a * (68 ±0)`
122		//  Estimated: `5698`
123		// Minimum execution time: 23_868_000 picoseconds.
124		Weight::from_parts(24_246_179, 0)
125			.saturating_add(Weight::from_parts(0, 5698))
126			// Standard Error: 1_752
127			.saturating_add(Weight::from_parts(124_703, 0).saturating_mul(a.into()))
128			// Standard Error: 1_810
129			.saturating_add(Weight::from_parts(21_348, 0).saturating_mul(p.into()))
130			.saturating_add(T::DbWeight::get().reads(2))
131			.saturating_add(T::DbWeight::get().writes(2))
132	}
133	/// Storage: `Proxy::Proxies` (r:1 w:0)
134	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
135	/// Storage: `Proxy::Announcements` (r:1 w:1)
136	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
137	/// Storage: `System::Account` (r:1 w:1)
138	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
139	/// The range of component `a` is `[0, 31]`.
140	/// The range of component `p` is `[1, 31]`.
141	fn announce(a: u32, p: u32, ) -> Weight {
142		// Proof Size summary in bytes:
143		//  Measured:  `386 + a * (68 ±0) + p * (37 ±0)`
144		//  Estimated: `5698`
145		// Minimum execution time: 33_352_000 picoseconds.
146		Weight::from_parts(33_156_164, 0)
147			.saturating_add(Weight::from_parts(0, 5698))
148			// Standard Error: 1_284
149			.saturating_add(Weight::from_parts(127_696, 0).saturating_mul(a.into()))
150			// Standard Error: 1_327
151			.saturating_add(Weight::from_parts(44_544, 0).saturating_mul(p.into()))
152			.saturating_add(T::DbWeight::get().reads(3))
153			.saturating_add(T::DbWeight::get().writes(2))
154	}
155	/// Storage: `Proxy::Proxies` (r:1 w:1)
156	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
157	/// The range of component `p` is `[1, 31]`.
158	fn add_proxy(p: u32, ) -> Weight {
159		// Proof Size summary in bytes:
160		//  Measured:  `127 + p * (37 ±0)`
161		//  Estimated: `4706`
162		// Minimum execution time: 24_620_000 picoseconds.
163		Weight::from_parts(25_499_887, 0)
164			.saturating_add(Weight::from_parts(0, 4706))
165			// Standard Error: 1_155
166			.saturating_add(Weight::from_parts(43_095, 0).saturating_mul(p.into()))
167			.saturating_add(T::DbWeight::get().reads(1))
168			.saturating_add(T::DbWeight::get().writes(1))
169	}
170	/// Storage: `Proxy::Proxies` (r:1 w:1)
171	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
172	/// The range of component `p` is `[1, 31]`.
173	fn remove_proxy(p: u32, ) -> Weight {
174		// Proof Size summary in bytes:
175		//  Measured:  `127 + p * (37 ±0)`
176		//  Estimated: `4706`
177		// Minimum execution time: 24_614_000 picoseconds.
178		Weight::from_parts(25_685_644, 0)
179			.saturating_add(Weight::from_parts(0, 4706))
180			// Standard Error: 1_932
181			.saturating_add(Weight::from_parts(39_563, 0).saturating_mul(p.into()))
182			.saturating_add(T::DbWeight::get().reads(1))
183			.saturating_add(T::DbWeight::get().writes(1))
184	}
185	/// Storage: `Proxy::Proxies` (r:1 w:1)
186	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, 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:  `127 + p * (37 ±0)`
191		//  Estimated: `4706`
192		// Minimum execution time: 22_287_000 picoseconds.
193		Weight::from_parts(22_951_970, 0)
194			.saturating_add(Weight::from_parts(0, 4706))
195			// Standard Error: 1_008
196			.saturating_add(Weight::from_parts(30_530, 0).saturating_mul(p.into()))
197			.saturating_add(T::DbWeight::get().reads(1))
198			.saturating_add(T::DbWeight::get().writes(1))
199	}
200	/// Storage: `Proxy::Proxies` (r:1 w:1)
201	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
202	/// The range of component `p` is `[1, 31]`.
203	fn create_pure(p: u32, ) -> Weight {
204		// Proof Size summary in bytes:
205		//  Measured:  `139`
206		//  Estimated: `4706`
207		// Minimum execution time: 26_685_000 picoseconds.
208		Weight::from_parts(27_473_088, 0)
209			.saturating_add(Weight::from_parts(0, 4706))
210			// Standard Error: 1_684
211			.saturating_add(Weight::from_parts(18_278, 0).saturating_mul(p.into()))
212			.saturating_add(T::DbWeight::get().reads(1))
213			.saturating_add(T::DbWeight::get().writes(1))
214	}
215	/// Storage: `Proxy::Proxies` (r:1 w:1)
216	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
217	/// The range of component `p` is `[0, 30]`.
218	fn kill_pure(p: u32, ) -> Weight {
219		// Proof Size summary in bytes:
220		//  Measured:  `164 + p * (37 ±0)`
221		//  Estimated: `4706`
222		// Minimum execution time: 22_799_000 picoseconds.
223		Weight::from_parts(23_794_924, 0)
224			.saturating_add(Weight::from_parts(0, 4706))
225			// Standard Error: 2_174
226			.saturating_add(Weight::from_parts(29_777, 0).saturating_mul(p.into()))
227			.saturating_add(T::DbWeight::get().reads(1))
228			.saturating_add(T::DbWeight::get().writes(1))
229	}
230}