moonbeam_runtime/weights/pallet_multisig.rs
1// Copyright 2025 Moonbeam foundation
2// This file is part of Moonbeam.
3
4// Moonbeam 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// Moonbeam 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 Moonbeam. 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 51.0.0
21//! DATE: 2025-12-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25
26// Executed Command:
27// ./frame-omni-bencher
28// v1
29// benchmark
30// pallet
31// --runtime=./target/production/wbuild/moonbeam-runtime/moonbeam_runtime.wasm
32// --genesis-builder=runtime
33// --genesis-builder-preset=development
34// --steps=50
35// --repeat=20
36// --pallet=pallet_multisig
37// --extrinsic=*
38// --wasm-execution=compiled
39// --header=./file_header.txt
40// --template=./benchmarking/frame-weight-template.hbs
41// --output=./runtime/moonbeam/src/weights
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46
47use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
48use sp_std::marker::PhantomData;
49
50/// Weights for `pallet_multisig`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
53 /// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
54 /// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
55 /// The range of component `z` is `[0, 10000]`.
56 fn as_multi_threshold_1(z: u32, ) -> Weight {
57 // Proof Size summary in bytes:
58 // Measured: `42`
59 // Estimated: `1527`
60 // Minimum execution time: 27_594_000 picoseconds.
61 Weight::from_parts(28_821_257, 1527)
62 // Standard Error: 11
63 .saturating_add(Weight::from_parts(4_059, 0).saturating_mul(z.into()))
64 .saturating_add(T::DbWeight::get().reads(1_u64))
65 }
66 /// Storage: `Multisig::Multisigs` (r:1 w:1)
67 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
68 /// The range of component `s` is `[2, 100]`.
69 /// The range of component `z` is `[0, 10000]`.
70 fn as_multi_create(s: u32, z: u32, ) -> Weight {
71 // Proof Size summary in bytes:
72 // Measured: `304`
73 // Estimated: `5587`
74 // Minimum execution time: 51_000_000 picoseconds.
75 Weight::from_parts(37_370_661, 5587)
76 // Standard Error: 1_819
77 .saturating_add(Weight::from_parts(156_427, 0).saturating_mul(s.into()))
78 // Standard Error: 17
79 .saturating_add(Weight::from_parts(4_089, 0).saturating_mul(z.into()))
80 .saturating_add(T::DbWeight::get().reads(1_u64))
81 .saturating_add(T::DbWeight::get().writes(1_u64))
82 }
83 /// Storage: `Multisig::Multisigs` (r:1 w:1)
84 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, 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: `312`
90 // Estimated: `5587`
91 // Minimum execution time: 33_443_000 picoseconds.
92 Weight::from_parts(20_191_286, 5587)
93 // Standard Error: 913
94 .saturating_add(Weight::from_parts(152_320, 0).saturating_mul(s.into()))
95 // Standard Error: 8
96 .saturating_add(Weight::from_parts(4_035, 0).saturating_mul(z.into()))
97 .saturating_add(T::DbWeight::get().reads(1_u64))
98 .saturating_add(T::DbWeight::get().writes(1_u64))
99 }
100 /// Storage: `Multisig::Multisigs` (r:1 w:1)
101 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
102 /// Storage: `System::Account` (r:1 w:1)
103 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
104 /// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
105 /// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
106 /// The range of component `s` is `[2, 100]`.
107 /// The range of component `z` is `[0, 10000]`.
108 fn as_multi_complete(s: u32, z: u32, ) -> Weight {
109 // Proof Size summary in bytes:
110 // Measured: `475 + s * (20 ±0)`
111 // Estimated: `5587 + s * (20 ±0)`
112 // Minimum execution time: 61_370_000 picoseconds.
113 Weight::from_parts(42_324_721, 5587)
114 // Standard Error: 3_108
115 .saturating_add(Weight::from_parts(213_449, 0).saturating_mul(s.into()))
116 // Standard Error: 30
117 .saturating_add(Weight::from_parts(4_344, 0).saturating_mul(z.into()))
118 .saturating_add(T::DbWeight::get().reads(3_u64))
119 .saturating_add(T::DbWeight::get().writes(2_u64))
120 .saturating_add(Weight::from_parts(0, 20).saturating_mul(s.into()))
121 }
122 /// Storage: `Multisig::Multisigs` (r:1 w:1)
123 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
124 /// The range of component `s` is `[2, 100]`.
125 fn approve_as_multi_create(s: u32, ) -> Weight {
126 // Proof Size summary in bytes:
127 // Measured: `304`
128 // Estimated: `5587`
129 // Minimum execution time: 33_778_000 picoseconds.
130 Weight::from_parts(34_719_765, 5587)
131 // Standard Error: 941
132 .saturating_add(Weight::from_parts(170_775, 0).saturating_mul(s.into()))
133 .saturating_add(T::DbWeight::get().reads(1_u64))
134 .saturating_add(T::DbWeight::get().writes(1_u64))
135 }
136 /// Storage: `Multisig::Multisigs` (r:1 w:1)
137 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, 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: `312`
142 // Estimated: `5587`
143 // Minimum execution time: 17_019_000 picoseconds.
144 Weight::from_parts(17_814_176, 5587)
145 // Standard Error: 711
146 .saturating_add(Weight::from_parts(156_932, 0).saturating_mul(s.into()))
147 .saturating_add(T::DbWeight::get().reads(1_u64))
148 .saturating_add(T::DbWeight::get().writes(1_u64))
149 }
150 /// Storage: `Multisig::Multisigs` (r:1 w:1)
151 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, 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: `474`
156 // Estimated: `5587`
157 // Minimum execution time: 36_452_000 picoseconds.
158 Weight::from_parts(37_290_424, 5587)
159 // Standard Error: 840
160 .saturating_add(Weight::from_parts(161_477, 0).saturating_mul(s.into()))
161 .saturating_add(T::DbWeight::get().reads(1_u64))
162 .saturating_add(T::DbWeight::get().writes(1_u64))
163 }
164 /// Storage: `Multisig::Multisigs` (r:1 w:1)
165 /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
166 /// The range of component `s` is `[2, 100]`.
167 fn poke_deposit(s: u32, ) -> Weight {
168 // Proof Size summary in bytes:
169 // Measured: `474`
170 // Estimated: `5587`
171 // Minimum execution time: 34_789_000 picoseconds.
172 Weight::from_parts(35_450_496, 5587)
173 // Standard Error: 785
174 .saturating_add(Weight::from_parts(155_251, 0).saturating_mul(s.into()))
175 .saturating_add(T::DbWeight::get().reads(1_u64))
176 .saturating_add(T::DbWeight::get().writes(1_u64))
177 }
178}