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_collective
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.0.0
21
//! DATE: 2025-09-15, STEPS: `16`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `192.168.1.114`, CPU: `<UNKNOWN>`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime
32
// target/release/wbuild/dancelight-runtime/dancelight_runtime.compact.compressed.wasm
33
// --pallet
34
// pallet_collective
35
// --extrinsic
36
// 
37
// --steps
38
// 16
39
// --repeat
40
// 1
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/dancelight_weights
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 core::marker::PhantomData;
53

            
54
/// Weights for pallet_collective using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> pallet_collective::WeightInfo for SubstrateWeight<T> {
57
	/// Storage: `OpenTechCommitteeCollective::Members` (r:1 w:1)
58
	/// Proof: `OpenTechCommitteeCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
59
	/// Storage: `OpenTechCommitteeCollective::Proposals` (r:1 w:0)
60
	/// Proof: `OpenTechCommitteeCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
61
	/// Storage: `OpenTechCommitteeCollective::Voting` (r:100 w:100)
62
	/// Proof: `OpenTechCommitteeCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
63
	/// Storage: `OpenTechCommitteeCollective::Prime` (r:0 w:1)
64
	/// Proof: `OpenTechCommitteeCollective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
65
	/// The range of component `m` is `[0, 100]`.
66
	/// The range of component `n` is `[0, 100]`.
67
	/// The range of component `p` is `[0, 100]`.
68
	fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
69
		// Proof Size summary in bytes:
70
		//  Measured:  `0 + m * (3232 ±0) + p * (3190 ±0)`
71
		//  Estimated: `38461 + m * (1970 ±162) + p * (4217 ±162)`
72
		// Minimum execution time: 16_000_000 picoseconds.
73
		Weight::from_parts(16_000_000, 38461)
74
			// Standard Error: 769_040
75
			.saturating_add(Weight::from_parts(3_901_385, 0).saturating_mul(m.into()))
76
			// Standard Error: 769_040
77
			.saturating_add(Weight::from_parts(8_346_113, 0).saturating_mul(p.into()))
78
			.saturating_add(T::DbWeight::get().reads(2_u64))
79
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
80
			.saturating_add(T::DbWeight::get().writes(2_u64))
81
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
82
			.saturating_add(Weight::from_parts(0, 1970).saturating_mul(m.into()))
83
			.saturating_add(Weight::from_parts(0, 4217).saturating_mul(p.into()))
84
	}
85
	/// Storage: `OpenTechCommitteeCollective::Members` (r:1 w:0)
86
	/// Proof: `OpenTechCommitteeCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
87
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
88
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
89
	/// The range of component `b` is `[2, 1024]`.
90
	/// The range of component `m` is `[1, 100]`.
91
	fn execute(_b: u32, m: u32, ) -> Weight {
92
		// Proof Size summary in bytes:
93
		//  Measured:  `178 + m * (32 ±0)`
94
		//  Estimated: `1663 + m * (32 ±0)`
95
		// Minimum execution time: 15_000_000 picoseconds.
96
		Weight::from_parts(16_880_387, 1663)
97
			// Standard Error: 23_723
98
			.saturating_add(Weight::from_parts(24_668, 0).saturating_mul(m.into()))
99
			.saturating_add(T::DbWeight::get().reads(2_u64))
100
			.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
101
	}
102
	/// Storage: `OpenTechCommitteeCollective::Members` (r:1 w:0)
103
	/// Proof: `OpenTechCommitteeCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
104
	/// Storage: `OpenTechCommitteeCollective::ProposalOf` (r:1 w:0)
105
	/// Proof: `OpenTechCommitteeCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
106
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
107
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
108
	/// The range of component `b` is `[2, 1024]`.
109
	/// The range of component `m` is `[1, 100]`.
110
	fn propose_execute(_b: u32, m: u32, ) -> Weight {
111
		// Proof Size summary in bytes:
112
		//  Measured:  `178 + m * (32 ±0)`
113
		//  Estimated: `3643 + m * (32 ±0)`
114
		// Minimum execution time: 15_000_000 picoseconds.
115
		Weight::from_parts(18_801_690, 3643)
116
			// Standard Error: 18_637
117
			.saturating_add(Weight::from_parts(13_312, 0).saturating_mul(m.into()))
118
			.saturating_add(T::DbWeight::get().reads(3_u64))
119
			.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
120
	}
