referrerpolicy=no-referrer-when-downgrade

rococo_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/rococo-runtime/rococo_runtime.wasm
32// --pallet=pallet_multisig
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/rococo/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_031_000 picoseconds.
60		Weight::from_parts(16_334_237, 0)
61			.saturating_add(Weight::from_parts(0, 0))
62			// Standard Error: 27
63			.saturating_add(Weight::from_parts(655, 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:  `229 + s * (2 ±0)`
72		//  Estimated: `6811`
73		// Minimum execution time: 47_422_000 picoseconds.
74		Weight::from_parts(34_453_063, 0)
75			.saturating_add(Weight::from_parts(0, 6811))
76			// Standard Error: 3_967
77			.saturating_add(Weight::from_parts(149_468, 0).saturating_mul(s.into()))
78			// Standard Error: 38
79			.saturating_add(Weight::from_parts(2_115, 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:  `248`
90		//  Estimated: `6811`
91		// Minimum execution time: 32_443_000 picoseconds.
92		Weight::from_parts(20_948_248, 0)
93			.saturating_add(Weight::from_parts(0, 6811))
94			// Standard Error: 2_516
95			.saturating_add(Weight::from_parts(134_093, 0).saturating_mul(s.into()))
96			// Standard Error: 24
97			.saturating_add(Weight::from_parts(1_905, 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:  `354 + s * (33 ±0)`
110		//  Estimated: `6811`
111		// Minimum execution time: 53_028_000 picoseconds.
112		Weight::from_parts(23_678_558, 0)
113			.saturating_add(Weight::from_parts(0, 6811))
114			// Standard Error: 6_864
115			.saturating_add(Weight::from_parts(300_804, 0).saturating_mul(s.into()))
116			// Standard Error: 67
117			.saturating_add(Weight::from_parts(3_380, 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:  `229 + s * (2 ±0)`
127		//  Estimated: `6811`
128		// Minimum execution time: 31_551_000 picoseconds.
129		Weight::from_parts(33_991_440, 0)
130			.saturating_add(Weight::from_parts(0, 6811))
131			// Standard Error: 2_114
132			.saturating_add(Weight::from_parts(123_260, 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:  `248`
142		//  Estimated: `6811`
143		// Minimum execution time: 17_063_000 picoseconds.
144		Weight::from_parts(17_667_306, 0)
145			.saturating_add(Weight::from_parts(0, 6811))
146			// Standard Error: 1_384
147			.saturating_add(Weight::from_parts(146_228, 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:  `420 + s * (1 ±0)`
157		//  Estimated: `6811`
158		// Minimum execution time: 31_979_000 picoseconds.
159		Weight::from_parts(35_042_991, 0)
160			.saturating_add(Weight::from_parts(0, 6811))
161			// Standard Error: 3_858
162			.saturating_add(Weight::from_parts(163_176, 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:  `420 + s * (1 ±0)`
172		//  Estimated: `6811`
173		// Minimum execution time: 30_328_000 picoseconds.
174		Weight::from_parts(34_135_440, 0)
175			.saturating_add(Weight::from_parts(0, 6811))
176			// Standard Error: 4_398
177			.saturating_add(Weight::from_parts(161_074, 0).saturating_mul(s.into()))
178			.saturating_add(T::DbWeight::get().reads(1))
179			.saturating_add(T::DbWeight::get().writes(1))
180	}
181}