1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi 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
// Tanssi 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 Tanssi.  If not, see <http://www.gnu.org/licenses/>
16

            
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-05-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/container-chain-simple-node
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_multisig
34
// --extrinsic
35
// *
36
// --chain=dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/simple_template_weights/pallet_multisig.rs
46

            
47
#![cfg_attr(rustfmt, rustfmt_skip)]
48
#![allow(unused_parens)]
49
#![allow(unused_imports)]
50

            
51
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
52
use sp_std::marker::PhantomData;
53

            
54
/// Weights for pallet_multisig using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> pallet_multisig::WeightInfo for SubstrateWeight<T> {
57
	fn poke_deposit(_: u32) -> cumulus_primitives_core::Weight {
58
		Default::default()
59
	}
60
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
61
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
62
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
63
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
64
	/// The range of component `z` is `[0, 10000]`.
65
	fn as_multi_threshold_1(z: u32, ) -> Weight {
66
		// Proof Size summary in bytes:
67
		//  Measured:  `46`
68
		//  Estimated: `3997`
69
		// Minimum execution time: 28_384_000 picoseconds.
70
		Weight::from_parts(29_901_705, 3997)
71
			// Standard Error: 4
72
			.saturating_add(Weight::from_parts(498, 0).saturating_mul(z.into()))
73
			.saturating_add(T::DbWeight::get().reads(2_u64))
74
	}
75
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
76
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
77
	/// The range of component `s` is `[2, 100]`.
78
	/// The range of component `z` is `[0, 10000]`.
79
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
80
		// Proof Size summary in bytes:
81
		//  Measured:  `296 + s * (2 ±0)`
82
		//  Estimated: `6811`
83
		// Minimum execution time: 56_890_000 picoseconds.
84
		Weight::from_parts(42_435_800, 6811)
85
			// Standard Error: 766
86
			.saturating_add(Weight::from_parts(162_639, 0).saturating_mul(s.into()))
87
			// Standard Error: 7
88
			.saturating_add(Weight::from_parts(1_927, 0).saturating_mul(z.into()))
89
			.saturating_add(T::DbWeight::get().reads(1_u64))
90
			.saturating_add(T::DbWeight::get().writes(1_u64))
91
	}
92
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
93
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
94
	/// The range of component `s` is `[3, 100]`.
95
	/// The range of component `z` is `[0, 10000]`.
96
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
97
		// Proof Size summary in bytes:
98
		//  Measured:  `315`
99
		//  Estimated: `6811`
100
		// Minimum execution time: 37_982_000 picoseconds.
101
		Weight::from_parts(23_976_632, 6811)
102
			// Standard Error: 477
103
			.saturating_add(Weight::from_parts(148_218, 0).saturating_mul(s.into()))
104
			// Standard Error: 4
105
			.saturating_add(Weight::from_parts(1_962, 0).saturating_mul(z.into()))
106
			.saturating_add(T::DbWeight::get().reads(1_u64))
107
			.saturating_add(T::DbWeight::get().writes(1_u64))
108
	}
109
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
110
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
111
	/// Storage: `System::Account` (r:1 w:1)
112
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
113
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
114
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
115
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
116
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
117
	/// The range of component `s` is `[2, 100]`.
118
	/// The range of component `z` is `[0, 10000]`.
119
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
120
		// Proof Size summary in bytes:
121
		//  Measured:  `467 + s * (33 ±0)`
122
		//  Estimated: `6811 + s * (34 ±0)`
123
		// Minimum execution time: 71_225_000 picoseconds.
124
		Weight::from_parts(53_407_626, 6811)
125
			// Standard Error: 831
126
			.saturating_add(Weight::from_parts(203_213, 0).saturating_mul(s.into()))
127
			// Standard Error: 8
128
			.saturating_add(Weight::from_parts(2_004, 0).saturating_mul(z.into()))
129
			.saturating_add(T::DbWeight::get().reads(4_u64))
130
			.saturating_add(T::DbWeight::get().writes(2_u64))
131
			.saturating_add(Weight::from_parts(0, 34).saturating_mul(s.into()))
132
	}
133
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
134
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
135
	/// The range of component `s` is `[2, 100]`.
136
	/// The range of component `z` is `[0, 10000]`.
137
	fn approve_as_multi_create(s: u32) -> Weight {
138
		// Proof Size summary in bytes:
139
		//  Measured:  `296 + s * (2 ±0)`
140
		//  Estimated: `6811`
141
		// Minimum execution time: 39_572_000 picoseconds.
142
		Weight::from_parts(40_340_925, 6811)
143
			// Standard Error: 688
144
			.saturating_add(Weight::from_parts(161_537, 0).saturating_mul(s.into()))
145
			// Standard Error: 6
146
			.saturating_add(T::DbWeight::get().reads(1_u64))
147
			.saturating_add(T::DbWeight::get().writes(1_u64))
148
	}
149
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
150
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
151
	/// The range of component `s` is `[2, 100]`.
152
	/// The range of component `z` is `[0, 10000]`.
153
	fn approve_as_multi_approve(s: u32) -> Weight {
154
		// Proof Size summary in bytes:
155
		//  Measured:  `315`
156
		//  Estimated: `6811`
157
		// Minimum execution time: 22_100_000 picoseconds.
158
		Weight::from_parts(22_494_279, 6811)
159
			// Standard Error: 455
160
			.saturating_add(Weight::from_parts(146_622, 0).saturating_mul(s.into()))
161
			// Standard Error: 4
162
			.saturating_add(T::DbWeight::get().reads(1_u64))
163
			.saturating_add(T::DbWeight::get().writes(1_u64))
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
	/// The range of component `z` is `[0, 10000]`.
169
	fn cancel_as_multi(s: u32) -> Weight {
170
		// Proof Size summary in bytes:
171
		//  Measured:  `487 + s * (1 ±0)`
172
		//  Estimated: `6811`
173
		// Minimum execution time: 40_299_000 picoseconds.
174
		Weight::from_parts(41_275_708, 6811)
175
			// Standard Error: 559
176
			.saturating_add(Weight::from_parts(152_538, 0).saturating_mul(s.into()))
177
			// Standard Error: 5
178
			.saturating_add(T::DbWeight::get().reads(1_u64))
179
			.saturating_add(T::DbWeight::get().writes(1_u64))
180
	}
181
}