collectives_westend_runtime/weights/pallet_multisig.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_multisig`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `c8c7296f7413`, 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/collectives-westend-runtime/collectives_westend_runtime.wasm
31// --pallet=pallet_multisig
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/collectives/collectives-westend/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_multisig`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
53 /// The range of component `z` is `[0, 10000]`.
54 fn as_multi_threshold_1(z: u32, ) -> Weight {
55 // Proof Size summary in bytes:
56 // Measured: `0`
57 // Estimated: `0`
58 // Minimum execution time: 15_445_000 picoseconds.
59 Weight::from_parts(16_746_680, 0)
60 .saturating_add(Weight::from_parts(0, 0))
61 // Standard Error: 9
62 .saturating_add(Weight::from_parts(438, 0).saturating_mul(z.into()))
63 }
64 /// Storage: `Multisig::Multisigs` (r:1 w:1)
65 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
66 /// The range of component `s` is `[2, 100]`.
67 /// The range of component `z` is `[0, 10000]`.
68 fn as_multi_create(s: u32, z: u32, ) -> Weight {
69 // Proof Size summary in bytes:
70 // Measured: `328 + s * (2 ±0)`
71 // Estimated: `6811`
72 // Minimum execution time: 48_846_000 picoseconds.
73 Weight::from_parts(34_395_780, 0)
74 .saturating_add(Weight::from_parts(0, 6811))
75 // Standard Error: 4_494
76 .saturating_add(Weight::from_parts(222_389, 0).saturating_mul(s.into()))
77 // Standard Error: 44
78 .saturating_add(Weight::from_parts(1_895, 0).saturating_mul(z.into()))
79 .saturating_add(T::DbWeight::get().reads(1))
80 .saturating_add(T::DbWeight::get().writes(1))
81 }
82 /// Storage: `Multisig::Multisigs` (r:1 w:1)
83 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
84 /// The range of component `s` is `[3, 100]`.
85 /// The range of component `z` is `[0, 10000]`.
86 fn as_multi_approve(s: u32, z: u32, ) -> Weight {
87 // Proof Size summary in bytes:
88 // Measured: `348`
89 // Estimated: `6811`
90 // Minimum execution time: 30_576_000 picoseconds.
91 Weight::from_parts(18_763_978, 0)
92 .saturating_add(Weight::from_parts(0, 6811))
93 // Standard Error: 1_097
94 .saturating_add(Weight::from_parts(140_137, 0).saturating_mul(s.into()))
95 // Standard Error: 10
96 .saturating_add(Weight::from_parts(1_915, 0).saturating_mul(z.into()))
97 .saturating_add(T::DbWeight::get().reads(1))
98 .saturating_add(T::DbWeight::get().writes(1))
99 }
100 /// Storage: `Multisig::Multisigs` (r:1 w:1)
101 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
102 /// Storage: `System::Account` (r:1 w:1)
103 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
104 /// The range of component `s` is `[2, 100]`.
105 /// The range of component `z` is `[0, 10000]`.
106 fn as_multi_complete(s: u32, z: u32, ) -> Weight {
107 // Proof Size summary in bytes:
108 // Measured: `451 + s * (33 ±0)`
109 // Estimated: `6811`
110 // Minimum execution time: 53_269_000 picoseconds.
111 Weight::from_parts(36_529_777, 0)
112 .saturating_add(Weight::from_parts(0, 6811))
113 // Standard Error: 2_752
114 .saturating_add(Weight::from_parts(190_931, 0).saturating_mul(s.into()))
115 // Standard Error: 26
116 .saturating_add(Weight::from_parts(2_136, 0).saturating_mul(z.into()))
117 .saturating_add(T::DbWeight::get().reads(2))
118 .saturating_add(T::DbWeight::get().writes(2))
119 }
120 /// Storage: `Multisig::Multisigs` (r:1 w:1)
121 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
122 /// The range of component `s` is `[2, 100]`.
123 fn approve_as_multi_create(s: u32, ) -> Weight {
124 // Proof Size summary in bytes:
125 // Measured: `329 + s * (2 ±0)`
126 // Estimated: `6811`
127 // Minimum execution time: 30_485_000 picoseconds.
128 Weight::from_parts(32_275_917, 0)
129 .saturating_add(Weight::from_parts(0, 6811))
130 // Standard Error: 1_395
131 .saturating_add(Weight::from_parts(163_554, 0).saturating_mul(s.into()))
132 .saturating_add(T::DbWeight::get().reads(1))
133 .saturating_add(T::DbWeight::get().writes(1))
134 }
135 /// Storage: `Multisig::Multisigs` (r:1 w:1)
136 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
137 /// The range of component `s` is `[2, 100]`.
138 fn approve_as_multi_approve(s: u32, ) -> Weight {
139 // Proof Size summary in bytes:
140 // Measured: `348`
141 // Estimated: `6811`
142 // Minimum execution time: 17_030_000 picoseconds.
143 Weight::from_parts(18_316_018, 0)
144 .saturating_add(Weight::from_parts(0, 6811))
145 // Standard Error: 1_407
146 .saturating_add(Weight::from_parts(138_516, 0).saturating_mul(s.into()))
147 .saturating_add(T::DbWeight::get().reads(1))
148 .saturating_add(T::DbWeight::get().writes(1))
149 }
150 /// Storage: `Multisig::Multisigs` (r:1 w:1)
151 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
152 /// The range of component `s` is `[2, 100]`.
153 fn cancel_as_multi(s: u32, ) -> Weight {
154 // Proof Size summary in bytes:
155 // Measured: `520 + s * (1 ±0)`
156 // Estimated: `6811`
157 // Minimum execution time: 31_503_000 picoseconds.
158 Weight::from_parts(33_555_853, 0)
159 .saturating_add(Weight::from_parts(0, 6811))
160 // Standard Error: 1_535
161 .saturating_add(Weight::from_parts(143_177, 0).saturating_mul(s.into()))
162 .saturating_add(T::DbWeight::get().reads(1))
163 .saturating_add(T::DbWeight::get().writes(1))
164 }
165 /// Storage: `Multisig::Multisigs` (r:1 w:1)
166 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
167 /// The range of component `s` is `[2, 100]`.
168 fn poke_deposit(s: u32, ) -> Weight {
169 // Proof Size summary in bytes:
170 // Measured: `520 + s * (1 ±0)`
171 // Estimated: `6811`
172 // Minimum execution time: 29_729_000 picoseconds.
173 Weight::from_parts(31_737_165, 0)
174 .saturating_add(Weight::from_parts(0, 6811))
175 // Standard Error: 1_058
176 .saturating_add(Weight::from_parts(140_714, 0).saturating_mul(s.into()))
177 .saturating_add(T::DbWeight::get().reads(1))
178 .saturating_add(T::DbWeight::get().writes(1))
179 }
180}