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 29.0.06//! DATE: 2023-11-29, 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: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// ./target/production/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: `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 `[2, 8]`.57 fn add_invulnerable(b: u32, ) -> Weight {58 // Proof Size summary in bytes:59 // Measured: `358 + b * (45 ±0)`60 // Estimated: `3829 + b * (45 ±0)`61 // Minimum execution time: 15_379_000 picoseconds.62 Weight::from_parts(15_670_195, 3829)63 // Standard Error: 1_27364 .saturating_add(Weight::from_parts(143_228, 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, 8]`.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_600_000 picoseconds.77 Weight::from_parts(9_897_671, 1806)78 // Standard Error: 1_13879 .saturating_add(Weight::from_parts(106_215, 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: `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 /// Storage: `Balances::Holds` (r:1 w:1)90 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)91 /// The range of component `c` is `[1, 10]`.92 fn get_license(c: u32, ) -> Weight {93 // Proof Size summary in bytes:94 // Measured: `655 + c * (47 ±0)`95 // Estimated: `4119 + c * (47 ±0)`96 // Minimum execution time: 46_035_000 picoseconds.97 Weight::from_parts(48_724_759, 4119)98 // Standard Error: 9_23699 .saturating_add(Weight::from_parts(471_224, 0).saturating_mul(c.into()))100 .saturating_add(T::DbWeight::get().reads(4_u64))101 .saturating_add(T::DbWeight::get().writes(2_u64))102 .saturating_add(Weight::from_parts(0, 47).saturating_mul(c.into()))103 }104 /// Storage: `CollatorSelection::LicenseDepositOf` (r:1 w:0)105 /// Proof: `CollatorSelection::LicenseDepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)106 /// Storage: `CollatorSelection::Candidates` (r:1 w:1)107 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)108 /// Storage: `CollatorSelection::Invulnerables` (r:1 w:0)109 /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)110 /// Storage: `Configuration::CollatorSelectionDesiredCollatorsOverride` (r:1 w:0)111 /// Proof: `Configuration::CollatorSelectionDesiredCollatorsOverride` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)112 /// Storage: `Configuration::CollatorSelectionKickThresholdOverride` (r:1 w:0)113 /// Proof: `Configuration::CollatorSelectionKickThresholdOverride` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)114 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1)115 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)116 /// The range of component `c` is `[2, 8]`.117 fn onboard(c: u32, ) -> Weight {118 // Proof Size summary in bytes:119 // Measured: `360 + c * (54 ±0)`120 // Estimated: `3529`121 // Minimum execution time: 20_287_000 picoseconds.122 Weight::from_parts(20_699_457, 3529)123 // Standard Error: 3_047124 .saturating_add(Weight::from_parts(220_727, 0).saturating_mul(c.into()))125 .saturating_add(T::DbWeight::get().reads(5_u64))126 .saturating_add(T::DbWeight::get().writes(2_u64))127 }128 /// Storage: `CollatorSelection::Candidates` (r:1 w:1)129 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)130 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1)131 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)132 /// The range of component `c` is `[1, 8]`.133 fn offboard(c: u32, ) -> Weight {134 // Proof Size summary in bytes:135 // Measured: `111 + c * (32 ±0)`136 // Estimated: `1806`137 // Minimum execution time: 11_323_000 picoseconds.138 Weight::from_parts(11_745_018, 1806)139 // Standard Error: 1_048140 .saturating_add(Weight::from_parts(138_658, 0).saturating_mul(c.into()))141 .saturating_add(T::DbWeight::get().reads(1_u64))142 .saturating_add(T::DbWeight::get().writes(2_u64))143 }144 /// Storage: `CollatorSelection::Candidates` (r:1 w:1)145 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)146 /// Storage: `CollatorSelection::LicenseDepositOf` (r:1 w:1)147 /// Proof: `CollatorSelection::LicenseDepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)148 /// Storage: `Balances::Holds` (r:1 w:1)149 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)150 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1)151 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)152 /// The range of component `c` is `[1, 8]`.153 fn release_license(c: u32, ) -> Weight {154 // Proof Size summary in bytes:155 // Measured: `313 + c * (103 ±0)`156 // Estimated: `3694`157 // Minimum execution time: 43_206_000 picoseconds.158 Weight::from_parts(44_367_374, 3694)159 // Standard Error: 8_686160 .saturating_add(Weight::from_parts(626_453, 0).saturating_mul(c.into()))161 .saturating_add(T::DbWeight::get().reads(3_u64))162 .saturating_add(T::DbWeight::get().writes(4_u64))163 }164 /// Storage: `CollatorSelection::Candidates` (r:1 w:1)165 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)166 /// Storage: `CollatorSelection::LicenseDepositOf` (r:1 w:1)167 /// Proof: `CollatorSelection::LicenseDepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)168 /// Storage: `Balances::Holds` (r:1 w:1)169 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)170 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1)171 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)172 /// The range of component `c` is `[1, 8]`.173 fn force_release_license(c: u32, ) -> Weight {174 // Proof Size summary in bytes:175 // Measured: `313 + c * (103 ±0)`176 // Estimated: `3694`177 // Minimum execution time: 42_557_000 picoseconds.178 Weight::from_parts(43_827_564, 3694)179 // Standard Error: 8_984180 .saturating_add(Weight::from_parts(639_240, 0).saturating_mul(c.into()))181 .saturating_add(T::DbWeight::get().reads(3_u64))182 .saturating_add(T::DbWeight::get().writes(4_u64))183 }184 /// Storage: `System::Account` (r:2 w:2)185 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)186 /// Storage: `System::BlockWeight` (r:1 w:1)187 /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`)188 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1)189 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)190 fn note_author() -> Weight {191 // Proof Size summary in bytes:192 // Measured: `155`193 // Estimated: `6196`194 // Minimum execution time: 36_824_000 picoseconds.195 Weight::from_parts(37_535_000, 6196)196 .saturating_add(T::DbWeight::get().reads(3_u64))197 .saturating_add(T::DbWeight::get().writes(4_u64))198 }199 /// Storage: `CollatorSelection::Candidates` (r:1 w:0)200 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)201 /// Storage: `Configuration::CollatorSelectionKickThresholdOverride` (r:1 w:0)202 /// Proof: `Configuration::CollatorSelectionKickThresholdOverride` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)203 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:8 w:0)204 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)205 /// Storage: `CollatorSelection::Invulnerables` (r:1 w:0)206 /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)207 /// Storage: `System::BlockWeight` (r:1 w:1)208 /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`)209 /// Storage: `CollatorSelection::LicenseDepositOf` (r:7 w:7)210 /// Proof: `CollatorSelection::LicenseDepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)211 /// Storage: `Balances::Holds` (r:7 w:7)212 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)213 /// Storage: `System::Account` (r:8 w:8)214 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)215 /// The range of component `r` is `[1, 8]`.216 /// The range of component `c` is `[1, 8]`.217 fn new_session(r: u32, c: u32, ) -> Weight {218 // Proof Size summary in bytes:219 // Measured: `725 + c * (84 ±0) + r * (239 ±0)`220 // Estimated: `26857 + c * (2519 ±0) + r * (2704 ±6)`221 // Minimum execution time: 15_578_000 picoseconds.222 Weight::from_parts(15_959_000, 26857)223 // Standard Error: 332_321224 .saturating_add(Weight::from_parts(25_325_449, 0).saturating_mul(c.into()))225 .saturating_add(T::DbWeight::get().reads(5_u64))226 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))227 .saturating_add(T::DbWeight::get().writes(1_u64))228 .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into())))229 .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into()))230 .saturating_add(Weight::from_parts(0, 2704).saturating_mul(r.into()))231 }232}233234// For backwards compatibility and tests235impl WeightInfo for () {236 /// Storage: `Session::NextKeys` (r:1 w:0)237 /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)238 /// Storage: `CollatorSelection::Invulnerables` (r:1 w:1)239 /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)240 /// Storage: `CollatorSelection::Candidates` (r:1 w:0)241 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)242 /// The range of component `b` is `[2, 8]`.243 fn add_invulnerable(b: u32, ) -> Weight {244 // Proof Size summary in bytes:245 // Measured: `358 + b * (45 ±0)`246 // Estimated: `3829 + b * (45 ±0)`247 // Minimum execution time: 15_379_000 picoseconds.248 Weight::from_parts(15_670_195, 3829)249 // Standard Error: 1_273250 .saturating_add(Weight::from_parts(143_228, 0).saturating_mul(b.into()))251 .saturating_add(RocksDbWeight::get().reads(3_u64))252 .saturating_add(RocksDbWeight::get().writes(1_u64))253 .saturating_add(Weight::from_parts(0, 45).saturating_mul(b.into()))254 }255 /// Storage: `CollatorSelection::Invulnerables` (r:1 w:1)256 /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)257 /// The range of component `b` is `[1, 8]`.258 fn remove_invulnerable(b: u32, ) -> Weight {259 // Proof Size summary in bytes:260 // Measured: `96 + b * (32 ±0)`261 // Estimated: `1806`262 // Minimum execution time: 9_600_000 picoseconds.263 Weight::from_parts(9_897_671, 1806)264 // Standard Error: 1_138265 .saturating_add(Weight::from_parts(106_215, 0).saturating_mul(b.into()))266 .saturating_add(RocksDbWeight::get().reads(1_u64))267 .saturating_add(RocksDbWeight::get().writes(1_u64))268 }269 /// Storage: `CollatorSelection::LicenseDepositOf` (r:1 w:1)270 /// Proof: `CollatorSelection::LicenseDepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)271 /// Storage: `Session::NextKeys` (r:1 w:0)272 /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)273 /// Storage: `Configuration::CollatorSelectionLicenseBondOverride` (r:1 w:0)274 /// Proof: `Configuration::CollatorSelectionLicenseBondOverride` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)275 /// Storage: `Balances::Holds` (r:1 w:1)276 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)277 /// The range of component `c` is `[1, 10]`.278 fn get_license(c: u32, ) -> Weight {279 // Proof Size summary in bytes:280 // Measured: `655 + c * (47 ±0)`281 // Estimated: `4119 + c * (47 ±0)`282 // Minimum execution time: 46_035_000 picoseconds.283 Weight::from_parts(48_724_759, 4119)284 // Standard Error: 9_236285 .saturating_add(Weight::from_parts(471_224, 0).saturating_mul(c.into()))286 .saturating_add(RocksDbWeight::get().reads(4_u64))287 .saturating_add(RocksDbWeight::get().writes(2_u64))288 .saturating_add(Weight::from_parts(0, 47).saturating_mul(c.into()))289 }290 /// Storage: `CollatorSelection::LicenseDepositOf` (r:1 w:0)291 /// Proof: `CollatorSelection::LicenseDepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)292 /// Storage: `CollatorSelection::Candidates` (r:1 w:1)293 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)294 /// Storage: `CollatorSelection::Invulnerables` (r:1 w:0)295 /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)296 /// Storage: `Configuration::CollatorSelectionDesiredCollatorsOverride` (r:1 w:0)297 /// Proof: `Configuration::CollatorSelectionDesiredCollatorsOverride` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)298 /// Storage: `Configuration::CollatorSelectionKickThresholdOverride` (r:1 w:0)299 /// Proof: `Configuration::CollatorSelectionKickThresholdOverride` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)300 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1)301 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)302 /// The range of component `c` is `[2, 8]`.303 fn onboard(c: u32, ) -> Weight {304 // Proof Size summary in bytes:305 // Measured: `360 + c * (54 ±0)`306 // Estimated: `3529`307 // Minimum execution time: 20_287_000 picoseconds.308 Weight::from_parts(20_699_457, 3529)309 // Standard Error: 3_047310 .saturating_add(Weight::from_parts(220_727, 0).saturating_mul(c.into()))311 .saturating_add(RocksDbWeight::get().reads(5_u64))312 .saturating_add(RocksDbWeight::get().writes(2_u64))313 }314 /// Storage: `CollatorSelection::Candidates` (r:1 w:1)315 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)316 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1)317 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)318 /// The range of component `c` is `[1, 8]`.319 fn offboard(c: u32, ) -> Weight {320 // Proof Size summary in bytes:321 // Measured: `111 + c * (32 ±0)`322 // Estimated: `1806`323 // Minimum execution time: 11_323_000 picoseconds.324 Weight::from_parts(11_745_018, 1806)325 // Standard Error: 1_048326 .saturating_add(Weight::from_parts(138_658, 0).saturating_mul(c.into()))327 .saturating_add(RocksDbWeight::get().reads(1_u64))328 .saturating_add(RocksDbWeight::get().writes(2_u64))329 }330 /// Storage: `CollatorSelection::Candidates` (r:1 w:1)331 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)332 /// Storage: `CollatorSelection::LicenseDepositOf` (r:1 w:1)333 /// Proof: `CollatorSelection::LicenseDepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)334 /// Storage: `Balances::Holds` (r:1 w:1)335 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)336 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1)337 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)338 /// The range of component `c` is `[1, 8]`.339 fn release_license(c: u32, ) -> Weight {340 // Proof Size summary in bytes:341 // Measured: `313 + c * (103 ±0)`342 // Estimated: `3694`343 // Minimum execution time: 43_206_000 picoseconds.344 Weight::from_parts(44_367_374, 3694)345 // Standard Error: 8_686346 .saturating_add(Weight::from_parts(626_453, 0).saturating_mul(c.into()))347 .saturating_add(RocksDbWeight::get().reads(3_u64))348 .saturating_add(RocksDbWeight::get().writes(4_u64))349 }350 /// Storage: `CollatorSelection::Candidates` (r:1 w:1)351 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)352 /// Storage: `CollatorSelection::LicenseDepositOf` (r:1 w:1)353 /// Proof: `CollatorSelection::LicenseDepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)354 /// Storage: `Balances::Holds` (r:1 w:1)355 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)356 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1)357 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)358 /// The range of component `c` is `[1, 8]`.359 fn force_release_license(c: u32, ) -> Weight {360 // Proof Size summary in bytes:361 // Measured: `313 + c * (103 ±0)`362 // Estimated: `3694`363 // Minimum execution time: 42_557_000 picoseconds.364 Weight::from_parts(43_827_564, 3694)365 // Standard Error: 8_984366 .saturating_add(Weight::from_parts(639_240, 0).saturating_mul(c.into()))367 .saturating_add(RocksDbWeight::get().reads(3_u64))368 .saturating_add(RocksDbWeight::get().writes(4_u64))369 }370 /// Storage: `System::Account` (r:2 w:2)371 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)372 /// Storage: `System::BlockWeight` (r:1 w:1)373 /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`)374 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1)375 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)376 fn note_author() -> Weight {377 // Proof Size summary in bytes:378 // Measured: `155`379 // Estimated: `6196`380 // Minimum execution time: 36_824_000 picoseconds.381 Weight::from_parts(37_535_000, 6196)382 .saturating_add(RocksDbWeight::get().reads(3_u64))383 .saturating_add(RocksDbWeight::get().writes(4_u64))384 }385 /// Storage: `CollatorSelection::Candidates` (r:1 w:0)386 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)387 /// Storage: `Configuration::CollatorSelectionKickThresholdOverride` (r:1 w:0)388 /// Proof: `Configuration::CollatorSelectionKickThresholdOverride` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)389 /// Storage: `CollatorSelection::LastAuthoredBlock` (r:8 w:0)390 /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)391 /// Storage: `CollatorSelection::Invulnerables` (r:1 w:0)392 /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(321), added: 816, mode: `MaxEncodedLen`)393 /// Storage: `System::BlockWeight` (r:1 w:1)394 /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`)395 /// Storage: `CollatorSelection::LicenseDepositOf` (r:7 w:7)396 /// Proof: `CollatorSelection::LicenseDepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)397 /// Storage: `Balances::Holds` (r:7 w:7)398 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)399 /// Storage: `System::Account` (r:8 w:8)400 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)401 /// The range of component `r` is `[1, 8]`.402 /// The range of component `c` is `[1, 8]`.403 fn new_session(r: u32, c: u32, ) -> Weight {404 // Proof Size summary in bytes:405 // Measured: `725 + c * (84 ±0) + r * (239 ±0)`406 // Estimated: `26857 + c * (2519 ±0) + r * (2704 ±6)`407 // Minimum execution time: 15_578_000 picoseconds.408 Weight::from_parts(15_959_000, 26857)409 // Standard Error: 332_321410 .saturating_add(Weight::from_parts(25_325_449, 0).saturating_mul(c.into()))411 .saturating_add(RocksDbWeight::get().reads(5_u64))412 .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(c.into())))413 .saturating_add(RocksDbWeight::get().writes(1_u64))414 .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(c.into())))415 .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into()))416 .saturating_add(Weight::from_parts(0, 2704).saturating_mul(r.into()))417 }418}419difftreelog
source
pallets/collator-selection/src/weights.rs23.6 KiBsourcehistory