121
	/// Storage: `OpenTechCommitteeCollective::Members` (r:1 w:0)
122
	/// Proof: `OpenTechCommitteeCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
123
	/// Storage: `OpenTechCommitteeCollective::ProposalOf` (r:1 w:1)
124
	/// Proof: `OpenTechCommitteeCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
125
	/// Storage: `OpenTechCommitteeCollective::Proposals` (r:1 w:1)
126
	/// Proof: `OpenTechCommitteeCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
127
	/// Storage: `OpenTechCommitteeCollective::ProposalCount` (r:1 w:1)
128
	/// Proof: `OpenTechCommitteeCollective::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
129
	/// Storage: `OpenTechCommitteeCollective::Voting` (r:0 w:1)
130
	/// Proof: `OpenTechCommitteeCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
131
	/// The range of component `b` is `[2, 1024]`.
132
	/// The range of component `m` is `[2, 100]`.
133
	/// The range of component `p` is `[1, 100]`.
134
	fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
135
		// Proof Size summary in bytes:
136
		//  Measured:  `452 + m * (32 ±0) + p * (35 ±0)`
137
		//  Estimated: `3788 + m * (33 ±0) + p * (37 ±0)`
138
		// Minimum execution time: 20_000_000 picoseconds.
139
		Weight::from_parts(21_652_325, 3788)
140
			// Standard Error: 5_131
141
			.saturating_add(Weight::from_parts(4_858, 0).saturating_mul(b.into()))
142
			// Standard Error: 53_308
143
			.saturating_add(Weight::from_parts(37_394, 0).saturating_mul(m.into()))
144
			// Standard Error: 52_757
145
			.saturating_add(Weight::from_parts(89_883, 0).saturating_mul(p.into()))
146
			.saturating_add(T::DbWeight::get().reads(4_u64))
147
			.saturating_add(T::DbWeight::get().writes(4_u64))
148
			.saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into()))
149
			.saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
150
	}
151
	/// Storage: `OpenTechCommitteeCollective::Members` (r:1 w:0)
152
	/// Proof: `OpenTechCommitteeCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
153
	/// Storage: `OpenTechCommitteeCollective::Voting` (r:1 w:1)
154
	/// Proof: `OpenTechCommitteeCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
155
	/// The range of component `m` is `[5, 100]`.
156
	fn vote(m: u32, ) -> Weight {
157
		// Proof Size summary in bytes:
158
		//  Measured:  `874 + m * (64 ±0)`
159
		//  Estimated: `4339 + m * (64 ±0)`
160
		// Minimum execution time: 17_000_000 picoseconds.
161
		Weight::from_parts(61_072_871, 4339)
162
			.saturating_add(T::DbWeight::get().reads(2_u64))
163
			.saturating_add(T::DbWeight::get().writes(1_u64))
164
			.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
165
	}
166
	/// Storage: `OpenTechCommitteeCollective::Voting` (r:1 w:1)
167
	/// Proof: `OpenTechCommitteeCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
168
	/// Storage: `OpenTechCommitteeCollective::Members` (r:1 w:0)
169
	/// Proof: `OpenTechCommitteeCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
170
	/// Storage: `OpenTechCommitteeCollective::Proposals` (r:1 w:1)
171
	/// Proof: `OpenTechCommitteeCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
172
	/// Storage: `OpenTechCommitteeCollective::ProposalOf` (r:0 w:1)
173
	/// Proof: `OpenTechCommitteeCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
174
	/// The range of component `m` is `[4, 100]`.
175
	/// The range of component `p` is `[1, 100]`.
176
	fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
177
		// Proof Size summary in bytes:
178
		//  Measured:  `521 + m * (64 ±0) + p * (35 ±0)`
179
		//  Estimated: `3904 + m * (65 ±0) + p * (36 ±0)`
180
		// Minimum execution time: 20_000_000 picoseconds.
181
		Weight::from_parts(19_544_819, 3904)
182
			// Standard Error: 22_113
183
			.saturating_add(Weight::from_parts(26_940, 0).saturating_mul(m.into()))
184
			// Standard Error: 21_446
185
			.saturating_add(Weight::from_parts(161_202, 0).saturating_mul(p.into()))
186
			.saturating_add(T::DbWeight::get().reads(3_u64))
187
			.saturating_add(T::DbWeight::get().writes(3_u64))
188
			.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
189
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
190
	}
