1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_collator_selection4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`9//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// target/release/unique-collator13// benchmark14// pallet15// --pallet16// pallet-collator-selection17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=8024// --heap-pages=409625// --output=./pallets/collator-selection/src/weights.rs2627#![cfg_attr(rustfmt, rustfmt_skip)]28#![allow(unused_parens)]29#![allow(unused_imports)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_collator_selection.35pub trait WeightInfo {36 fn add_invulnerable(b: u32, ) -> Weight;37 fn remove_invulnerable(b: u32, ) -> Weight;38 fn get_license(c: u32, ) -> Weight;39 fn onboard(c: u32, ) -> Weight;40 fn offboard(c: u32, ) -> Weight;41 fn release_license(c: u32, ) -> Weight;42 fn force_release_license(c: u32, ) -> Weight;43 fn note_author() -> Weight;44 fn new_session(r: u32, c: u32, ) -> Weight;45}4647/// Weights for pallet_collator_selection using the Substrate node and recommended hardware.48pub struct SubstrateWeight<T>(PhantomData<T>);49impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {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 {58 // Proof Size summary in bytes:59 // Measured: `403 + b * (45 ±0)`60 // Estimated: `7485 + b * (45 ±0)`61 // Minimum execution time: 14_147_000 picoseconds.62 Weight::from_parts(15_313_627, 7485)63 // Standard Error: 1_74464 .saturating_add(Weight::from_parts(178_890, 0).saturating_mul(b.into()))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()))68 }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 {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)78 // Standard Error: 1_63879 .saturating_add(Weight::from_parts(227_917, 0).saturating_mul(b.into()))80 .saturating_add(T::DbWeight::get().reads(1_u64))81 .saturating_add(T::DbWeight::get().writes(1_u64))82 }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 {91 // Proof Size summary in bytes:92 // Measured: `610 + c * (26 ±0)`93 // Estimated: `9099 + c * (28 ±0)`94 // Minimum execution time: 22_741_000 picoseconds.95 Weight::from_parts(24_210_604, 9099)96 // Standard Error: 2_70397 .saturating_add(Weight::from_parts(255_686, 0).saturating_mul(c.into()))98 .saturating_add(T::DbWeight::get().reads(3_u64))99 .saturating_add(T::DbWeight::get().writes(1_u64))100 .saturating_add(Weight::from_parts(0, 28).saturating_mul(c.into()))101 }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 {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)121 // Standard Error: 4_086122 .saturating_add(Weight::from_parts(252_810, 0).saturating_mul(c.into()))123 .saturating_add(T::DbWeight::get().reads(5_u64))124 .saturating_add(T::DbWeight::get().writes(2_u64))125 }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 {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)137 // Standard Error: 1_699138 .saturating_add(Weight::from_parts(181_030, 0).saturating_mul(c.into()))139 .saturating_add(T::DbWeight::get().reads(1_u64))140 .saturating_add(T::DbWeight::get().writes(2_u64))141 }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 {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)155 // Standard Error: 8_018156 .saturating_add(Weight::from_parts(405_404, 0).saturating_mul(c.into()))157 .saturating_add(T::DbWeight::get().reads(2_u64))158 .saturating_add(T::DbWeight::get().writes(3_u64))159 }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 {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)173 // Standard Error: 8_328174 .saturating_add(Weight::from_parts(312_138, 0).saturating_mul(c.into()))175 .saturating_add(T::DbWeight::get().reads(2_u64))176 .saturating_add(T::DbWeight::get().writes(3_u64))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)184 fn note_author() -> Weight {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)190 .saturating_add(T::DbWeight::get().reads(3_u64))191 .saturating_add(T::DbWeight::get().writes(4_u64))192 }193 /// Storage: CollatorSelection Candidates (r:1 w:0)194 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)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)199 /// 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)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)215 // Standard Error: 119_095216 .saturating_add(Weight::from_parts(10_660_813, 0).saturating_mul(c.into()))217 .saturating_add(T::DbWeight::get().reads(5_u64))218 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))219 .saturating_add(T::DbWeight::get().writes(1_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()))223 }224}225226// For backwards compatibility and tests227impl WeightInfo for () {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 {236 // Proof Size summary in bytes:237 // Measured: `403 + b * (45 ±0)`238 // Estimated: `7485 + b * (45 ±0)`239 // Minimum execution time: 14_147_000 picoseconds.240 Weight::from_parts(15_313_627, 7485)241 // Standard Error: 1_744242 .saturating_add(Weight::from_parts(178_890, 0).saturating_mul(b.into()))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()))246 }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 {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)256 // Standard Error: 1_638257 .saturating_add(Weight::from_parts(227_917, 0).saturating_mul(b.into()))258 .saturating_add(RocksDbWeight::get().reads(1_u64))259 .saturating_add(RocksDbWeight::get().writes(1_u64))260 }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 {269 // Proof Size summary in bytes:270 // Measured: `610 + c * (26 ±0)`271 // Estimated: `9099 + c * (28 ±0)`272 // Minimum execution time: 22_741_000 picoseconds.273 Weight::from_parts(24_210_604, 9099)274 // Standard Error: 2_703275 .saturating_add(Weight::from_parts(255_686, 0).saturating_mul(c.into()))276 .saturating_add(RocksDbWeight::get().reads(3_u64))277 .saturating_add(RocksDbWeight::get().writes(1_u64))278 .saturating_add(Weight::from_parts(0, 28).saturating_mul(c.into()))279 }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 {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)299 // Standard Error: 4_086300 .saturating_add(Weight::from_parts(252_810, 0).saturating_mul(c.into()))301 .saturating_add(RocksDbWeight::get().reads(5_u64))302 .saturating_add(RocksDbWeight::get().writes(2_u64))303 }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 {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)315 // Standard Error: 1_699316 .saturating_add(Weight::from_parts(181_030, 0).saturating_mul(c.into()))317 .saturating_add(RocksDbWeight::get().reads(1_u64))318 .saturating_add(RocksDbWeight::get().writes(2_u64))319 }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 {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)333 // Standard Error: 8_018334 .saturating_add(Weight::from_parts(405_404, 0).saturating_mul(c.into()))335 .saturating_add(RocksDbWeight::get().reads(2_u64))336 .saturating_add(RocksDbWeight::get().writes(3_u64))337 }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 {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)351 // Standard Error: 8_328352 .saturating_add(Weight::from_parts(312_138, 0).saturating_mul(c.into()))353 .saturating_add(RocksDbWeight::get().reads(2_u64))354 .saturating_add(RocksDbWeight::get().writes(3_u64))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)362 fn note_author() -> Weight {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)368 .saturating_add(RocksDbWeight::get().reads(3_u64))369 .saturating_add(RocksDbWeight::get().writes(4_u64))370 }371 /// Storage: CollatorSelection Candidates (r:1 w:0)372 /// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)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)377 /// 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)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)393 // Standard Error: 119_095394 .saturating_add(Weight::from_parts(10_660_813, 0).saturating_mul(c.into()))395 .saturating_add(RocksDbWeight::get().reads(5_u64))396 .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(c.into())))397 .saturating_add(RocksDbWeight::get().writes(1_u64))398 .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(c.into())))399 .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into()))400 .saturating_add(Weight::from_parts(0, 5142).saturating_mul(r.into()))401 }402}403difftreelog
source
pallets/collator-selection/src/weights.rs21.7 KiBsourcehistory