pallet_staking_async_rc_runtime/weights/pallet_multisig.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_multisig`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-21, 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_multisig
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_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: 15_742_000 picoseconds.
63 Weight::from_parts(16_689_158, 0)
64 .saturating_add(Weight::from_parts(0, 0))
65 // Standard Error: 4
66 .saturating_add(Weight::from_parts(425, 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: `267 + s * (2 ±0)`
75 // Estimated: `6811`
76 // Minimum execution time: 51_695_000 picoseconds.
77 Weight::from_parts(39_502_473, 0)
78 .saturating_add(Weight::from_parts(0, 6811))
79 // Standard Error: 1_991
80 .saturating_add(Weight::from_parts(149_722, 0).saturating_mul(s.into()))
81 // Standard Error: 19
82 .saturating_add(Weight::from_parts(1_920, 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: `286`
93 // Estimated: `6811`
94 // Minimum execution time: 36_027_000 picoseconds.
95 Weight::from_parts(23_708_974, 0)
96 .saturating_add(Weight::from_parts(0, 6811))
97 // Standard Error: 886
98 .saturating_add(Weight::from_parts(135_578, 0).saturating_mul(s.into()))
99 // Standard Error: 8
100 .saturating_add(Weight::from_parts(1_977, 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: `392 + s * (33 ±0)`
113 // Estimated: `6811`
114 // Minimum execution time: 57_964_000 picoseconds.
115 Weight::from_parts(41_322_769, 0)
116 .saturating_add(Weight::from_parts(0, 6811))
117 // Standard Error: 1_938
118 .saturating_add(Weight::from_parts(187_486, 0).saturating_mul(s.into()))
119 // Standard Error: 18
120 .saturating_add(Weight::from_parts(2_132, 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 fn approve_as_multi_create(s: u32, ) -> Weight {
128 // Proof Size summary in bytes:
129 // Measured: `267 + s * (2 ±0)`
130 // Estimated: `6811`
131 // Minimum execution time: 35_875_000 picoseconds.
132 Weight::from_parts(37_310_784, 0)
133 .saturating_add(Weight::from_parts(0, 6811))
134 // Standard Error: 1_591
135 .saturating_add(Weight::from_parts(162_975, 0).saturating_mul(s.into()))
136 .saturating_add(T::DbWeight::get().reads(1))
137 .saturating_add(T::DbWeight::get().writes(1))
138 }
139 /// Storage: `Multisig::Multisigs` (r:1 w:1)
140 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
141 /// The range of component `s` is `[2, 100]`.
142 fn approve_as_multi_approve(s: u32, ) -> Weight {
143 // Proof Size summary in bytes:
144 // Measured: `286`
145 // Estimated: `6811`
146 // Minimum execution time: 21_526_000 picoseconds.
147 Weight::from_parts(22_387_339, 0)
148 .saturating_add(Weight::from_parts(0, 6811))
149 // Standard Error: 706
150 .saturating_add(Weight::from_parts(146_192, 0).saturating_mul(s.into()))
151 .saturating_add(T::DbWeight::get().reads(1))
152 .saturating_add(T::DbWeight::get().writes(1))
153 }
154 /// Storage: `Multisig::Multisigs` (r:1 w:1)
155 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
156 /// The range of component `s` is `[2, 100]`.
157 fn cancel_as_multi(s: u32, ) -> Weight {
158 // Proof Size summary in bytes:
159 // Measured: `458 + s * (1 ±0)`
160 // Estimated: `6811`
161 // Minimum execution time: 36_493_000 picoseconds.
162 Weight::from_parts(38_162_969, 0)
163 .saturating_add(Weight::from_parts(0, 6811))
164 // Standard Error: 1_164
165 .saturating_add(Weight::from_parts(153_723, 0).saturating_mul(s.into()))
166 .saturating_add(T::DbWeight::get().reads(1))
167 .saturating_add(T::DbWeight::get().writes(1))
168 }
169}