191
	/// Storage: `OpenTechCommitteeCollective::Voting` (r:1 w:1)
192
	/// Proof: `OpenTechCommitteeCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
193
	/// Storage: `OpenTechCommitteeCollective::Members` (r:1 w:0)
194
	/// Proof: `OpenTechCommitteeCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
195
	/// Storage: `OpenTechCommitteeCollective::ProposalOf` (r:1 w:1)
196
	/// Proof: `OpenTechCommitteeCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
197
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
198
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
199
	/// Storage: `OpenTechCommitteeCollective::Proposals` (r:1 w:1)
200
	/// Proof: `OpenTechCommitteeCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
201
	/// The range of component `b` is `[2, 1024]`.
202
	/// The range of component `m` is `[4, 100]`.
203
	/// The range of component `p` is `[1, 100]`.
204
	fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
205
		// Proof Size summary in bytes:
206
		//  Measured:  `996 + m * (64 ±0) + p * (39 ±0)`
207
		//  Estimated: `4010 + b * (1 ±0) + m * (66 ±0) + p * (41 ±0)`
208
		// Minimum execution time: 31_000_000 picoseconds.
209
		Weight::from_parts(24_835_806, 4010)
210
			// Standard Error: 5_413
211
			.saturating_add(Weight::from_parts(2_025, 0).saturating_mul(b.into()))
212
			// Standard Error: 57_381
213
			.saturating_add(Weight::from_parts(73_839, 0).saturating_mul(m.into()))
214
			// Standard Error: 55_650
215
			.saturating_add(Weight::from_parts(214_302, 0).saturating_mul(p.into()))
216
			.saturating_add(T::DbWeight::get().reads(5_u64))
217
			.saturating_add(T::DbWeight::get().writes(3_u64))
218
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
219
			.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
220
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(p.into()))
221
	}
222
	/// Storage: `OpenTechCommitteeCollective::Voting` (r:1 w:1)
223
	/// Proof: `OpenTechCommitteeCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
224
	/// Storage: `OpenTechCommitteeCollective::Members` (r:1 w:0)
225
	/// Proof: `OpenTechCommitteeCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
226
	/// Storage: `OpenTechCommitteeCollective::Prime` (r:1 w:0)
227
	/// Proof: `OpenTechCommitteeCollective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
228
	/// Storage: `OpenTechCommitteeCollective::Proposals` (r:1 w:1)
229
	/// Proof: `OpenTechCommitteeCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
230
	/// Storage: `OpenTechCommitteeCollective::ProposalOf` (r:0 w:1)
231
	/// Proof: `OpenTechCommitteeCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
232
	/// The range of component `m` is `[4, 100]`.
233
	/// The range of component `p` is `[1, 100]`.
234
	fn close_disapproved(m: u32, p: u32, ) -> Weight {
235
		// Proof Size summary in bytes:
236
		//  Measured:  `636 + m * (48 ±0) + p * (35 ±0)`
237
		//  Estimated: `4011 + m * (49 ±0) + p * (36 ±0)`
238
		// Minimum execution time: 24_000_000 picoseconds.
239
		Weight::from_parts(52_178_855, 4011)
240
			// Standard Error: 74_556
241
			.saturating_add(Weight::from_parts(28_041, 0).saturating_mul(p.into()))
242
			.saturating_add(T::DbWeight::get().reads(4_u64))
243
			.saturating_add(T::DbWeight::get().writes(3_u64))
244
			.saturating_add(Weight::from_parts(0, 49).saturating_mul(m.into()))
245
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
246
	}
247
	/// Storage: `OpenTechCommitteeCollective::Voting` (r:1 w:1)
248
	/// Proof: `OpenTechCommitteeCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
249
	/// Storage: `OpenTechCommitteeCollective::Members` (r:1 w:0)
250
	/// Proof: `OpenTechCommitteeCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
251
	/// Storage: `OpenTechCommitteeCollective::Prime` (r:1 w:0)
252
	/// Proof: `OpenTechCommitteeCollective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
253
	/// Storage: `OpenTechCommitteeCollective::ProposalOf` (r:1 w:1)
254
	/// Proof: `OpenTechCommitteeCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
255
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
256
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
257
	/// Storage: `OpenTechCommitteeCollective::Proposals` (r:1 w:1)
258
	/// Proof: `OpenTechCommitteeCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
