pallet_staking_async_rc_runtime/weights/pallet_proxy.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Substrate.
3
4// Substrate 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// Substrate 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 Substrate. 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-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `3a2e9ae8a8f5`, 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/westend-runtime/westend_runtime.wasm
32// --pallet=pallet_proxy
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/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 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: `89 + p * (37 ±0)`
63 // Estimated: `4706`
64 // Minimum execution time: 17_743_000 picoseconds.
65 Weight::from_parts(18_436_629, 0)
66 .saturating_add(Weight::from_parts(0, 4706))
67 // Standard Error: 2_056
68 .saturating_add(Weight::from_parts(43_916, 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: `416 + a * (68 ±0) + p * (37 ±0)`
82 // Estimated: `5698`
83 // Minimum execution time: 41_728_000 picoseconds.
84 Weight::from_parts(42_605_142, 0)
85 .saturating_add(Weight::from_parts(0, 5698))
86 // Standard Error: 2_675
87 .saturating_add(Weight::from_parts(173_815, 0).saturating_mul(a.into()))
88 // Standard Error: 2_764
89 .saturating_add(Weight::from_parts(29_849, 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: `331 + a * (68 ±0)`
102 // Estimated: `5698`
103 // Minimum execution time: 29_396_000 picoseconds.
104 Weight::from_parts(31_069_465, 0)
105 .saturating_add(Weight::from_parts(0, 5698))
106 // Standard Error: 2_248
107 .saturating_add(Weight::from_parts(134_192, 0).saturating_mul(a.into()))
108 // Standard Error: 2_322
109 .saturating_add(Weight::from_parts(7_479, 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: `331 + a * (68 ±0)`
122 // Estimated: `5698`
123 // Minimum execution time: 28_816_000 picoseconds.
124 Weight::from_parts(30_383_460, 0)
125 .saturating_add(Weight::from_parts(0, 5698))
126 // Standard Error: 2_128
127 .saturating_add(Weight::from_parts(157_895, 0).saturating_mul(a.into()))
128 // Standard Error: 2_198
129 .saturating_add(Weight::from_parts(10_169, 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: `348 + a * (68 ±0) + p * (37 ±0)`
144 // Estimated: `5698`
145 // Minimum execution time: 37_628_000 picoseconds.
146 Weight::from_parts(39_513_043, 0)
147 .saturating_add(Weight::from_parts(0, 5698))
148 // Standard Error: 2_451
149 .saturating_add(Weight::from_parts(149_654, 0).saturating_mul(a.into()))
150 // Standard Error: 2_533
151 .saturating_add(Weight::from_parts(17_215, 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: `89 + p * (37 ±0)`
161 // Estimated: `4706`
162 // Minimum execution time: 28_284_000 picoseconds.
163 Weight::from_parts(29_549_215, 0)
164 .saturating_add(Weight::from_parts(0, 4706))
165 // Standard Error: 4_083
166 .saturating_add(Weight::from_parts(61_848, 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: `89 + p * (37 ±0)`
176 // Estimated: `4706`
177 // Minimum execution time: 28_231_000 picoseconds.
178 Weight::from_parts(29_589_594, 0)
179 .saturating_add(Weight::from_parts(0, 4706))
180 // Standard Error: 1_950
181 .saturating_add(Weight::from_parts(54_339, 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: `89 + p * (37 ±0)`
191 // Estimated: `4706`
192 // Minimum execution time: 25_116_000 picoseconds.
193 Weight::from_parts(26_314_944, 0)
194 .saturating_add(Weight::from_parts(0, 4706))
195 // Standard Error: 1_968
196 .saturating_add(Weight::from_parts(39_294, 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: `101`
206 // Estimated: `4706`
207 // Minimum execution time: 29_742_000 picoseconds.
208 Weight::from_parts(31_063_206, 0)
209 .saturating_add(Weight::from_parts(0, 4706))
210 // Standard Error: 2_575
211 .saturating_add(Weight::from_parts(22_471, 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: `126 + p * (37 ±0)`
221 // Estimated: `4706`
222 // Minimum execution time: 26_141_000 picoseconds.
223 Weight::from_parts(27_309_074, 0)
224 .saturating_add(Weight::from_parts(0, 4706))
225 // Standard Error: 1_808
226 .saturating_add(Weight::from_parts(37_564, 0).saturating_mul(p.into()))
227 .saturating_add(T::DbWeight::get().reads(1))
228 .saturating_add(T::DbWeight::get().writes(1))
229 }
230}