referrerpolicy=no-referrer-when-downgrade

westend_runtime/weights/
pallet_multisig.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot 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// Polkadot 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 Polkadot.  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-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `c8c7296f7413`, 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	/// The range of component `z` is `[0, 10000]`.
55	fn as_multi_threshold_1(z: u32, ) -> Weight {
56		// Proof Size summary in bytes:
57		//  Measured:  `0`
58		//  Estimated: `0`
59		// Minimum execution time: 16_297_000 picoseconds.
60		Weight::from_parts(17_470_545, 0)
61			.saturating_add(Weight::from_parts(0, 0))
62			// Standard Error: 23
63			.saturating_add(Weight::from_parts(906, 0).saturating_mul(z.into()))
64	}
65	/// Storage: `Multisig::Multisigs` (r:1 w:1)
66	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
67	/// The range of component `s` is `[2, 100]`.
68	/// The range of component `z` is `[0, 10000]`.
69	fn as_multi_create(s: u32, z: u32, ) -> Weight {
70		// Proof Size summary in bytes:
71		//  Measured:  `267 + s * (2 ±0)`
72		//  Estimated: `6811`
73		// Minimum execution time: 53_876_000 picoseconds.
74		Weight::from_parts(51_061_263, 0)
75			.saturating_add(Weight::from_parts(0, 6811))
76			// Standard Error: 6_290
77			.saturating_add(Weight::from_parts(76_185, 0).saturating_mul(s.into()))
78			// Standard Error: 61
79			.saturating_add(Weight::from_parts(1_799, 0).saturating_mul(z.into()))
80			.saturating_add(T::DbWeight::get().reads(1))
81			.saturating_add(T::DbWeight::get().writes(1))
82	}
83	/// Storage: `Multisig::Multisigs` (r:1 w:1)
84	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
85	/// The range of component `s` is `[3, 100]`.
86	/// The range of component `z` is `[0, 10000]`.
87	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
88		// Proof Size summary in bytes:
89		//  Measured:  `286`
90		//  Estimated: `6811`
91		// Minimum execution time: 37_211_000 picoseconds.
92		Weight::from_parts(22_933_454, 0)
93			.saturating_add(Weight::from_parts(0, 6811))
94			// Standard Error: 1_435
95			.saturating_add(Weight::from_parts(163_808, 0).saturating_mul(s.into()))
96			// Standard Error: 14
97			.saturating_add(Weight::from_parts(1_998, 0).saturating_mul(z.into()))
98			.saturating_add(T::DbWeight::get().reads(1))
99			.saturating_add(T::DbWeight::get().writes(1))
100	}
101	/// Storage: `Multisig::Multisigs` (r:1 w:1)
102	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
103	/// Storage: `System::Account` (r:1 w:1)
104	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
105	/// The range of component `s` is `[2, 100]`.
106	/// The range of component `z` is `[0, 10000]`.
107	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
108		// Proof Size summary in bytes:
109		//  Measured:  `392 + s * (33 ±0)`
110		//  Estimated: `6811`
111		// Minimum execution time: 59_254_000 picoseconds.
112		Weight::from_parts(44_463_212, 0)
113			.saturating_add(Weight::from_parts(0, 6811))
114			// Standard Error: 5_523
115			.saturating_add(Weight::from_parts(224_317, 0).saturating_mul(s.into()))
116			// Standard Error: 54
117			.saturating_add(Weight::from_parts(1_895, 0).saturating_mul(z.into()))
118			.saturating_add(T::DbWeight::get().reads(2))
119			.saturating_add(T::DbWeight::get().writes(2))
120	}
121	/// Storage: `Multisig::Multisigs` (r:1 w:1)
122	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
123	/// The range of component `s` is `[2, 100]`.
124	fn approve_as_multi_create(s: u32, ) -> Weight {
125		// Proof Size summary in bytes:
126		//  Measured:  `267 + s * (2 ±0)`
127		//  Estimated: `6811`
128		// Minimum execution time: 35_716_000 picoseconds.
129		Weight::from_parts(37_158_321, 0)
130			.saturating_add(Weight::from_parts(0, 6811))
131			// Standard Error: 1_359
132			.saturating_add(Weight::from_parts(167_574, 0).saturating_mul(s.into()))
133			.saturating_add(T::DbWeight::get().reads(1))
134			.saturating_add(T::DbWeight::get().writes(1))
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	/// The range of component `s` is `[2, 100]`.
139	fn approve_as_multi_approve(s: u32, ) -> Weight {
140		// Proof Size summary in bytes:
141		//  Measured:  `286`
142		//  Estimated: `6811`
143		// Minimum execution time: 21_897_000 picoseconds.
144		Weight::from_parts(23_002_371, 0)
145			.saturating_add(Weight::from_parts(0, 6811))
146			// Standard Error: 2_438
147			.saturating_add(Weight::from_parts(163_255, 0).saturating_mul(s.into()))
148			.saturating_add(T::DbWeight::get().reads(1))
149			.saturating_add(T::DbWeight::get().writes(1))
150	}
151	/// Storage: `Multisig::Multisigs` (r:1 w:1)
152	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
153	/// The range of component `s` is `[2, 100]`.
154	fn cancel_as_multi(s: u32, ) -> Weight {
155		// Proof Size summary in bytes:
156		//  Measured:  `458 + s * (1 ±0)`
157		//  Estimated: `6811`
158		// Minimum execution time: 36_287_000 picoseconds.
159		Weight::from_parts(38_396_611, 0)
160			.saturating_add(Weight::from_parts(0, 6811))
161			// Standard Error: 3_536
162			.saturating_add(Weight::from_parts(178_827, 0).saturating_mul(s.into()))
163			.saturating_add(T::DbWeight::get().reads(1))
164			.saturating_add(T::DbWeight::get().writes(1))
165	}
166	/// Storage: `Multisig::Multisigs` (r:1 w:1)
167	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
168	/// The range of component `s` is `[2, 100]`.
169	fn poke_deposit(s: u32, ) -> Weight {
170		// Proof Size summary in bytes:
171		//  Measured:  `458 + s * (1 ±0)`
172		//  Estimated: `6811`
173		// Minimum execution time: 34_917_000 picoseconds.
174		Weight::from_parts(36_141_350, 0)
175			.saturating_add(Weight::from_parts(0, 6811))
176			// Standard Error: 1_247
177			.saturating_add(Weight::from_parts(166_544, 0).saturating_mul(s.into()))
178			.saturating_add(T::DbWeight::get().reads(1))
179			.saturating_add(T::DbWeight::get().writes(1))
180	}
181}