coretime_rococo_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/coretime-rococo-runtime/coretime_rococo_runtime.wasm
31// --pallet=pallet_proxy
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/coretime/coretime-rococo/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: `127 + p * (37 ±0)`
59 // Estimated: `4706`
60 // Minimum execution time: 13_890_000 picoseconds.
61 Weight::from_parts(14_690_357, 0)
62 .saturating_add(Weight::from_parts(0, 4706))
63 // Standard Error: 1_079
64 .saturating_add(Weight::from_parts(35_620, 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: `454 + a * (68 ±0) + p * (37 ±0)`
78 // Estimated: `5698`
79 // Minimum execution time: 40_937_000 picoseconds.
80 Weight::from_parts(41_413_996, 0)
81 .saturating_add(Weight::from_parts(0, 5698))
82 // Standard Error: 2_304
83 .saturating_add(Weight::from_parts(151_878, 0).saturating_mul(a.into()))
84 // Standard Error: 2_380
85 .saturating_add(Weight::from_parts(49_552, 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: `369 + a * (68 ±0)`
98 // Estimated: `5698`
99 // Minimum execution time: 25_502_000 picoseconds.
100 Weight::from_parts(26_072_967, 0)
101 .saturating_add(Weight::from_parts(0, 5698))
102 // Standard Error: 1_715
103 .saturating_add(Weight::from_parts(150_032, 0).saturating_mul(a.into()))
104 // Standard Error: 1_772
105 .saturating_add(Weight::from_parts(27_530, 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: `369 + a * (68 ±0)`
118 // Estimated: `5698`
119 // Minimum execution time: 25_381_000 picoseconds.
120 Weight::from_parts(25_796_690, 0)
121 .saturating_add(Weight::from_parts(0, 5698))
122 // Standard Error: 1_798
123 .saturating_add(Weight::from_parts(155_598, 0).saturating_mul(a.into()))
124 // Standard Error: 1_858
125 .saturating_add(Weight::from_parts(31_967, 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: `386 + a * (68 ±0) + p * (37 ±0)`
140 // Estimated: `5698`
141 // Minimum execution time: 33_900_000 picoseconds.
142 Weight::from_parts(37_483_729, 0)
143 .saturating_add(Weight::from_parts(0, 5698))
144 // Standard Error: 3_283
145 .saturating_add(Weight::from_parts(166_328, 0).saturating_mul(a.into()))
146 // Standard Error: 3_392
147 .saturating_add(Weight::from_parts(48_909, 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: `127 + p * (37 ±0)`
157 // Estimated: `4706`
158 // Minimum execution time: 24_003_000 picoseconds.
159 Weight::from_parts(24_851_370, 0)
160 .saturating_add(Weight::from_parts(0, 4706))
161 // Standard Error: 1_101
162 .saturating_add(Weight::from_parts(51_924, 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: `127 + p * (37 ±0)`
172 // Estimated: `4706`
173 // Minimum execution time: 23_865_000 picoseconds.
174 Weight::from_parts(24_891_590, 0)
175 .saturating_add(Weight::from_parts(0, 4706))
176 // Standard Error: 1_213
177 .saturating_add(Weight::from_parts(51_884, 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: `127 + p * (37 ±0)`
187 // Estimated: `4706`
188 // Minimum execution time: 21_419_000 picoseconds.
189 Weight::from_parts(22_277_152, 0)
190 .saturating_add(Weight::from_parts(0, 4706))
191 // Standard Error: 1_286
192 .saturating_add(Weight::from_parts(32_631, 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: `139`
202 // Estimated: `4706`
203 // Minimum execution time: 25_635_000 picoseconds.
204 Weight::from_parts(26_592_871, 0)
205 .saturating_add(Weight::from_parts(0, 4706))
206 // Standard Error: 1_635
207 .saturating_add(Weight::from_parts(22_103, 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: `164 + p * (37 ±0)`
217 // Estimated: `4706`
218 // Minimum execution time: 22_150_000 picoseconds.
219 Weight::from_parts(23_367_544, 0)
220 .saturating_add(Weight::from_parts(0, 4706))
221 // Standard Error: 1_500
222 .saturating_add(Weight::from_parts(24_164, 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: `453`
235 // Estimated: `5698`
236 // Minimum execution time: 43_886_000 picoseconds.
237 Weight::from_parts(45_017_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}