git.delta.rocks / unique-network / refs/commits / bdedd282afe2

difftreelog

bench collator selection

Igor Kozyrev2023-04-20parent: #e3dc249.patch.diff
in: master

1 file changed

modifiedpallets/collator-selection/src/weights.rsdiffbeforeafterboth
1// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs
2// This file is part of Unique Network.
32
4// Unique Network is free software: you can redistribute it and/or modify3//! Autogenerated weights for pallet_collator_selection
4//!
5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
5// it under the terms of the GNU General Public License as published by6//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6// the Free Software Foundation, either version 3 of the License, or7//! WORST CASE MAP SIZE: `1000000`
8//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
7// (at your option) any later version.9//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
810
9// Unique Network is distributed in the hope that it will be useful,11// Executed Command:
12// target/release/unique-collator
13// benchmark
14// pallet
15// --pallet
16// pallet-collator-selection
17// --wasm-execution
18// compiled
19// --extrinsic
10// but WITHOUT ANY WARRANTY; without even the implied warranty of20// *
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the21// --template=.maintain/frame-weight-template.hbs
22// --steps=50
23// --repeat=80
24// --heap-pages=4096
12// GNU General Public License for more details.25// --output=./pallets/collator-selection/src/weights.rs
1326
14// You should have received a copy of the GNU General Public License
15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
16
17// Original license:
18// This file is part of Substrate.
19
20// Copyright (C) 2021 Parity Technologies (UK) Ltd.27#![cfg_attr(rustfmt, rustfmt_skip)]
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35#![allow(unused_parens)]28#![allow(unused_parens)]
36#![allow(unused_imports)]29#![allow(unused_imports)]
3730
38use frame_support::{31use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
39 traits::Get,
40 weights::{constants::RocksDbWeight, Weight},
41};
42use sp_std::marker::PhantomData;32use sp_std::marker::PhantomData;
4333
44// The weight info trait for `pallet_collator_selection`.34/// Weight functions needed for pallet_collator_selection.
45pub trait WeightInfo {35pub trait WeightInfo {
46 fn add_invulnerable(_b: u32) -> Weight;36 fn add_invulnerable(b: u32, ) -> Weight;
47 fn remove_invulnerable(_b: u32) -> Weight;37 fn remove_invulnerable(b: u32, ) -> Weight;
48 fn get_license(_c: u32) -> Weight;38 fn get_license(c: u32, ) -> Weight;
49 fn onboard(_c: u32) -> Weight;39 fn onboard(c: u32, ) -> Weight;
50 fn offboard(_c: u32) -> Weight;40 fn offboard(c: u32, ) -> Weight;
51 fn release_license(_c: u32) -> Weight;41 fn release_license(c: u32, ) -> Weight;
52 fn force_release_license(_c: u32) -> Weight;42 fn force_release_license(c: u32, ) -> Weight;
53 fn note_author() -> Weight;43 fn note_author() -> Weight;
54 fn new_session(_c: u32, _r: u32) -> Weight;44 fn new_session(r: u32, c: u32, ) -> Weight;
55}45}
5646
57/// Weights for pallet_collator_selection using the Substrate node and recommended hardware.47/// Weights for pallet_collator_selection using the Substrate node and recommended hardware.
58pub struct SubstrateWeight<T>(PhantomData<T>);48pub struct SubstrateWeight<T>(PhantomData<T>);
59impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {49impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
60 fn add_invulnerable(b: u32) -> Weight {50 /// Storage: Session NextKeys (r:1 w:0)
51 /// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
52 /// Storage: CollatorSelection Invulnerables (r:1 w:1)
53 /// Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
54 /// Storage: CollatorSelection Candidates (r:1 w:0)
55 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
56 /// The range of component `b` is `[1, 7]`.
57 fn add_invulnerable(b: u32, ) -> Weight {
61 Weight::from_ref_time(18_563_000 as u64)58 // Proof Size summary in bytes:
59 // Measured: `403 + b * (45 ±0)`
60 // Estimated: `7485 + b * (45 ±0)`
62 // Standard Error: 061 // Minimum execution time: 14_147_000 picoseconds.
62 Weight::from_parts(15_313_627, 7485)
63 // Standard Error: 1_744
63 .saturating_add(Weight::from_ref_time(68_000 as u64).saturating_mul(b as u64))64 .saturating_add(Weight::from_parts(178_890, 0).saturating_mul(b.into()))
64 .saturating_add(T::DbWeight::get().writes(1 as u64))65 .saturating_add(T::DbWeight::get().reads(3_u64))
66 .saturating_add(T::DbWeight::get().writes(1_u64))
67 .saturating_add(Weight::from_parts(0, 45).saturating_mul(b.into()))
65 }68 }
66 fn remove_invulnerable(b: u32) -> Weight {69 /// Storage: CollatorSelection Invulnerables (r:1 w:1)
70 /// Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
71 /// The range of component `b` is `[1, 7]`.
72 fn remove_invulnerable(b: u32, ) -> Weight {
67 Weight::from_ref_time(18_563_000 as u64)73 // Proof Size summary in bytes:
74 // Measured: `96 + b * (32 ±0)`
75 // Estimated: `1806`
76 // Minimum execution time: 9_426_000 picoseconds.
77 Weight::from_parts(9_693_408, 1806)
68 // Standard Error: 078 // Standard Error: 1_638
69 .saturating_add(Weight::from_ref_time(68_000 as u64).saturating_mul(b as u64))79 .saturating_add(Weight::from_parts(227_917, 0).saturating_mul(b.into()))
70 .saturating_add(T::DbWeight::get().writes(1 as u64))80 .saturating_add(T::DbWeight::get().reads(1_u64))
81 .saturating_add(T::DbWeight::get().writes(1_u64))
71 }82 }
72 fn get_license(c: u32) -> Weight {83 /// Storage: CollatorSelection LicenseDepositOf (r:1 w:1)
84 /// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
85 /// Storage: Session NextKeys (r:1 w:0)
86 /// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
87 /// Storage: Configuration CollatorSelectionLicenseBondOverride (r:1 w:0)
88 /// Proof: Configuration CollatorSelectionLicenseBondOverride (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
89 /// The range of component `c` is `[1, 9]`.
90 fn get_license(c: u32, ) -> Weight {
73 Weight::from_ref_time(71_196_000 as u64)91 // Proof Size summary in bytes:
92 // Measured: `610 + c * (26 ±0)`
93 // Estimated: `9099 + c * (28 ±0)`
74 // Standard Error: 094 // Minimum execution time: 22_741_000 picoseconds.
95 Weight::from_parts(24_210_604, 9099)
96 // Standard Error: 2_703
75 .saturating_add(Weight::from_ref_time(198_000 as u64).saturating_mul(c as u64))97 .saturating_add(Weight::from_parts(255_686, 0).saturating_mul(c.into()))
76 .saturating_add(T::DbWeight::get().reads(4 as u64))98 .saturating_add(T::DbWeight::get().reads(3_u64))
77 .saturating_add(T::DbWeight::get().writes(2 as u64))99 .saturating_add(T::DbWeight::get().writes(1_u64))
100 .saturating_add(Weight::from_parts(0, 28).saturating_mul(c.into()))
78 }101 }
79 fn onboard(c: u32) -> Weight {102 /// Storage: CollatorSelection LicenseDepositOf (r:1 w:0)
103 /// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
104 /// Storage: CollatorSelection Candidates (r:1 w:1)
105 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
106 /// Storage: CollatorSelection Invulnerables (r:1 w:0)
107 /// Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
108 /// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:1 w:0)
109 /// Proof: Configuration CollatorSelectionDesiredCollatorsOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
110 /// Storage: Configuration CollatorSelectionKickThresholdOverride (r:1 w:0)
111 /// Proof: Configuration CollatorSelectionKickThresholdOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
112 /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
113 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
114 /// The range of component `c` is `[1, 7]`.
115 fn onboard(c: u32, ) -> Weight {
80 Weight::from_ref_time(71_196_000 as u64)116 // Proof Size summary in bytes:
117 // Measured: `445 + c * (54 ±0)`
118 // Estimated: `10119`
119 // Minimum execution time: 20_397_000 picoseconds.
120 Weight::from_parts(21_415_013, 10119)
81 // Standard Error: 0121 // Standard Error: 4_086
82 .saturating_add(Weight::from_ref_time(198_000 as u64).saturating_mul(c as u64))122 .saturating_add(Weight::from_parts(252_810, 0).saturating_mul(c.into()))
83 .saturating_add(T::DbWeight::get().reads(4 as u64))123 .saturating_add(T::DbWeight::get().reads(5_u64))
84 .saturating_add(T::DbWeight::get().writes(2 as u64))124 .saturating_add(T::DbWeight::get().writes(2_u64))
85 }125 }
86 fn offboard(c: u32) -> Weight {126 /// Storage: CollatorSelection Candidates (r:1 w:1)
127 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
128 /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
129 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
130 /// The range of component `c` is `[1, 10]`.
131 fn offboard(c: u32, ) -> Weight {
87 Weight::from_ref_time(55_336_000 as u64)132 // Proof Size summary in bytes:
133 // Measured: `111 + c * (32 ±0)`
134 // Estimated: `1806`
135 // Minimum execution time: 10_543_000 picoseconds.
136 Weight::from_parts(11_227_541, 1806)
88 // Standard Error: 0137 // Standard Error: 1_699
89 .saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))138 .saturating_add(Weight::from_parts(181_030, 0).saturating_mul(c.into()))
90 .saturating_add(T::DbWeight::get().reads(1 as u64))139 .saturating_add(T::DbWeight::get().reads(1_u64))
91 .saturating_add(T::DbWeight::get().writes(2 as u64))140 .saturating_add(T::DbWeight::get().writes(2_u64))
92 }141 }
93 fn release_license(c: u32) -> Weight {142 /// Storage: CollatorSelection Candidates (r:1 w:1)
143 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
144 /// Storage: CollatorSelection LicenseDepositOf (r:1 w:1)
145 /// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
146 /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
147 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
148 /// The range of component `c` is `[1, 10]`.
149 fn release_license(c: u32, ) -> Weight {
94 Weight::from_ref_time(55_336_000 as u64)150 // Proof Size summary in bytes:
151 // Measured: `306 + c * (61 ±0)`
152 // Estimated: `5335`
153 // Minimum execution time: 22_214_000 picoseconds.
154 Weight::from_parts(24_373_981, 5335)
95 // Standard Error: 0155 // Standard Error: 8_018
96 .saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))156 .saturating_add(Weight::from_parts(405_404, 0).saturating_mul(c.into()))
97 .saturating_add(T::DbWeight::get().reads(1 as u64))157 .saturating_add(T::DbWeight::get().reads(2_u64))
98 .saturating_add(T::DbWeight::get().writes(2 as u64))158 .saturating_add(T::DbWeight::get().writes(3_u64))
99 }159 }
100 fn force_release_license(c: u32) -> Weight {160 /// Storage: CollatorSelection Candidates (r:1 w:1)
161 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
162 /// Storage: CollatorSelection LicenseDepositOf (r:1 w:1)
163 /// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
164 /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
165 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
166 /// The range of component `c` is `[1, 10]`.
167 fn force_release_license(c: u32, ) -> Weight {
101 Weight::from_ref_time(55_336_000 as u64)168 // Proof Size summary in bytes:
169 // Measured: `306 + c * (61 ±0)`
170 // Estimated: `5335`
171 // Minimum execution time: 22_159_000 picoseconds.
172 Weight::from_parts(24_200_796, 5335)
102 // Standard Error: 0173 // Standard Error: 8_328
103 .saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))174 .saturating_add(Weight::from_parts(312_138, 0).saturating_mul(c.into()))
104 .saturating_add(T::DbWeight::get().reads(1 as u64))175 .saturating_add(T::DbWeight::get().reads(2_u64))
105 .saturating_add(T::DbWeight::get().writes(2 as u64))176 .saturating_add(T::DbWeight::get().writes(3_u64))
106 }177 }
178 /// Storage: System Account (r:2 w:2)
179 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
180 /// Storage: System BlockWeight (r:1 w:1)
181 /// Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
182 /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
183 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
107 fn note_author() -> Weight {184 fn note_author() -> Weight {
108 Weight::from_ref_time(71_461_000 as u64)185 // Proof Size summary in bytes:
186 // Measured: `155`
187 // Estimated: `7729`
188 // Minimum execution time: 16_520_000 picoseconds.
189 Weight::from_parts(16_933_000, 7729)
109 .saturating_add(T::DbWeight::get().reads(3 as u64))190 .saturating_add(T::DbWeight::get().reads(3_u64))
110 .saturating_add(T::DbWeight::get().writes(4 as u64))191 .saturating_add(T::DbWeight::get().writes(4_u64))
111 }192 }
112 fn new_session(r: u32, c: u32) -> Weight {193 /// Storage: CollatorSelection Candidates (r:1 w:0)
194 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
113 Weight::from_ref_time(0 as u64)195 /// Storage: Configuration CollatorSelectionKickThresholdOverride (r:1 w:0)
196 /// Proof: Configuration CollatorSelectionKickThresholdOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
197 /// Storage: CollatorSelection LastAuthoredBlock (r:10 w:0)
198 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
114 // Standard Error: 1_010_000199 /// Storage: CollatorSelection Invulnerables (r:1 w:0)
200 /// Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
201 /// Storage: System BlockWeight (r:1 w:1)
115 .saturating_add(Weight::from_ref_time(109_961_000 as u64).saturating_mul(r as u64))202 /// Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
203 /// Storage: CollatorSelection LicenseDepositOf (r:9 w:9)
204 /// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
205 /// Storage: System Account (r:10 w:10)
206 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
207 /// The range of component `r` is `[1, 10]`.
208 /// The range of component `c` is `[1, 10]`.
209 fn new_session(r: u32, c: u32, ) -> Weight {
210 // Proof Size summary in bytes:
211 // Measured: `562 + r * (190 ±0) + c * (83 ±0)`
212 // Estimated: `91818518943723 + c * (2519 ±0) + r * (5142 ±1)`
213 // Minimum execution time: 16_153_000 picoseconds.
214 Weight::from_parts(16_601_000, 91818518943723)
116 // Standard Error: 1_010_000215 // Standard Error: 119_095
117 .saturating_add(Weight::from_ref_time(151_952_000 as u64).saturating_mul(c as u64))216 .saturating_add(Weight::from_parts(10_660_813, 0).saturating_mul(c.into()))
118 .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(r as u64)))217 .saturating_add(T::DbWeight::get().reads(5_u64))
119 .saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(c as u64)))218 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))
120 .saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(r as u64)))219 .saturating_add(T::DbWeight::get().writes(1_u64))
121 .saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(c as u64)))220 .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into())))
221 .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into()))
222 .saturating_add(Weight::from_parts(0, 5142).saturating_mul(r.into()))
122 }223 }
123}224}
124225
125// For backwards compatibility and tests226// For backwards compatibility and tests
126impl WeightInfo for () {227impl WeightInfo for () {
127 fn add_invulnerable(b: u32) -> Weight {228 /// Storage: Session NextKeys (r:1 w:0)
229 /// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
230 /// Storage: CollatorSelection Invulnerables (r:1 w:1)
231 /// Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
232 /// Storage: CollatorSelection Candidates (r:1 w:0)
233 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
234 /// The range of component `b` is `[1, 7]`.
235 fn add_invulnerable(b: u32, ) -> Weight {
128 Weight::from_ref_time(18_563_000 as u64)236 // Proof Size summary in bytes:
237 // Measured: `403 + b * (45 ±0)`
238 // Estimated: `7485 + b * (45 ±0)`
129 // Standard Error: 0239 // Minimum execution time: 14_147_000 picoseconds.
240 Weight::from_parts(15_313_627, 7485)
241 // Standard Error: 1_744
130 .saturating_add(Weight::from_ref_time(68_000 as u64).saturating_mul(b as u64))242 .saturating_add(Weight::from_parts(178_890, 0).saturating_mul(b.into()))
131 .saturating_add(RocksDbWeight::get().writes(1 as u64))243 .saturating_add(RocksDbWeight::get().reads(3_u64))
244 .saturating_add(RocksDbWeight::get().writes(1_u64))
245 .saturating_add(Weight::from_parts(0, 45).saturating_mul(b.into()))
132 }246 }
133 fn remove_invulnerable(b: u32) -> Weight {247 /// Storage: CollatorSelection Invulnerables (r:1 w:1)
248 /// Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
249 /// The range of component `b` is `[1, 7]`.
250 fn remove_invulnerable(b: u32, ) -> Weight {
134 Weight::from_ref_time(18_563_000 as u64)251 // Proof Size summary in bytes:
252 // Measured: `96 + b * (32 ±0)`
253 // Estimated: `1806`
254 // Minimum execution time: 9_426_000 picoseconds.
255 Weight::from_parts(9_693_408, 1806)
135 // Standard Error: 0256 // Standard Error: 1_638
136 .saturating_add(Weight::from_ref_time(68_000 as u64).saturating_mul(b as u64))257 .saturating_add(Weight::from_parts(227_917, 0).saturating_mul(b.into()))
137 .saturating_add(RocksDbWeight::get().writes(1 as u64))258 .saturating_add(RocksDbWeight::get().reads(1_u64))
259 .saturating_add(RocksDbWeight::get().writes(1_u64))
138 }260 }
139 fn get_license(c: u32) -> Weight {261 /// Storage: CollatorSelection LicenseDepositOf (r:1 w:1)
262 /// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
263 /// Storage: Session NextKeys (r:1 w:0)
264 /// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
265 /// Storage: Configuration CollatorSelectionLicenseBondOverride (r:1 w:0)
266 /// Proof: Configuration CollatorSelectionLicenseBondOverride (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
267 /// The range of component `c` is `[1, 9]`.
268 fn get_license(c: u32, ) -> Weight {
140 Weight::from_ref_time(71_196_000 as u64)269 // Proof Size summary in bytes:
270 // Measured: `610 + c * (26 ±0)`
271 // Estimated: `9099 + c * (28 ±0)`
141 // Standard Error: 0272 // Minimum execution time: 22_741_000 picoseconds.
273 Weight::from_parts(24_210_604, 9099)
274 // Standard Error: 2_703
142 .saturating_add(Weight::from_ref_time(198_000 as u64).saturating_mul(c as u64))275 .saturating_add(Weight::from_parts(255_686, 0).saturating_mul(c.into()))
143 .saturating_add(RocksDbWeight::get().reads(4 as u64))276 .saturating_add(RocksDbWeight::get().reads(3_u64))
144 .saturating_add(RocksDbWeight::get().writes(2 as u64))277 .saturating_add(RocksDbWeight::get().writes(1_u64))
278 .saturating_add(Weight::from_parts(0, 28).saturating_mul(c.into()))
145 }279 }
146 fn onboard(c: u32) -> Weight {280 /// Storage: CollatorSelection LicenseDepositOf (r:1 w:0)
281 /// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
282 /// Storage: CollatorSelection Candidates (r:1 w:1)
283 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
284 /// Storage: CollatorSelection Invulnerables (r:1 w:0)
285 /// Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
286 /// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:1 w:0)
287 /// Proof: Configuration CollatorSelectionDesiredCollatorsOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
288 /// Storage: Configuration CollatorSelectionKickThresholdOverride (r:1 w:0)
289 /// Proof: Configuration CollatorSelectionKickThresholdOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
290 /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
291 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
292 /// The range of component `c` is `[1, 7]`.
293 fn onboard(c: u32, ) -> Weight {
147 Weight::from_ref_time(71_196_000 as u64)294 // Proof Size summary in bytes:
295 // Measured: `445 + c * (54 ±0)`
296 // Estimated: `10119`
297 // Minimum execution time: 20_397_000 picoseconds.
298 Weight::from_parts(21_415_013, 10119)
148 // Standard Error: 0299 // Standard Error: 4_086
149 .saturating_add(Weight::from_ref_time(198_000 as u64).saturating_mul(c as u64))300 .saturating_add(Weight::from_parts(252_810, 0).saturating_mul(c.into()))
150 .saturating_add(RocksDbWeight::get().reads(4 as u64))301 .saturating_add(RocksDbWeight::get().reads(5_u64))
151 .saturating_add(RocksDbWeight::get().writes(2 as u64))302 .saturating_add(RocksDbWeight::get().writes(2_u64))
152 }303 }
153 fn offboard(c: u32) -> Weight {304 /// Storage: CollatorSelection Candidates (r:1 w:1)
305 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
306 /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
307 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
308 /// The range of component `c` is `[1, 10]`.
309 fn offboard(c: u32, ) -> Weight {
154 Weight::from_ref_time(55_336_000 as u64)310 // Proof Size summary in bytes:
311 // Measured: `111 + c * (32 ±0)`
312 // Estimated: `1806`
313 // Minimum execution time: 10_543_000 picoseconds.
314 Weight::from_parts(11_227_541, 1806)
155 // Standard Error: 0315 // Standard Error: 1_699
156 .saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))316 .saturating_add(Weight::from_parts(181_030, 0).saturating_mul(c.into()))
157 .saturating_add(RocksDbWeight::get().reads(1 as u64))317 .saturating_add(RocksDbWeight::get().reads(1_u64))
158 .saturating_add(RocksDbWeight::get().writes(2 as u64))318 .saturating_add(RocksDbWeight::get().writes(2_u64))
159 }319 }
160 fn release_license(c: u32) -> Weight {320 /// Storage: CollatorSelection Candidates (r:1 w:1)
321 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
322 /// Storage: CollatorSelection LicenseDepositOf (r:1 w:1)
323 /// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
324 /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
325 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
326 /// The range of component `c` is `[1, 10]`.
327 fn release_license(c: u32, ) -> Weight {
161 Weight::from_ref_time(55_336_000 as u64)328 // Proof Size summary in bytes:
329 // Measured: `306 + c * (61 ±0)`
330 // Estimated: `5335`
331 // Minimum execution time: 22_214_000 picoseconds.
332 Weight::from_parts(24_373_981, 5335)
162 // Standard Error: 0333 // Standard Error: 8_018
163 .saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))334 .saturating_add(Weight::from_parts(405_404, 0).saturating_mul(c.into()))
164 .saturating_add(RocksDbWeight::get().reads(1 as u64))335 .saturating_add(RocksDbWeight::get().reads(2_u64))
165 .saturating_add(RocksDbWeight::get().writes(2 as u64))336 .saturating_add(RocksDbWeight::get().writes(3_u64))
166 }337 }
167 fn force_release_license(c: u32) -> Weight {338 /// Storage: CollatorSelection Candidates (r:1 w:1)
339 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
340 /// Storage: CollatorSelection LicenseDepositOf (r:1 w:1)
341 /// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
342 /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
343 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
344 /// The range of component `c` is `[1, 10]`.
345 fn force_release_license(c: u32, ) -> Weight {
168 Weight::from_ref_time(55_336_000 as u64)346 // Proof Size summary in bytes:
347 // Measured: `306 + c * (61 ±0)`
348 // Estimated: `5335`
349 // Minimum execution time: 22_159_000 picoseconds.
350 Weight::from_parts(24_200_796, 5335)
169 // Standard Error: 0351 // Standard Error: 8_328
170 .saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))352 .saturating_add(Weight::from_parts(312_138, 0).saturating_mul(c.into()))
171 .saturating_add(RocksDbWeight::get().reads(1 as u64))353 .saturating_add(RocksDbWeight::get().reads(2_u64))
172 .saturating_add(RocksDbWeight::get().writes(2 as u64))354 .saturating_add(RocksDbWeight::get().writes(3_u64))
173 }355 }
356 /// Storage: System Account (r:2 w:2)
357 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
358 /// Storage: System BlockWeight (r:1 w:1)
359 /// Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
360 /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
361 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
174 fn note_author() -> Weight {362 fn note_author() -> Weight {
175 Weight::from_ref_time(71_461_000 as u64)363 // Proof Size summary in bytes:
364 // Measured: `155`
365 // Estimated: `7729`
366 // Minimum execution time: 16_520_000 picoseconds.
367 Weight::from_parts(16_933_000, 7729)
176 .saturating_add(RocksDbWeight::get().reads(3 as u64))368 .saturating_add(RocksDbWeight::get().reads(3_u64))
177 .saturating_add(RocksDbWeight::get().writes(4 as u64))369 .saturating_add(RocksDbWeight::get().writes(4_u64))
178 }370 }
179 fn new_session(r: u32, c: u32) -> Weight {371 /// Storage: CollatorSelection Candidates (r:1 w:0)
372 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
180 Weight::from_ref_time(0 as u64)373 /// Storage: Configuration CollatorSelectionKickThresholdOverride (r:1 w:0)
374 /// Proof: Configuration CollatorSelectionKickThresholdOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
375 /// Storage: CollatorSelection LastAuthoredBlock (r:10 w:0)
376 /// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
181 // Standard Error: 1_010_000377 /// Storage: CollatorSelection Invulnerables (r:1 w:0)
378 /// Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
379 /// Storage: System BlockWeight (r:1 w:1)
182 .saturating_add(Weight::from_ref_time(109_961_000 as u64).saturating_mul(r as u64))380 /// Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
381 /// Storage: CollatorSelection LicenseDepositOf (r:9 w:9)
382 /// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
383 /// Storage: System Account (r:10 w:10)
384 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
385 /// The range of component `r` is `[1, 10]`.
386 /// The range of component `c` is `[1, 10]`.
387 fn new_session(r: u32, c: u32, ) -> Weight {
388 // Proof Size summary in bytes:
389 // Measured: `562 + r * (190 ±0) + c * (83 ±0)`
390 // Estimated: `91818518943723 + c * (2519 ±0) + r * (5142 ±1)`
391 // Minimum execution time: 16_153_000 picoseconds.
392 Weight::from_parts(16_601_000, 91818518943723)
183 // Standard Error: 1_010_000393 // Standard Error: 119_095
184 .saturating_add(Weight::from_ref_time(151_952_000 as u64).saturating_mul(c as u64))394 .saturating_add(Weight::from_parts(10_660_813, 0).saturating_mul(c.into()))
185 .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(r as u64)))395 .saturating_add(RocksDbWeight::get().reads(5_u64))
186 .saturating_add(RocksDbWeight::get().reads((2 as u64).saturating_mul(c as u64)))396 .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(c.into())))
187 .saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(r as u64)))397 .saturating_add(RocksDbWeight::get().writes(1_u64))
398 .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(c.into())))
188 .saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(c as u64)))399 .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into()))
400 .saturating_add(Weight::from_parts(0, 5142).saturating_mul(r.into()))
189 }401 }
190}402}
403
191404