pallet_staking_async_parachain_runtime/weights/pallet_multisig.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_multisig`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21//! DATE: 2025-01-23, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `e20fc9f125eb`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! 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// --extrinsic=*
31// --chain=asset-hub-next-westend-dev
32// --pallet=pallet_multisig
33// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
34// --output=./cumulus/parachains/runtimes/assets/asset-hub-next-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_multisig`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
54 fn poke_deposit(_s: u32, ) -> Weight {
55 Default::default()
56 }
57 /// The range of component `z` is `[0, 10000]`.
58 fn as_multi_threshold_1(z: u32, ) -> Weight {
59 // Proof Size summary in bytes:
60 // Measured: `0`
61 // Estimated: `0`
62 // Minimum execution time: 16_032_000 picoseconds.
63 Weight::from_parts(16_636_014, 0)
64 .saturating_add(Weight::from_parts(0, 0))
65 // Standard Error: 11
66 .saturating_add(Weight::from_parts(632, 0).saturating_mul(z.into()))
67 }
68 /// Storage: `Multisig::Multisigs` (r:1 w:1)
69 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
70 /// The range of component `s` is `[2, 100]`.
71 /// The range of component `z` is `[0, 10000]`.
72 fn as_multi_create(s: u32, z: u32, ) -> Weight {
73 // Proof Size summary in bytes:
74 // Measured: `295 + s * (2 ±0)`
75 // Estimated: `6811`
76 // Minimum execution time: 47_519_000 picoseconds.
77 Weight::from_parts(33_881_382, 0)
78 .saturating_add(Weight::from_parts(0, 6811))
79 // Standard Error: 1_770
80 .saturating_add(Weight::from_parts(159_560, 0).saturating_mul(s.into()))
81 // Standard Error: 17
82 .saturating_add(Weight::from_parts(2_031, 0).saturating_mul(z.into()))
83 .saturating_add(T::DbWeight::get().reads(1))
84 .saturating_add(T::DbWeight::get().writes(1))
85 }
86 /// Storage: `Multisig::Multisigs` (r:1 w:1)
87 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
88 /// The range of component `s` is `[3, 100]`.
89 /// The range of component `z` is `[0, 10000]`.
90 fn as_multi_approve(s: u32, z: u32, ) -> Weight {
91 // Proof Size summary in bytes:
92 // Measured: `315`
93 // Estimated: `6811`
94 // Minimum execution time: 31_369_000 picoseconds.
95 Weight::from_parts(18_862_672, 0)
96 .saturating_add(Weight::from_parts(0, 6811))
97 // Standard Error: 1_519
98 .saturating_add(Weight::from_parts(141_546, 0).saturating_mul(s.into()))
99 // Standard Error: 14
100 .saturating_add(Weight::from_parts(2_057, 0).saturating_mul(z.into()))
101 .saturating_add(T::DbWeight::get().reads(1))
102 .saturating_add(T::DbWeight::get().writes(1))
103 }
104 /// Storage: `Multisig::Multisigs` (r:1 w:1)
105 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
106 /// Storage: `System::Account` (r:1 w:1)
107 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
108 /// The range of component `s` is `[2, 100]`.
109 /// The range of component `z` is `[0, 10000]`.
110 fn as_multi_complete(s: u32, z: u32, ) -> Weight {
111 // Proof Size summary in bytes:
112 // Measured: `418 + s * (33 ±0)`
113 // Estimated: `6811`
114 // Minimum execution time: 55_421_000 picoseconds.
115 Weight::from_parts(33_628_199, 0)
116 .saturating_add(Weight::from_parts(0, 6811))
117 // Standard Error: 2_430
118 .saturating_add(Weight::from_parts(247_959, 0).saturating_mul(s.into()))
119 // Standard Error: 23
120 .saturating_add(Weight::from_parts(2_339, 0).saturating_mul(z.into()))
121 .saturating_add(T::DbWeight::get().reads(2))
122 .saturating_add(T::DbWeight::get().writes(2))
123 }
124 /// Storage: `Multisig::Multisigs` (r:1 w:1)
125 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
126 /// The range of component `s` is `[2, 100]`.
127 /// The range of component `z` is `[0, 10000]`.
128 fn approve_as_multi_create(s: u32, ) -> Weight {
129 // Proof Size summary in bytes:
130 // Measured: `295 + s * (2 ±0)`
131 // Estimated: `6811`
132 // Minimum execution time: 30_380_000 picoseconds.
133 Weight::from_parts(32_147_463, 0)
134 .saturating_add(Weight::from_parts(0, 6811))
135 // Standard Error: 1_530
136 .saturating_add(Weight::from_parts(156_234, 0).saturating_mul(s.into()))
137 .saturating_add(T::DbWeight::get().reads(1))
138 .saturating_add(T::DbWeight::get().writes(1))
139 }
140 /// Storage: `Multisig::Multisigs` (r:1 w:1)
141 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
142 /// The range of component `s` is `[2, 100]`.
143 /// The range of component `z` is `[0, 10000]`.
144 fn approve_as_multi_approve(s: u32, ) -> Weight {
145 // Proof Size summary in bytes:
146 // Measured: `315`
147 // Estimated: `6811`
148 // Minimum execution time: 17_016_000 picoseconds.
149 Weight::from_parts(17_777_791, 0)
150 .saturating_add(Weight::from_parts(0, 6811))
151 // Standard Error: 1_216
152 .saturating_add(Weight::from_parts(137_967, 0).saturating_mul(s.into()))
153 .saturating_add(T::DbWeight::get().reads(1))
154 .saturating_add(T::DbWeight::get().writes(1))
155 }
156 /// Storage: `Multisig::Multisigs` (r:1 w:1)
157 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
158 /// The range of component `s` is `[2, 100]`.
159 /// The range of component `z` is `[0, 10000]`.
160 fn cancel_as_multi(s: u32, ) -> Weight {
161 // Proof Size summary in bytes:
162 // Measured: `482 + s * (1 ±0)`
163 // Estimated: `6811`
164 // Minimum execution time: 31_594_000 picoseconds.
165 Weight::from_parts(31_850_574, 0)
166 .saturating_add(Weight::from_parts(0, 6811))
167 // Standard Error: 2_031
168 .saturating_add(Weight::from_parts(159_513, 0).saturating_mul(s.into()))
169 .saturating_add(T::DbWeight::get().reads(1))
170 .saturating_add(T::DbWeight::get().writes(1))
171 }
172}