259
	/// The range of component `b` is `[2, 1024]`.
260
	/// The range of component `m` is `[4, 100]`.
261
	/// The range of component `p` is `[1, 100]`.
262
	fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
263
		// Proof Size summary in bytes:
264
		//  Measured:  `1016 + m * (64 ±0) + p * (39 ±0)`
265
		//  Estimated: `4030 + b * (1 ±0) + m * (66 ±0) + p * (41 ±0)`
266
		// Minimum execution time: 34_000_000 picoseconds.
267
		Weight::from_parts(101_563_499, 4030)
268
			// Standard Error: 85_380
269
			.saturating_add(Weight::from_parts(29_478, 0).saturating_mul(p.into()))
270
			.saturating_add(T::DbWeight::get().reads(6_u64))
271
			.saturating_add(T::DbWeight::get().writes(3_u64))
272
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
273
			.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
274
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(p.into()))
275
	}
276
	/// Storage: `OpenTechCommitteeCollective::Proposals` (r:1 w:1)
277
	/// Proof: `OpenTechCommitteeCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
278
	/// Storage: `OpenTechCommitteeCollective::Voting` (r:0 w:1)
279
	/// Proof: `OpenTechCommitteeCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
280
	/// Storage: `OpenTechCommitteeCollective::ProposalOf` (r:0 w:1)
281
	/// Proof: `OpenTechCommitteeCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
282
	/// The range of component `p` is `[1, 100]`.
283
	fn disapprove_proposal(p: u32, ) -> Weight {
284
		// Proof Size summary in bytes:
285
		//  Measured:  `292 + p * (32 ±0)`
286
		//  Estimated: `1777 + p * (32 ±0)`
287
		// Minimum execution time: 11_000_000 picoseconds.
288
		Weight::from_parts(7_874_170, 1777)
289
			// Standard Error: 165_696
290
			.saturating_add(Weight::from_parts(306_749, 0).saturating_mul(p.into()))
291
			.saturating_add(T::DbWeight::get().reads(1_u64))
292
			.saturating_add(T::DbWeight::get().writes(3_u64))
293
			.saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
294
	}
295
	/// Storage: `OpenTechCommitteeCollective::ProposalOf` (r:1 w:1)
296
	/// Proof: `OpenTechCommitteeCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
297
	/// Storage: `OpenTechCommitteeCollective::CostOf` (r:1 w:0)
298
	/// Proof: `OpenTechCommitteeCollective::CostOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
299
	/// Storage: `OpenTechCommitteeCollective::Proposals` (r:1 w:1)
300
	/// Proof: `OpenTechCommitteeCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
301
	/// Storage: `OpenTechCommitteeCollective::Voting` (r:0 w:1)
302
	/// Proof: `OpenTechCommitteeCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
303
	/// The range of component `d` is `[0, 1]`.
304
	/// The range of component `p` is `[1, 100]`.
305
	fn kill(d: u32, p: u32, ) -> Weight {
306
		// Proof Size summary in bytes:
307
		//  Measured:  `1614 + p * (35 ±0)`
308
		//  Estimated: `4958 + d * (113 ±47) + p * (37 ±0)`
309
		// Minimum execution time: 17_000_000 picoseconds.
310
		Weight::from_parts(19_717_421, 4958)
311
			// Standard Error: 34_710
312
			.saturating_add(Weight::from_parts(127_270, 0).saturating_mul(p.into()))
313
			.saturating_add(T::DbWeight::get().reads(3_u64))
314
			.saturating_add(T::DbWeight::get().writes(3_u64))
315
			.saturating_add(Weight::from_parts(0, 113).saturating_mul(d.into()))
316
			.saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
317
	}
318
	/// Storage: `OpenTechCommitteeCollective::ProposalOf` (r:1 w:0)
319
	/// Proof: `OpenTechCommitteeCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
320
	/// Storage: `OpenTechCommitteeCollective::CostOf` (r:1 w:0)
321
	/// Proof: `OpenTechCommitteeCollective::CostOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
322
	fn release_proposal_cost() -> Weight {
323
		// Proof Size summary in bytes:
324
		//  Measured:  `978`
325
		//  Estimated: `4443`
326
		// Minimum execution time: 10_000_000 picoseconds.
327
		Weight::from_parts(10_000_000, 4443)
328
			.saturating_add(T::DbWeight::get().reads(2_u64))
329
	}
330
}