collectives_westend_runtime/weights/pallet_ranked_collective_fellowship_collective.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_ranked_collective`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `e0f303704c84`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/collectives-westend-runtime/collectives_westend_runtime.wasm
31// --pallet=pallet_ranked_collective
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/collectives/collectives-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_ranked_collective`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_ranked_collective::WeightInfo for WeightInfo<T> {
53 /// Storage: `FellowshipCollective::Members` (r:1 w:1)
54 /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
55 /// Storage: `FellowshipCollective::MemberCount` (r:1 w:1)
56 /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
57 /// Storage: `FellowshipCollective::IndexToId` (r:0 w:1)
58 /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
59 /// Storage: `FellowshipCollective::IdToIndex` (r:0 w:1)
60 /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
61 fn add_member() -> Weight {
62 // Proof Size summary in bytes:
63 // Measured: `142`
64 // Estimated: `3507`
65 // Minimum execution time: 17_035_000 picoseconds.
66 Weight::from_parts(17_772_000, 0)
67 .saturating_add(Weight::from_parts(0, 3507))
68 .saturating_add(T::DbWeight::get().reads(2))
69 .saturating_add(T::DbWeight::get().writes(4))
70 }
71 /// Storage: `FellowshipCollective::Members` (r:1 w:1)
72 /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
73 /// Storage: `FellowshipCollective::MemberCount` (r:11 w:11)
74 /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
75 /// Storage: `FellowshipCollective::IdToIndex` (r:11 w:22)
76 /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
77 /// Storage: `FellowshipCollective::IndexToId` (r:11 w:22)
78 /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
79 /// The range of component `r` is `[0, 10]`.
80 /// The range of component `r` is `[0, 10]`.
81 fn remove_member(r: u32, ) -> Weight {
82 // Proof Size summary in bytes:
83 // Measured: `514 + r * (213 ±0)`
84 // Estimated: `3519 + r * (2529 ±0)`
85 // Minimum execution time: 36_318_000 picoseconds.
86 Weight::from_parts(39_397_066, 0)
87 .saturating_add(Weight::from_parts(0, 3519))
88 // Standard Error: 30_185
89 .saturating_add(Weight::from_parts(17_919_026, 0).saturating_mul(r.into()))
90 .saturating_add(T::DbWeight::get().reads(4))
91 .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(r.into())))
92 .saturating_add(T::DbWeight::get().writes(6))
93 .saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(r.into())))
94 .saturating_add(Weight::from_parts(0, 2529).saturating_mul(r.into()))
95 }
96 /// Storage: `FellowshipCollective::Members` (r:1 w:1)
97 /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
98 /// Storage: `FellowshipCollective::MemberCount` (r:1 w:1)
99 /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
100 /// Storage: `FellowshipCollective::IndexToId` (r:0 w:1)
101 /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
102 /// Storage: `FellowshipCollective::IdToIndex` (r:0 w:1)
103 /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
104 /// The range of component `r` is `[0, 10]`.
105 /// The range of component `r` is `[0, 10]`.
106 fn promote_member(r: u32, ) -> Weight {
107 // Proof Size summary in bytes:
108 // Measured: `314 + r * (17 ±0)`
109 // Estimated: `3507`
110 // Minimum execution time: 20_667_000 picoseconds.
111 Weight::from_parts(21_656_410, 0)
112 .saturating_add(Weight::from_parts(0, 3507))
113 // Standard Error: 8_086
114 .saturating_add(Weight::from_parts(433_934, 0).saturating_mul(r.into()))
115 .saturating_add(T::DbWeight::get().reads(2))
116 .saturating_add(T::DbWeight::get().writes(4))
117 }
118 /// Storage: `FellowshipCollective::Members` (r:1 w:1)
119 /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
120 /// Storage: `FellowshipCollective::MemberCount` (r:1 w:1)
121 /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
122 /// Storage: `FellowshipCollective::IdToIndex` (r:1 w:2)
123 /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
124 /// Storage: `FellowshipCollective::IndexToId` (r:1 w:2)
125 /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
126 /// The range of component `r` is `[0, 10]`.
127 /// The range of component `r` is `[0, 10]`.
128 fn demote_member(r: u32, ) -> Weight {
129 // Proof Size summary in bytes:
130 // Measured: `530 + r * (72 ±0)`
131 // Estimated: `3519`
132 // Minimum execution time: 36_485_000 picoseconds.
133 Weight::from_parts(40_326_029, 0)
134 .saturating_add(Weight::from_parts(0, 3519))
135 // Standard Error: 27_200
136 .saturating_add(Weight::from_parts(906_945, 0).saturating_mul(r.into()))
137 .saturating_add(T::DbWeight::get().reads(4))
138 .saturating_add(T::DbWeight::get().writes(6))
139 }
140 /// Storage: `FellowshipCollective::Members` (r:1 w:0)
141 /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
142 /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1)
143 /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`)
144 /// Storage: `FellowshipCollective::Voting` (r:1 w:1)
145 /// Proof: `FellowshipCollective::Voting` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
146 /// Storage: `Scheduler::Agenda` (r:2 w:2)
147 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
148 /// Storage: `Scheduler::Retries` (r:0 w:1)
149 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
150 fn vote() -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `590`
153 // Estimated: `317568`
154 // Minimum execution time: 49_849_000 picoseconds.
155 Weight::from_parts(51_587_000, 0)
156 .saturating_add(Weight::from_parts(0, 317568))
157 .saturating_add(T::DbWeight::get().reads(5))
158 .saturating_add(T::DbWeight::get().writes(5))
159 }
160 /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:0)
161 /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`)
162 /// Storage: `FellowshipCollective::VotingCleanup` (r:1 w:0)
163 /// Proof: `FellowshipCollective::VotingCleanup` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
164 /// Storage: `FellowshipCollective::Voting` (r:100 w:100)
165 /// Proof: `FellowshipCollective::Voting` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
166 /// The range of component `n` is `[0, 100]`.
167 /// The range of component `n` is `[0, 100]`.
168 fn cleanup_poll(n: u32, ) -> Weight {
169 // Proof Size summary in bytes:
170 // Measured: `461 + n * (50 ±0)`
171 // Estimated: `4365 + n * (2540 ±0)`
172 // Minimum execution time: 15_287_000 picoseconds.
173 Weight::from_parts(19_668_916, 0)
174 .saturating_add(Weight::from_parts(0, 4365))
175 // Standard Error: 4_879
176 .saturating_add(Weight::from_parts(1_371_347, 0).saturating_mul(n.into()))
177 .saturating_add(T::DbWeight::get().reads(2))
178 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
179 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
180 .saturating_add(Weight::from_parts(0, 2540).saturating_mul(n.into()))
181 }
182 /// Storage: `FellowshipCollective::Members` (r:2 w:2)
183 /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
184 /// Storage: `FellowshipCollective::MemberCount` (r:2 w:2)
185 /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
186 /// Storage: `FellowshipCollective::IdToIndex` (r:2 w:4)
187 /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
188 /// Storage: `FellowshipCore::Member` (r:2 w:2)
189 /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
190 /// Storage: `FellowshipCore::MemberEvidence` (r:1 w:0)
191 /// Proof: `FellowshipCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`)
192 /// Storage: `FellowshipSalary::Claimant` (r:2 w:2)
193 /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
194 /// Storage: `FellowshipCollective::IndexToId` (r:0 w:2)
195 /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
196 fn exchange_member() -> Weight {
197 // Proof Size summary in bytes:
198 // Measured: `625`
199 // Estimated: `69046`
200 // Minimum execution time: 84_574_000 picoseconds.
201 Weight::from_parts(86_910_000, 0)
202 .saturating_add(Weight::from_parts(0, 69046))
203 .saturating_add(T::DbWeight::get().reads(11))
204 .saturating_add(T::DbWeight::get().writes(14))
205 }
206}