pallet_multisig/weights.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// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_multisig`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-02-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `c8c7296f7413`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_multisig
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/multisig/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-umbrella-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --genesis-builder-policy=none
62// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier
63
64#![cfg_attr(rustfmt, rustfmt_skip)]
65#![allow(unused_parens)]
66#![allow(unused_imports)]
67#![allow(missing_docs)]
68#![allow(dead_code)]
69
70use frame::weights_prelude::*;
71
72/// Weight functions needed for `pallet_multisig`.
73pub trait WeightInfo {
74 fn as_multi_threshold_1(z: u32, ) -> Weight;
75 fn as_multi_create(s: u32, z: u32, ) -> Weight;
76 fn as_multi_approve(s: u32, z: u32, ) -> Weight;
77 fn as_multi_complete(s: u32, z: u32, ) -> Weight;
78 fn approve_as_multi_create(s: u32, ) -> Weight;
79 fn approve_as_multi_approve(s: u32, ) -> Weight;
80 fn cancel_as_multi(s: u32, ) -> Weight;
81 fn poke_deposit(s: u32, ) -> Weight;
82}
83
84/// Weights for `pallet_multisig` using the Substrate node and recommended hardware.
85pub struct SubstrateWeight<T>(PhantomData<T>);
86impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
87 /// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
88 /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
89 /// Storage: `TxPause::PausedCalls` (r:1 w:0)
90 /// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
91 /// The range of component `z` is `[0, 10000]`.
92 fn as_multi_threshold_1(z: u32, ) -> Weight {
93 // Proof Size summary in bytes:
94 // Measured: `0`
95 // Estimated: `3997`
96 // Minimum execution time: 18_622_000 picoseconds.
97 Weight::from_parts(20_470_382, 3997)
98 // Standard Error: 21
99 .saturating_add(Weight::from_parts(397, 0).saturating_mul(z.into()))
100 .saturating_add(T::DbWeight::get().reads(2_u64))
101 }
102 /// Storage: `Multisig::Multisigs` (r:1 w:1)
103 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
104 /// The range of component `s` is `[2, 100]`.
105 /// The range of component `z` is `[0, 10000]`.
106 fn as_multi_create(s: u32, z: u32, ) -> Weight {
107 // Proof Size summary in bytes:
108 // Measured: `229 + s * (2 ±0)`
109 // Estimated: `6811`
110 // Minimum execution time: 41_568_000 picoseconds.
111 Weight::from_parts(29_976_762, 6811)
112 // Standard Error: 1_712
113 .saturating_add(Weight::from_parts(144_320, 0).saturating_mul(s.into()))
114 // Standard Error: 16
115 .saturating_add(Weight::from_parts(1_819, 0).saturating_mul(z.into()))
116 .saturating_add(T::DbWeight::get().reads(1_u64))
117 .saturating_add(T::DbWeight::get().writes(1_u64))
118 }
119 /// Storage: `Multisig::Multisigs` (r:1 w:1)
120 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
121 /// The range of component `s` is `[3, 100]`.
122 /// The range of component `z` is `[0, 10000]`.
123 fn as_multi_approve(s: u32, z: u32, ) -> Weight {
124 // Proof Size summary in bytes:
125 // Measured: `185`
126 // Estimated: `6811`
127 // Minimum execution time: 26_237_000 picoseconds.
128 Weight::from_parts(14_821_348, 6811)
129 // Standard Error: 1_425
130 .saturating_add(Weight::from_parts(127_874, 0).saturating_mul(s.into()))
131 // Standard Error: 13
132 .saturating_add(Weight::from_parts(1_968, 0).saturating_mul(z.into()))
133 .saturating_add(T::DbWeight::get().reads(1_u64))
134 .saturating_add(T::DbWeight::get().writes(1_u64))
135 }
136 /// Storage: `Multisig::Multisigs` (r:1 w:1)
137 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
138 /// Storage: `System::Account` (r:1 w:1)
139 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
140 /// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
141 /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
142 /// Storage: `TxPause::PausedCalls` (r:1 w:0)
143 /// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
144 /// The range of component `s` is `[2, 100]`.
145 /// The range of component `z` is `[0, 10000]`.
146 fn as_multi_complete(s: u32, z: u32, ) -> Weight {
147 // Proof Size summary in bytes:
148 // Measured: `288 + s * (33 ±0)`
149 // Estimated: `6811`
150 // Minimum execution time: 50_942_000 picoseconds.
151 Weight::from_parts(34_745_418, 6811)
152 // Standard Error: 2_993
153 .saturating_add(Weight::from_parts(193_313, 0).saturating_mul(s.into()))
154 // Standard Error: 29
155 .saturating_add(Weight::from_parts(2_057, 0).saturating_mul(z.into()))
156 .saturating_add(T::DbWeight::get().reads(4_u64))
157 .saturating_add(T::DbWeight::get().writes(2_u64))
158 }
159 /// Storage: `Multisig::Multisigs` (r:1 w:1)
160 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
161 /// The range of component `s` is `[2, 100]`.
162 fn approve_as_multi_create(s: u32, ) -> Weight {
163 // Proof Size summary in bytes:
164 // Measured: `233 + s * (2 ±0)`
165 // Estimated: `6811`
166 // Minimum execution time: 25_583_000 picoseconds.
167 Weight::from_parts(27_463_275, 6811)
168 // Standard Error: 1_158
169 .saturating_add(Weight::from_parts(139_226, 0).saturating_mul(s.into()))
170 .saturating_add(T::DbWeight::get().reads(1_u64))
171 .saturating_add(T::DbWeight::get().writes(1_u64))
172 }
173 /// Storage: `Multisig::Multisigs` (r:1 w:1)
174 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
175 /// The range of component `s` is `[2, 100]`.
176 fn approve_as_multi_approve(s: u32, ) -> Weight {
177 // Proof Size summary in bytes:
178 // Measured: `185`
179 // Estimated: `6811`
180 // Minimum execution time: 13_086_000 picoseconds.
181 Weight::from_parts(14_074_258, 6811)
182 // Standard Error: 1_279
183 .saturating_add(Weight::from_parts(126_544, 0).saturating_mul(s.into()))
184 .saturating_add(T::DbWeight::get().reads(1_u64))
185 .saturating_add(T::DbWeight::get().writes(1_u64))
186 }
187 /// Storage: `Multisig::Multisigs` (r:1 w:1)
188 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
189 /// The range of component `s` is `[2, 100]`.
190 fn cancel_as_multi(s: u32, ) -> Weight {
191 // Proof Size summary in bytes:
192 // Measured: `357 + s * (1 ±0)`
193 // Estimated: `6811`
194 // Minimum execution time: 26_950_000 picoseconds.
195 Weight::from_parts(28_623_566, 6811)
196 // Standard Error: 1_795
197 .saturating_add(Weight::from_parts(135_351, 0).saturating_mul(s.into()))
198 .saturating_add(T::DbWeight::get().reads(1_u64))
199 .saturating_add(T::DbWeight::get().writes(1_u64))
200 }
201 /// Storage: `Multisig::Multisigs` (r:1 w:1)
202 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
203 /// The range of component `s` is `[2, 100]`.
204 fn poke_deposit(s: u32, ) -> Weight {
205 // Proof Size summary in bytes:
206 // Measured: `357 + s * (1 ±0)`
207 // Estimated: `6811`
208 // Minimum execution time: 25_804_000 picoseconds.
209 Weight::from_parts(27_349_525, 6811)
210 // Standard Error: 1_276
211 .saturating_add(Weight::from_parts(121_813, 0).saturating_mul(s.into()))
212 .saturating_add(T::DbWeight::get().reads(1_u64))
213 .saturating_add(T::DbWeight::get().writes(1_u64))
214 }
215}
216
217// For backwards compatibility and tests.
218impl WeightInfo for () {
219 /// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
220 /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
221 /// Storage: `TxPause::PausedCalls` (r:1 w:0)
222 /// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
223 /// The range of component `z` is `[0, 10000]`.
224 fn as_multi_threshold_1(z: u32, ) -> Weight {
225 // Proof Size summary in bytes:
226 // Measured: `0`
227 // Estimated: `3997`
228 // Minimum execution time: 18_622_000 picoseconds.
229 Weight::from_parts(20_470_382, 3997)
230 // Standard Error: 21
231 .saturating_add(Weight::from_parts(397, 0).saturating_mul(z.into()))
232 .saturating_add(RocksDbWeight::get().reads(2_u64))
233 }
234 /// Storage: `Multisig::Multisigs` (r:1 w:1)
235 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
236 /// The range of component `s` is `[2, 100]`.
237 /// The range of component `z` is `[0, 10000]`.
238 fn as_multi_create(s: u32, z: u32, ) -> Weight {
239 // Proof Size summary in bytes:
240 // Measured: `229 + s * (2 ±0)`
241 // Estimated: `6811`
242 // Minimum execution time: 41_568_000 picoseconds.
243 Weight::from_parts(29_976_762, 6811)
244 // Standard Error: 1_712
245 .saturating_add(Weight::from_parts(144_320, 0).saturating_mul(s.into()))
246 // Standard Error: 16
247 .saturating_add(Weight::from_parts(1_819, 0).saturating_mul(z.into()))
248 .saturating_add(RocksDbWeight::get().reads(1_u64))
249 .saturating_add(RocksDbWeight::get().writes(1_u64))
250 }
251 /// Storage: `Multisig::Multisigs` (r:1 w:1)
252 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
253 /// The range of component `s` is `[3, 100]`.
254 /// The range of component `z` is `[0, 10000]`.
255 fn as_multi_approve(s: u32, z: u32, ) -> Weight {
256 // Proof Size summary in bytes:
257 // Measured: `185`
258 // Estimated: `6811`
259 // Minimum execution time: 26_237_000 picoseconds.
260 Weight::from_parts(14_821_348, 6811)
261 // Standard Error: 1_425
262 .saturating_add(Weight::from_parts(127_874, 0).saturating_mul(s.into()))
263 // Standard Error: 13
264 .saturating_add(Weight::from_parts(1_968, 0).saturating_mul(z.into()))
265 .saturating_add(RocksDbWeight::get().reads(1_u64))
266 .saturating_add(RocksDbWeight::get().writes(1_u64))
267 }
268 /// Storage: `Multisig::Multisigs` (r:1 w:1)
269 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
270 /// Storage: `System::Account` (r:1 w:1)
271 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
272 /// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
273 /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
274 /// Storage: `TxPause::PausedCalls` (r:1 w:0)
275 /// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
276 /// The range of component `s` is `[2, 100]`.
277 /// The range of component `z` is `[0, 10000]`.
278 fn as_multi_complete(s: u32, z: u32, ) -> Weight {
279 // Proof Size summary in bytes:
280 // Measured: `288 + s * (33 ±0)`
281 // Estimated: `6811`
282 // Minimum execution time: 50_942_000 picoseconds.
283 Weight::from_parts(34_745_418, 6811)
284 // Standard Error: 2_993
285 .saturating_add(Weight::from_parts(193_313, 0).saturating_mul(s.into()))
286 // Standard Error: 29
287 .saturating_add(Weight::from_parts(2_057, 0).saturating_mul(z.into()))
288 .saturating_add(RocksDbWeight::get().reads(4_u64))
289 .saturating_add(RocksDbWeight::get().writes(2_u64))
290 }
291 /// Storage: `Multisig::Multisigs` (r:1 w:1)
292 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
293 /// The range of component `s` is `[2, 100]`.
294 fn approve_as_multi_create(s: u32, ) -> Weight {
295 // Proof Size summary in bytes:
296 // Measured: `233 + s * (2 ±0)`
297 // Estimated: `6811`
298 // Minimum execution time: 25_583_000 picoseconds.
299 Weight::from_parts(27_463_275, 6811)
300 // Standard Error: 1_158
301 .saturating_add(Weight::from_parts(139_226, 0).saturating_mul(s.into()))
302 .saturating_add(RocksDbWeight::get().reads(1_u64))
303 .saturating_add(RocksDbWeight::get().writes(1_u64))
304 }
305 /// Storage: `Multisig::Multisigs` (r:1 w:1)
306 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
307 /// The range of component `s` is `[2, 100]`.
308 fn approve_as_multi_approve(s: u32, ) -> Weight {
309 // Proof Size summary in bytes:
310 // Measured: `185`
311 // Estimated: `6811`
312 // Minimum execution time: 13_086_000 picoseconds.
313 Weight::from_parts(14_074_258, 6811)
314 // Standard Error: 1_279
315 .saturating_add(Weight::from_parts(126_544, 0).saturating_mul(s.into()))
316 .saturating_add(RocksDbWeight::get().reads(1_u64))
317 .saturating_add(RocksDbWeight::get().writes(1_u64))
318 }
319 /// Storage: `Multisig::Multisigs` (r:1 w:1)
320 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
321 /// The range of component `s` is `[2, 100]`.
322 fn cancel_as_multi(s: u32, ) -> Weight {
323 // Proof Size summary in bytes:
324 // Measured: `357 + s * (1 ±0)`
325 // Estimated: `6811`
326 // Minimum execution time: 26_950_000 picoseconds.
327 Weight::from_parts(28_623_566, 6811)
328 // Standard Error: 1_795
329 .saturating_add(Weight::from_parts(135_351, 0).saturating_mul(s.into()))
330 .saturating_add(RocksDbWeight::get().reads(1_u64))
331 .saturating_add(RocksDbWeight::get().writes(1_u64))
332 }
333 /// Storage: `Multisig::Multisigs` (r:1 w:1)
334 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
335 /// The range of component `s` is `[2, 100]`.
336 fn poke_deposit(s: u32, ) -> Weight {
337 // Proof Size summary in bytes:
338 // Measured: `357 + s * (1 ±0)`
339 // Estimated: `6811`
340 // Minimum execution time: 25_804_000 picoseconds.
341 Weight::from_parts(27_349_525, 6811)
342 // Standard Error: 1_276
343 .saturating_add(Weight::from_parts(121_813, 0).saturating_mul(s.into()))
344 .saturating_add(RocksDbWeight::get().reads(1_u64))
345 .saturating_add(RocksDbWeight::get().writes(1_u64))
346 }
347}