From 85b8603ca5dc47a14faad4b370c0ef32043538b1 Mon Sep 17 00:00:00 2001 From: Paolo La Camera Date: Mon, 19 Jan 2026 10:48:15 +0100 Subject: [PATCH 1/3] BACKPORT-CONFLICT --- .../src/weights/pallet_staking_async.rs | 536 ++++++++++++------ prdoc/pr_10802.prdoc | 15 + substrate/frame/benchmarking/src/utils.rs | 12 +- 3 files changed, 379 insertions(+), 184 deletions(-) create mode 100644 prdoc/pr_10802.prdoc diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs index 644c17ff88d80..8abbb42b12489 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs @@ -16,9 +16,15 @@ //! Autogenerated weights for `pallet_staking_async` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +<<<<<<< HEAD //! DATE: 2025-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `04e6bcf4596d`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +======= +//! DATE: 2026-01-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ad005bf13d98`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: @@ -50,6 +56,7 @@ use core::marker::PhantomData; /// Weight functions for `pallet_staking_async`. pub struct WeightInfo(PhantomData); impl pallet_staking_async::WeightInfo for WeightInfo { +<<<<<<< HEAD /// Storage: `Staking::Bonded` (r:1 w:1) /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) /// Storage: `Staking::Ledger` (r:1 w:1) @@ -207,33 +214,51 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 6696)) .saturating_add(T::DbWeight::get().reads(17)) .saturating_add(T::DbWeight::get().writes(11)) +======= + fn bond() -> Weight { + // Proof Size summary in bytes: + // Measured: `6793` + // Estimated: `0` + // Minimum execution time: 151_823_000 picoseconds. + Weight::from_parts(162_698_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn bond_extra() -> Weight { + // Proof Size summary in bytes: + // Measured: `8254` + // Estimated: `0` + // Minimum execution time: 9_824_370_000 picoseconds. + Weight::from_parts(13_177_169_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn unbond() -> Weight { + // Proof Size summary in bytes: + // Measured: `8415` + // Estimated: `0` + // Minimum execution time: 6_984_740_000 picoseconds. + Weight::from_parts(10_286_473_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn withdraw_unbonded_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `7393` + // Estimated: `0` + // Minimum execution time: 171_540_000 picoseconds. + Weight::from_parts(181_106_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn withdraw_unbonded_kill() -> Weight { + // Proof Size summary in bytes: + // Measured: `8340` + // Estimated: `0` + // Minimum execution time: 10_719_434_000 picoseconds. + Weight::from_parts(14_830_140_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinValidatorBond` (r:1 w:0) - /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinCommission` (r:1 w:0) - /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:1 w:1) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxValidatorsCount` (r:1 w:0) - /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:0) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:1 w:1) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:1 w:1) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) - /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::CounterForValidators` (r:1 w:1) - /// Proof: `Staking::CounterForValidators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn validate() -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `8771` // Estimated: `4218` // Minimum execution time: 102_777_000 picoseconds. @@ -241,16 +266,18 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 4218)) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(5)) +======= + // Measured: `9885` + // Estimated: `0` + // Minimum execution time: 155_256_000 picoseconds. + Weight::from_parts(161_416_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:128 w:128) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) /// The range of component `k` is `[1, 128]`. fn kick(k: u32, ) -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `12207 + k * (1121 ±0)` // Estimated: `4218 + k * (3033 ±0)` // Minimum execution time: 79_398_000 picoseconds. @@ -262,34 +289,20 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into()))) .saturating_add(Weight::from_parts(0, 3033).saturating_mul(k.into())) +======= + // Measured: `12187 + k * (1121 ±0)` + // Estimated: `0` + // Minimum execution time: 98_146_000 picoseconds. + Weight::from_parts(145_793_776, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 55_127 + .saturating_add(Weight::from_parts(17_280_864, 0).saturating_mul(k.into())) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:1 w:0) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:1) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0) - /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:17 w:0) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `Staking::CurrentEra` (r:1 w:0) - /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:2 w:2) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:1 w:1) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) - /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::CounterForNominators` (r:1 w:1) - /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 16]`. fn nominate(n: u32, ) -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `4995 + n * (68 ±0)` // Estimated: `6248 + n * (2520 ±0)` // Minimum execution time: 180_698_000 picoseconds. @@ -301,27 +314,19 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(6)) .saturating_add(Weight::from_parts(0, 2520).saturating_mul(n.into())) +======= + // Measured: `5074 + n * (68 ±0)` + // Estimated: `0` + // Minimum execution time: 3_951_847_000 picoseconds. + Weight::from_parts(11_093_536_278, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 12_371_015 + .saturating_add(Weight::from_parts(134_071_422, 0).saturating_mul(n.into())) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:1 w:0) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:1) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `Staking::CounterForNominators` (r:1 w:1) - /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:2 w:2) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:1 w:1) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) - /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn chill() -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `5237` // Estimated: `6248` // Minimum execution time: 170_702_000 picoseconds. @@ -329,15 +334,17 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 6248)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(6)) +======= + // Measured: `5217` + // Estimated: `0` + // Minimum execution time: 5_461_816_000 picoseconds. + Weight::from_parts(5_964_595_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Payee` (r:0 w:1) - /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn set_payee() -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `4060` // Estimated: `4218` // Minimum execution time: 38_367_000 picoseconds. @@ -345,15 +352,17 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 4218)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) +======= + // Measured: `4040` + // Estimated: `0` + // Minimum execution time: 57_034_000 picoseconds. + Weight::from_parts(61_302_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Payee` (r:1 w:1) - /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn update_payee() -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `5732` // Estimated: `4218` // Minimum execution time: 48_642_000 picoseconds. @@ -361,13 +370,17 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 4218)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) +======= + // Measured: `5712` + // Estimated: `0` + // Minimum execution time: 73_677_000 picoseconds. + Weight::from_parts(75_535_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::Bonded` (r:1 w:1) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:2 w:2) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) fn set_controller() -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `5370` // Estimated: `7446` // Minimum execution time: 49_900_000 picoseconds. @@ -375,51 +388,67 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 7446)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) +======= + // Measured: `5383` + // Estimated: `0` + // Minimum execution time: 73_550_000 picoseconds. + Weight::from_parts(77_231_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::ValidatorCount` (r:0 w:1) - /// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_validator_count() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` +<<<<<<< HEAD // Minimum execution time: 2_517_000 picoseconds. Weight::from_parts(2_842_000, 0) +======= + // Minimum execution time: 3_820_000 picoseconds. + Weight::from_parts(4_032_000, 0) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `Staking::ForceEra` (r:0 w:1) - /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn force_no_eras() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` +<<<<<<< HEAD // Minimum execution time: 14_680_000 picoseconds. Weight::from_parts(15_760_000, 0) +======= + // Minimum execution time: 20_612_000 picoseconds. + Weight::from_parts(22_653_000, 0) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `Staking::ForceEra` (r:0 w:1) - /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn force_new_era() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` +<<<<<<< HEAD // Minimum execution time: 15_091_000 picoseconds. Weight::from_parts(15_838_000, 0) +======= + // Minimum execution time: 20_353_000 picoseconds. + Weight::from_parts(21_738_000, 0) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `Staking::ForceEra` (r:0 w:1) - /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn force_new_era_always() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` +<<<<<<< HEAD // Minimum execution time: 14_927_000 picoseconds. Weight::from_parts(16_114_000, 0) +======= + // Minimum execution time: 20_237_000 picoseconds. + Weight::from_parts(22_012_000, 0) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } +<<<<<<< HEAD /// Storage: `Staking::Invulnerables` (r:0 w:1) /// Proof: `Staking::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) /// The range of component `v` is `[0, 20]`. @@ -489,12 +518,31 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 6248)) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(12)) +======= + /// The range of component `u` is `[0, 751]`. + fn deprecate_controller_batch(u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `195432 + u * (1105 ±0)` + // Estimated: `0` + // Minimum execution time: 7_164_000 picoseconds. + Weight::from_parts(223_480_099, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 165_663 + .saturating_add(Weight::from_parts(60_652_060, 0).saturating_mul(u.into())) + } + fn force_unstake() -> Weight { + // Proof Size summary in bytes: + // Measured: `8285` + // Estimated: `0` + // Minimum execution time: 10_921_590_000 picoseconds. + Weight::from_parts(16_176_391_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::CancelledSlashes` (r:1 w:1) - /// Proof: `Staking::CancelledSlashes` (`max_values`: None, `max_size`: Some(36014), added: 38489, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 1000]`. fn cancel_deferred_slash(s: u32, ) -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `653` // Estimated: `39479` // Minimum execution time: 16_163_000 picoseconds. @@ -565,9 +613,31 @@ impl pallet_staking_async::WeightInfo for WeightInfo /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) /// Storage: `VoterList::ListBags` (r:2 w:2) /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) +======= + // Measured: `633` + // Estimated: `0` + // Minimum execution time: 21_117_000 picoseconds. + Weight::from_parts(21_937_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 8_007 + .saturating_add(Weight::from_parts(3_054_448, 0).saturating_mul(s.into())) + } + /// The range of component `n` is `[0, 64]`. + fn payout_stakers_alive_staked(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `32987 + n * (3657 ±0)` + // Estimated: `0` + // Minimum execution time: 6_909_131_000 picoseconds. + Weight::from_parts(20_652_651_092, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 8_042_660 + .saturating_add(Weight::from_parts(264_186_902, 0).saturating_mul(n.into())) + } +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) /// The range of component `l` is `[1, 32]`. fn rebond(l: u32, ) -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `8275 + l * (5 ±0)` // Estimated: `8877` // Minimum execution time: 241_410_000 picoseconds. @@ -630,10 +700,27 @@ impl pallet_staking_async::WeightInfo for WeightInfo /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Staking::MinNominatorBond` (r:0 w:1) /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) +======= + // Measured: `8255 + l * (5 ±0)` + // Estimated: `0` + // Minimum execution time: 6_909_067_000 picoseconds. + Weight::from_parts(10_699_364_610, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn reap_stash() -> Weight { + // Proof Size summary in bytes: + // Measured: `8348` + // Estimated: `0` + // Minimum execution time: 10_927_055_000 picoseconds. + Weight::from_parts(13_398_080_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) fn set_staking_configs_all_set() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` +<<<<<<< HEAD // Minimum execution time: 4_554_000 picoseconds. Weight::from_parts(4_900_000, 0) .saturating_add(Weight::from_parts(0, 0)) @@ -653,41 +740,30 @@ impl pallet_staking_async::WeightInfo for WeightInfo /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Staking::MinNominatorBond` (r:0 w:1) /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) +======= + // Minimum execution time: 8_168_000 picoseconds. + Weight::from_parts(8_893_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) fn set_staking_configs_all_remove() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` +<<<<<<< HEAD // Minimum execution time: 4_200_000 picoseconds. Weight::from_parts(4_453_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(7)) +======= + // Minimum execution time: 7_548_000 picoseconds. + Weight::from_parts(8_120_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:1) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `Staking::ChillThreshold` (r:1 w:0) - /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0) - /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::CounterForNominators` (r:1 w:1) - /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:1 w:0) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:1 w:0) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:2 w:2) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:1 w:1) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) - /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn chill_other() -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `5360` // Estimated: `6248` // Minimum execution time: 210_278_000 picoseconds. @@ -695,13 +771,17 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 6248)) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(6)) +======= + // Measured: `5350` + // Estimated: `0` + // Minimum execution time: 8_972_274_000 picoseconds. + Weight::from_parts(12_286_705_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::MinCommission` (r:1 w:0) - /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:1 w:1) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) fn force_apply_min_commission() -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `663` // Estimated: `3510` // Minimum execution time: 37_633_000 picoseconds. @@ -709,18 +789,28 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 3510)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) +======= + // Measured: `640` + // Estimated: `0` + // Minimum execution time: 57_429_000 picoseconds. + Weight::from_parts(67_310_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::MinCommission` (r:0 w:1) - /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_min_commission() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` +<<<<<<< HEAD // Minimum execution time: 2_570_000 picoseconds. Weight::from_parts(2_849_000, 0) +======= + // Minimum execution time: 3_827_000 picoseconds. + Weight::from_parts(4_098_000, 0) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } +<<<<<<< HEAD /// Storage: `System::Account` (r:1 w:0) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `Staking::VirtualStakers` (r:1 w:0) @@ -792,23 +882,38 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 210810)) .saturating_add(T::DbWeight::get().reads(457)) .saturating_add(T::DbWeight::get().writes(261)) +======= + fn restore_ledger() -> Weight { + // Proof Size summary in bytes: + // Measured: `6948` + // Estimated: `0` + // Minimum execution time: 109_614_000 picoseconds. + Weight::from_parts(114_855_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn migrate_currency() -> Weight { + // Proof Size summary in bytes: + // Measured: `7019` + // Estimated: `0` + // Minimum execution time: 162_554_000 picoseconds. + Weight::from_parts(169_846_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// The range of component `n` is `[0, 64]`. + fn apply_slash(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `27526 + n * (2979 ±0)` + // Estimated: `0` + // Minimum execution time: 7_428_074_000 picoseconds. + Weight::from_parts(19_830_764_737, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 7_880_082 + .saturating_add(Weight::from_parts(228_874_767, 0).saturating_mul(n.into())) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::ProcessingOffence` (r:1 w:1) - /// Proof: `Staking::ProcessingOffence` (`max_values`: Some(1), `max_size`: Some(85), added: 580, mode: `MaxEncodedLen`) - /// Storage: `Staking::OffenceQueueEras` (r:1 w:1) - /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(9), added: 504, mode: `MaxEncodedLen`) - /// Storage: `Staking::OffenceQueue` (r:2 w:1) - /// Proof: `Staking::OffenceQueue` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`) - /// Storage: `Staking::SlashRewardFraction` (r:1 w:0) - /// Proof: `Staking::SlashRewardFraction` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasStakersOverview` (r:1 w:0) - /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasStakersPaged` (r:1 w:0) - /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(3152), added: 5627, mode: `MaxEncodedLen`) - /// Storage: `Staking::UnappliedSlashes` (r:0 w:1) - /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(3231), added: 5706, mode: `MaxEncodedLen`) fn process_offence_queue() -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `3622` // Estimated: `6617` // Minimum execution time: 160_545_000 picoseconds. @@ -884,16 +989,37 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 39483)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(7)) +======= + // Measured: `3602` + // Estimated: `0` + // Minimum execution time: 5_027_278_000 picoseconds. + Weight::from_parts(12_923_992_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// The range of component `v` is `[2, 500]`. + fn rc_on_offence(v: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `667 + v * (96 ±0)` + // Estimated: `0` + // Minimum execution time: 3_997_424_000 picoseconds. + Weight::from_parts(28_149_718_556, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 1_586_636 + .saturating_add(Weight::from_parts(57_924_737, 0).saturating_mul(v.into())) + } + fn rc_on_session_report() -> Weight { + // Proof Size summary in bytes: + // Measured: `1190` + // Estimated: `0` + // Minimum execution time: 10_892_087_000 picoseconds. + Weight::from_parts(11_439_807_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:0) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ErasStakersPaged` (r:101 w:100) - /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(3152), added: 5627, mode: `Measured`) /// The range of component `v` is `[1, 1000]`. fn prune_era_stakers_paged(v: u32, ) -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `7932 + v * (3 ±0)` // Estimated: `258685 + v * (4 ±0)` // Minimum execution time: 177_161_000 picoseconds. @@ -904,16 +1030,20 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads(103)) .saturating_add(T::DbWeight::get().writes(100)) .saturating_add(Weight::from_parts(0, 4).saturating_mul(v.into())) +======= + // Measured: `7912 + v * (3 ±0)` + // Estimated: `0` + // Minimum execution time: 233_582_000 picoseconds. + Weight::from_parts(302_127_414, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 3_585 + .saturating_add(Weight::from_parts(83_794, 0).saturating_mul(v.into())) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:0) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ErasStakersOverview` (r:101 w:100) - /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `Measured`) /// The range of component `v` is `[1, 1000]`. fn prune_era_stakers_overview(v: u32, ) -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `8859` // Estimated: `203138 + v * (84 ±0)` // Minimum execution time: 45_108_000 picoseconds. @@ -924,16 +1054,20 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads(81)) .saturating_add(T::DbWeight::get().writes(79)) .saturating_add(Weight::from_parts(0, 84).saturating_mul(v.into())) +======= + // Measured: `7425` + // Estimated: `0` + // Minimum execution time: 57_623_000 picoseconds. + Weight::from_parts(308_108_210, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 9_129 + .saturating_add(Weight::from_parts(91_683, 0).saturating_mul(v.into())) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:0) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ErasValidatorPrefs` (r:101 w:100) - /// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `Measured`) /// The range of component `v` is `[1, 1000]`. fn prune_era_validator_prefs(v: u32, ) -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `5885` // Estimated: `200831 + v * (83 ±6)` // Minimum execution time: 44_850_000 picoseconds. @@ -944,16 +1078,20 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads(81)) .saturating_add(T::DbWeight::get().writes(79)) .saturating_add(Weight::from_parts(0, 83).saturating_mul(v.into())) +======= + // Measured: `5865` + // Estimated: `0` + // Minimum execution time: 53_173_000 picoseconds. + Weight::from_parts(278_592_462, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 8_591 + .saturating_add(Weight::from_parts(147_948, 0).saturating_mul(v.into())) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:0) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ClaimedRewards` (r:101 w:100) - /// Proof: `Staking::ClaimedRewards` (`max_values`: None, `max_size`: Some(1462), added: 3937, mode: `Measured`) /// The range of component `v` is `[1, 1000]`. fn prune_era_claimed_rewards(v: u32, ) -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `8859` // Estimated: `203138 + v * (84 ±0)` // Minimum execution time: 41_789_000 picoseconds. @@ -964,15 +1102,19 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads(81)) .saturating_add(T::DbWeight::get().writes(79)) .saturating_add(Weight::from_parts(0, 84).saturating_mul(v.into())) +======= + // Measured: `8873` + // Estimated: `0` + // Minimum execution time: 55_821_000 picoseconds. + Weight::from_parts(297_039_564, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 8_692 + .saturating_add(Weight::from_parts(122_602, 0).saturating_mul(v.into())) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:1) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ErasValidatorReward` (r:0 w:1) - /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`) fn prune_era_validator_reward() -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `809` // Estimated: `4274` // Minimum execution time: 32_432_000 picoseconds. @@ -980,15 +1122,17 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 4274)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) +======= + // Measured: `789` + // Estimated: `0` + // Minimum execution time: 42_821_000 picoseconds. + Weight::from_parts(46_037_000, 0) + .saturating_add(Weight::from_parts(0, 0)) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:1) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ErasRewardPoints` (r:0 w:1) - /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: Some(36018), added: 38493, mode: `Measured`) fn prune_era_reward_points() -> Weight { // Proof Size summary in bytes: +<<<<<<< HEAD // Measured: `809` // Estimated: `4274` // Minimum execution time: 32_296_000 picoseconds. @@ -1012,5 +1156,31 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 4274)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) +======= + // Measured: `789` + // Estimated: `0` + // Minimum execution time: 41_525_000 picoseconds. + Weight::from_parts(46_113_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn prune_era_single_entry_cleanups() -> Weight { + // Proof Size summary in bytes: + // Measured: `789` + // Estimated: `0` + // Minimum execution time: 45_910_000 picoseconds. + Weight::from_parts(48_324_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// The range of component `v` is `[1, 1000]`. + fn prune_era_validator_slash_in_era(v: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `5499 + v * (3 ±0)` + // Estimated: `0` + // Minimum execution time: 60_851_000 picoseconds. + Weight::from_parts(210_957_237, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 9_601 + .saturating_add(Weight::from_parts(206_498, 0).saturating_mul(v.into())) +>>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } } diff --git a/prdoc/pr_10802.prdoc b/prdoc/pr_10802.prdoc new file mode 100644 index 0000000000000..6163a8b6cf735 --- /dev/null +++ b/prdoc/pr_10802.prdoc @@ -0,0 +1,15 @@ +title: 'benchmarking: fix timing leak from bulk setup operations' +doc: +- audience: Runtime Dev + description: |- + Fixes timing leaks in benchmarks with large setup operations (e.g., clearing + 27k staking entries). After bulk deletions are committed, the first new allocation + can trigger memory allocator overhead that leaks into benchmark timing. + + The fix adds a memory allocator warmup step in `commit_db()` that performs a + dummy write/clear cycle to absorb this overhead before timing starts. +crates: +- name: frame-benchmarking + bump: patch +- name: asset-hub-westend-runtime + bump: patch diff --git a/substrate/frame/benchmarking/src/utils.rs b/substrate/frame/benchmarking/src/utils.rs index 0f0cc3558a1ff..c41c6a99854cd 100644 --- a/substrate/frame/benchmarking/src/utils.rs +++ b/substrate/frame/benchmarking/src/utils.rs @@ -289,7 +289,17 @@ pub trait Benchmarking { /// Commit pending storage changes to the trie database and clear the database cache. fn commit_db(&mut self) { - self.commit() + self.commit(); + + // Warmup the memory allocator after bulk deallocation. + // After draining the overlay with many entries, the first new allocation can trigger memory + // defragmentation. + const WARMUP_KEY: &[u8] = b":benchmark_warmup:"; + self.place_storage(WARMUP_KEY.to_vec(), Some(vec![0u8; 32])); + self.place_storage(WARMUP_KEY.to_vec(), None); + + // Reset tracking so warmup operations don't appear in benchmark results. + self.reset_read_write_count(); } /// Get the read/write count. From a67e81bd03b4ee3028d93dc0d7e5c254940ef693 Mon Sep 17 00:00:00 2001 From: Paolo La Camera Date: Mon, 19 Jan 2026 12:18:19 +0100 Subject: [PATCH 2/3] Reset staking weights to 2512 HEAD --- .../src/weights/pallet_staking_async.rs | 536 ++++++------------ 1 file changed, 183 insertions(+), 353 deletions(-) diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs index 8abbb42b12489..644c17ff88d80 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs @@ -16,15 +16,9 @@ //! Autogenerated weights for `pallet_staking_async` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -<<<<<<< HEAD //! DATE: 2025-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `04e6bcf4596d`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` -======= -//! DATE: 2026-01-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `ad005bf13d98`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: @@ -56,7 +50,6 @@ use core::marker::PhantomData; /// Weight functions for `pallet_staking_async`. pub struct WeightInfo(PhantomData); impl pallet_staking_async::WeightInfo for WeightInfo { -<<<<<<< HEAD /// Storage: `Staking::Bonded` (r:1 w:1) /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) /// Storage: `Staking::Ledger` (r:1 w:1) @@ -214,51 +207,33 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 6696)) .saturating_add(T::DbWeight::get().reads(17)) .saturating_add(T::DbWeight::get().writes(11)) -======= - fn bond() -> Weight { - // Proof Size summary in bytes: - // Measured: `6793` - // Estimated: `0` - // Minimum execution time: 151_823_000 picoseconds. - Weight::from_parts(162_698_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } - fn bond_extra() -> Weight { - // Proof Size summary in bytes: - // Measured: `8254` - // Estimated: `0` - // Minimum execution time: 9_824_370_000 picoseconds. - Weight::from_parts(13_177_169_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } - fn unbond() -> Weight { - // Proof Size summary in bytes: - // Measured: `8415` - // Estimated: `0` - // Minimum execution time: 6_984_740_000 picoseconds. - Weight::from_parts(10_286_473_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } - fn withdraw_unbonded_update() -> Weight { - // Proof Size summary in bytes: - // Measured: `7393` - // Estimated: `0` - // Minimum execution time: 171_540_000 picoseconds. - Weight::from_parts(181_106_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } - fn withdraw_unbonded_kill() -> Weight { - // Proof Size summary in bytes: - // Measured: `8340` - // Estimated: `0` - // Minimum execution time: 10_719_434_000 picoseconds. - Weight::from_parts(14_830_140_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::MinValidatorBond` (r:1 w:0) + /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Staking::MinCommission` (r:1 w:0) + /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Staking::Validators` (r:1 w:1) + /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `Staking::MaxValidatorsCount` (r:1 w:0) + /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Staking::Nominators` (r:1 w:0) + /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) + /// Storage: `VoterList::Lock` (r:1 w:0) + /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) + /// Storage: `VoterList::ListNodes` (r:1 w:1) + /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) + /// Storage: `VoterList::ListBags` (r:1 w:1) + /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) + /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Staking::CounterForValidators` (r:1 w:1) + /// Proof: `Staking::CounterForValidators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn validate() -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `8771` // Estimated: `4218` // Minimum execution time: 102_777_000 picoseconds. @@ -266,18 +241,16 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 4218)) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(5)) -======= - // Measured: `9885` - // Estimated: `0` - // Minimum execution time: 155_256_000 picoseconds. - Weight::from_parts(161_416_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Nominators` (r:128 w:128) + /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) /// The range of component `k` is `[1, 128]`. fn kick(k: u32, ) -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `12207 + k * (1121 ±0)` // Estimated: `4218 + k * (3033 ±0)` // Minimum execution time: 79_398_000 picoseconds. @@ -289,20 +262,34 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into()))) .saturating_add(Weight::from_parts(0, 3033).saturating_mul(k.into())) -======= - // Measured: `12187 + k * (1121 ±0)` - // Estimated: `0` - // Minimum execution time: 98_146_000 picoseconds. - Weight::from_parts(145_793_776, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 55_127 - .saturating_add(Weight::from_parts(17_280_864, 0).saturating_mul(k.into())) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::MinNominatorBond` (r:1 w:0) + /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Staking::Nominators` (r:1 w:1) + /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) + /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0) + /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Staking::Validators` (r:17 w:0) + /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `Staking::CurrentEra` (r:1 w:0) + /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `VoterList::Lock` (r:1 w:0) + /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) + /// Storage: `VoterList::ListNodes` (r:2 w:2) + /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) + /// Storage: `VoterList::ListBags` (r:1 w:1) + /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) + /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Staking::CounterForNominators` (r:1 w:1) + /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 16]`. fn nominate(n: u32, ) -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `4995 + n * (68 ±0)` // Estimated: `6248 + n * (2520 ±0)` // Minimum execution time: 180_698_000 picoseconds. @@ -314,19 +301,27 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(6)) .saturating_add(Weight::from_parts(0, 2520).saturating_mul(n.into())) -======= - // Measured: `5074 + n * (68 ±0)` - // Estimated: `0` - // Minimum execution time: 3_951_847_000 picoseconds. - Weight::from_parts(11_093_536_278, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 12_371_015 - .saturating_add(Weight::from_parts(134_071_422, 0).saturating_mul(n.into())) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Validators` (r:1 w:0) + /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `Staking::Nominators` (r:1 w:1) + /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) + /// Storage: `Staking::CounterForNominators` (r:1 w:1) + /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `VoterList::Lock` (r:1 w:0) + /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) + /// Storage: `VoterList::ListNodes` (r:2 w:2) + /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) + /// Storage: `VoterList::ListBags` (r:1 w:1) + /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) + /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn chill() -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `5237` // Estimated: `6248` // Minimum execution time: 170_702_000 picoseconds. @@ -334,17 +329,15 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 6248)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(6)) -======= - // Measured: `5217` - // Estimated: `0` - // Minimum execution time: 5_461_816_000 picoseconds. - Weight::from_parts(5_964_595_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Payee` (r:0 w:1) + /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn set_payee() -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `4060` // Estimated: `4218` // Minimum execution time: 38_367_000 picoseconds. @@ -352,17 +345,15 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 4218)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) -======= - // Measured: `4040` - // Estimated: `0` - // Minimum execution time: 57_034_000 picoseconds. - Weight::from_parts(61_302_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Payee` (r:1 w:1) + /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn update_payee() -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `5732` // Estimated: `4218` // Minimum execution time: 48_642_000 picoseconds. @@ -370,17 +361,13 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 4218)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) -======= - // Measured: `5712` - // Estimated: `0` - // Minimum execution time: 73_677_000 picoseconds. - Weight::from_parts(75_535_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::Bonded` (r:1 w:1) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Ledger` (r:2 w:2) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) fn set_controller() -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `5370` // Estimated: `7446` // Minimum execution time: 49_900_000 picoseconds. @@ -388,67 +375,51 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 7446)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) -======= - // Measured: `5383` - // Estimated: `0` - // Minimum execution time: 73_550_000 picoseconds. - Weight::from_parts(77_231_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::ValidatorCount` (r:0 w:1) + /// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_validator_count() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` -<<<<<<< HEAD // Minimum execution time: 2_517_000 picoseconds. Weight::from_parts(2_842_000, 0) -======= - // Minimum execution time: 3_820_000 picoseconds. - Weight::from_parts(4_032_000, 0) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Staking::ForceEra` (r:0 w:1) + /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn force_no_eras() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` -<<<<<<< HEAD // Minimum execution time: 14_680_000 picoseconds. Weight::from_parts(15_760_000, 0) -======= - // Minimum execution time: 20_612_000 picoseconds. - Weight::from_parts(22_653_000, 0) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Staking::ForceEra` (r:0 w:1) + /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn force_new_era() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` -<<<<<<< HEAD // Minimum execution time: 15_091_000 picoseconds. Weight::from_parts(15_838_000, 0) -======= - // Minimum execution time: 20_353_000 picoseconds. - Weight::from_parts(21_738_000, 0) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Staking::ForceEra` (r:0 w:1) + /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn force_new_era_always() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` -<<<<<<< HEAD // Minimum execution time: 14_927_000 picoseconds. Weight::from_parts(16_114_000, 0) -======= - // Minimum execution time: 20_237_000 picoseconds. - Weight::from_parts(22_012_000, 0) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) } -<<<<<<< HEAD /// Storage: `Staking::Invulnerables` (r:0 w:1) /// Proof: `Staking::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) /// The range of component `v` is `[0, 20]`. @@ -518,31 +489,12 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 6248)) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(12)) -======= - /// The range of component `u` is `[0, 751]`. - fn deprecate_controller_batch(u: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `195432 + u * (1105 ±0)` - // Estimated: `0` - // Minimum execution time: 7_164_000 picoseconds. - Weight::from_parts(223_480_099, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 165_663 - .saturating_add(Weight::from_parts(60_652_060, 0).saturating_mul(u.into())) - } - fn force_unstake() -> Weight { - // Proof Size summary in bytes: - // Measured: `8285` - // Estimated: `0` - // Minimum execution time: 10_921_590_000 picoseconds. - Weight::from_parts(16_176_391_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::CancelledSlashes` (r:1 w:1) + /// Proof: `Staking::CancelledSlashes` (`max_values`: None, `max_size`: Some(36014), added: 38489, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 1000]`. fn cancel_deferred_slash(s: u32, ) -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `653` // Estimated: `39479` // Minimum execution time: 16_163_000 picoseconds. @@ -613,31 +565,9 @@ impl pallet_staking_async::WeightInfo for WeightInfo /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) /// Storage: `VoterList::ListBags` (r:2 w:2) /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) -======= - // Measured: `633` - // Estimated: `0` - // Minimum execution time: 21_117_000 picoseconds. - Weight::from_parts(21_937_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 8_007 - .saturating_add(Weight::from_parts(3_054_448, 0).saturating_mul(s.into())) - } - /// The range of component `n` is `[0, 64]`. - fn payout_stakers_alive_staked(n: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `32987 + n * (3657 ±0)` - // Estimated: `0` - // Minimum execution time: 6_909_131_000 picoseconds. - Weight::from_parts(20_652_651_092, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 8_042_660 - .saturating_add(Weight::from_parts(264_186_902, 0).saturating_mul(n.into())) - } ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) /// The range of component `l` is `[1, 32]`. fn rebond(l: u32, ) -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `8275 + l * (5 ±0)` // Estimated: `8877` // Minimum execution time: 241_410_000 picoseconds. @@ -700,27 +630,10 @@ impl pallet_staking_async::WeightInfo for WeightInfo /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Staking::MinNominatorBond` (r:0 w:1) /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) -======= - // Measured: `8255 + l * (5 ±0)` - // Estimated: `0` - // Minimum execution time: 6_909_067_000 picoseconds. - Weight::from_parts(10_699_364_610, 0) - .saturating_add(Weight::from_parts(0, 0)) - } - fn reap_stash() -> Weight { - // Proof Size summary in bytes: - // Measured: `8348` - // Estimated: `0` - // Minimum execution time: 10_927_055_000 picoseconds. - Weight::from_parts(13_398_080_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) fn set_staking_configs_all_set() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` -<<<<<<< HEAD // Minimum execution time: 4_554_000 picoseconds. Weight::from_parts(4_900_000, 0) .saturating_add(Weight::from_parts(0, 0)) @@ -740,30 +653,41 @@ impl pallet_staking_async::WeightInfo for WeightInfo /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Staking::MinNominatorBond` (r:0 w:1) /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) -======= - // Minimum execution time: 8_168_000 picoseconds. - Weight::from_parts(8_893_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) fn set_staking_configs_all_remove() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` -<<<<<<< HEAD // Minimum execution time: 4_200_000 picoseconds. Weight::from_parts(4_453_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(7)) -======= - // Minimum execution time: 7_548_000 picoseconds. - Weight::from_parts(8_120_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) + /// Storage: `Staking::Nominators` (r:1 w:1) + /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) + /// Storage: `Staking::ChillThreshold` (r:1 w:0) + /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0) + /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Staking::CounterForNominators` (r:1 w:1) + /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Staking::MinNominatorBond` (r:1 w:0) + /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Staking::Validators` (r:1 w:0) + /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `VoterList::Lock` (r:1 w:0) + /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) + /// Storage: `VoterList::ListNodes` (r:2 w:2) + /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) + /// Storage: `VoterList::ListBags` (r:1 w:1) + /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) + /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn chill_other() -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `5360` // Estimated: `6248` // Minimum execution time: 210_278_000 picoseconds. @@ -771,17 +695,13 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 6248)) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(6)) -======= - // Measured: `5350` - // Estimated: `0` - // Minimum execution time: 8_972_274_000 picoseconds. - Weight::from_parts(12_286_705_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::MinCommission` (r:1 w:0) + /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Staking::Validators` (r:1 w:1) + /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) fn force_apply_min_commission() -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `663` // Estimated: `3510` // Minimum execution time: 37_633_000 picoseconds. @@ -789,28 +709,18 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 3510)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) -======= - // Measured: `640` - // Estimated: `0` - // Minimum execution time: 57_429_000 picoseconds. - Weight::from_parts(67_310_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::MinCommission` (r:0 w:1) + /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_min_commission() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` -<<<<<<< HEAD // Minimum execution time: 2_570_000 picoseconds. Weight::from_parts(2_849_000, 0) -======= - // Minimum execution time: 3_827_000 picoseconds. - Weight::from_parts(4_098_000, 0) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) } -<<<<<<< HEAD /// Storage: `System::Account` (r:1 w:0) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `Staking::VirtualStakers` (r:1 w:0) @@ -882,38 +792,23 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 210810)) .saturating_add(T::DbWeight::get().reads(457)) .saturating_add(T::DbWeight::get().writes(261)) -======= - fn restore_ledger() -> Weight { - // Proof Size summary in bytes: - // Measured: `6948` - // Estimated: `0` - // Minimum execution time: 109_614_000 picoseconds. - Weight::from_parts(114_855_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } - fn migrate_currency() -> Weight { - // Proof Size summary in bytes: - // Measured: `7019` - // Estimated: `0` - // Minimum execution time: 162_554_000 picoseconds. - Weight::from_parts(169_846_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } - /// The range of component `n` is `[0, 64]`. - fn apply_slash(n: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `27526 + n * (2979 ±0)` - // Estimated: `0` - // Minimum execution time: 7_428_074_000 picoseconds. - Weight::from_parts(19_830_764_737, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 7_880_082 - .saturating_add(Weight::from_parts(228_874_767, 0).saturating_mul(n.into())) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::ProcessingOffence` (r:1 w:1) + /// Proof: `Staking::ProcessingOffence` (`max_values`: Some(1), `max_size`: Some(85), added: 580, mode: `MaxEncodedLen`) + /// Storage: `Staking::OffenceQueueEras` (r:1 w:1) + /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(9), added: 504, mode: `MaxEncodedLen`) + /// Storage: `Staking::OffenceQueue` (r:2 w:1) + /// Proof: `Staking::OffenceQueue` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`) + /// Storage: `Staking::SlashRewardFraction` (r:1 w:0) + /// Proof: `Staking::SlashRewardFraction` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Staking::ErasStakersOverview` (r:1 w:0) + /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) + /// Storage: `Staking::ErasStakersPaged` (r:1 w:0) + /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(3152), added: 5627, mode: `MaxEncodedLen`) + /// Storage: `Staking::UnappliedSlashes` (r:0 w:1) + /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(3231), added: 5706, mode: `MaxEncodedLen`) fn process_offence_queue() -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `3622` // Estimated: `6617` // Minimum execution time: 160_545_000 picoseconds. @@ -989,37 +884,16 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 39483)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(7)) -======= - // Measured: `3602` - // Estimated: `0` - // Minimum execution time: 5_027_278_000 picoseconds. - Weight::from_parts(12_923_992_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } - /// The range of component `v` is `[2, 500]`. - fn rc_on_offence(v: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `667 + v * (96 ±0)` - // Estimated: `0` - // Minimum execution time: 3_997_424_000 picoseconds. - Weight::from_parts(28_149_718_556, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 1_586_636 - .saturating_add(Weight::from_parts(57_924_737, 0).saturating_mul(v.into())) - } - fn rc_on_session_report() -> Weight { - // Proof Size summary in bytes: - // Measured: `1190` - // Estimated: `0` - // Minimum execution time: 10_892_087_000 picoseconds. - Weight::from_parts(11_439_807_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::ActiveEra` (r:1 w:0) + /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) + /// Storage: `Staking::EraPruningState` (r:1 w:0) + /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) + /// Storage: `Staking::ErasStakersPaged` (r:101 w:100) + /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(3152), added: 5627, mode: `Measured`) /// The range of component `v` is `[1, 1000]`. fn prune_era_stakers_paged(v: u32, ) -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `7932 + v * (3 ±0)` // Estimated: `258685 + v * (4 ±0)` // Minimum execution time: 177_161_000 picoseconds. @@ -1030,20 +904,16 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads(103)) .saturating_add(T::DbWeight::get().writes(100)) .saturating_add(Weight::from_parts(0, 4).saturating_mul(v.into())) -======= - // Measured: `7912 + v * (3 ±0)` - // Estimated: `0` - // Minimum execution time: 233_582_000 picoseconds. - Weight::from_parts(302_127_414, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 3_585 - .saturating_add(Weight::from_parts(83_794, 0).saturating_mul(v.into())) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::ActiveEra` (r:1 w:0) + /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) + /// Storage: `Staking::EraPruningState` (r:1 w:0) + /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) + /// Storage: `Staking::ErasStakersOverview` (r:101 w:100) + /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `Measured`) /// The range of component `v` is `[1, 1000]`. fn prune_era_stakers_overview(v: u32, ) -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `8859` // Estimated: `203138 + v * (84 ±0)` // Minimum execution time: 45_108_000 picoseconds. @@ -1054,20 +924,16 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads(81)) .saturating_add(T::DbWeight::get().writes(79)) .saturating_add(Weight::from_parts(0, 84).saturating_mul(v.into())) -======= - // Measured: `7425` - // Estimated: `0` - // Minimum execution time: 57_623_000 picoseconds. - Weight::from_parts(308_108_210, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 9_129 - .saturating_add(Weight::from_parts(91_683, 0).saturating_mul(v.into())) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::ActiveEra` (r:1 w:0) + /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) + /// Storage: `Staking::EraPruningState` (r:1 w:0) + /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) + /// Storage: `Staking::ErasValidatorPrefs` (r:101 w:100) + /// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `Measured`) /// The range of component `v` is `[1, 1000]`. fn prune_era_validator_prefs(v: u32, ) -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `5885` // Estimated: `200831 + v * (83 ±6)` // Minimum execution time: 44_850_000 picoseconds. @@ -1078,20 +944,16 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads(81)) .saturating_add(T::DbWeight::get().writes(79)) .saturating_add(Weight::from_parts(0, 83).saturating_mul(v.into())) -======= - // Measured: `5865` - // Estimated: `0` - // Minimum execution time: 53_173_000 picoseconds. - Weight::from_parts(278_592_462, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 8_591 - .saturating_add(Weight::from_parts(147_948, 0).saturating_mul(v.into())) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::ActiveEra` (r:1 w:0) + /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) + /// Storage: `Staking::EraPruningState` (r:1 w:0) + /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) + /// Storage: `Staking::ClaimedRewards` (r:101 w:100) + /// Proof: `Staking::ClaimedRewards` (`max_values`: None, `max_size`: Some(1462), added: 3937, mode: `Measured`) /// The range of component `v` is `[1, 1000]`. fn prune_era_claimed_rewards(v: u32, ) -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `8859` // Estimated: `203138 + v * (84 ±0)` // Minimum execution time: 41_789_000 picoseconds. @@ -1102,19 +964,15 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(T::DbWeight::get().reads(81)) .saturating_add(T::DbWeight::get().writes(79)) .saturating_add(Weight::from_parts(0, 84).saturating_mul(v.into())) -======= - // Measured: `8873` - // Estimated: `0` - // Minimum execution time: 55_821_000 picoseconds. - Weight::from_parts(297_039_564, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 8_692 - .saturating_add(Weight::from_parts(122_602, 0).saturating_mul(v.into())) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::ActiveEra` (r:1 w:0) + /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) + /// Storage: `Staking::EraPruningState` (r:1 w:1) + /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) + /// Storage: `Staking::ErasValidatorReward` (r:0 w:1) + /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`) fn prune_era_validator_reward() -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `809` // Estimated: `4274` // Minimum execution time: 32_432_000 picoseconds. @@ -1122,17 +980,15 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 4274)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) -======= - // Measured: `789` - // Estimated: `0` - // Minimum execution time: 42_821_000 picoseconds. - Weight::from_parts(46_037_000, 0) - .saturating_add(Weight::from_parts(0, 0)) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } + /// Storage: `Staking::ActiveEra` (r:1 w:0) + /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) + /// Storage: `Staking::EraPruningState` (r:1 w:1) + /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) + /// Storage: `Staking::ErasRewardPoints` (r:0 w:1) + /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: Some(36018), added: 38493, mode: `Measured`) fn prune_era_reward_points() -> Weight { // Proof Size summary in bytes: -<<<<<<< HEAD // Measured: `809` // Estimated: `4274` // Minimum execution time: 32_296_000 picoseconds. @@ -1156,31 +1012,5 @@ impl pallet_staking_async::WeightInfo for WeightInfo .saturating_add(Weight::from_parts(0, 4274)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) -======= - // Measured: `789` - // Estimated: `0` - // Minimum execution time: 41_525_000 picoseconds. - Weight::from_parts(46_113_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } - fn prune_era_single_entry_cleanups() -> Weight { - // Proof Size summary in bytes: - // Measured: `789` - // Estimated: `0` - // Minimum execution time: 45_910_000 picoseconds. - Weight::from_parts(48_324_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } - /// The range of component `v` is `[1, 1000]`. - fn prune_era_validator_slash_in_era(v: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `5499 + v * (3 ±0)` - // Estimated: `0` - // Minimum execution time: 60_851_000 picoseconds. - Weight::from_parts(210_957_237, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 9_601 - .saturating_add(Weight::from_parts(206_498, 0).saturating_mul(v.into())) ->>>>>>> 64dc021 (benchmarking: fix timing leak from bulk setup operations (#10802)) } } From d67dafbcbb877269c29ceef75e96b35d90795e19 Mon Sep 17 00:00:00 2001 From: "cmd[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 15:20:24 +0000 Subject: [PATCH 3/3] Update from github-actions[bot] running command 'bench --pallet pallet_staking_async --runtime asset-hub-westend' --- .../src/weights/pallet_staking_async.rs | 1039 ++++------------- 1 file changed, 219 insertions(+), 820 deletions(-) diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs index 644c17ff88d80..c948324887a52 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_staking_async.rs @@ -15,10 +15,10 @@ //! Autogenerated weights for `pallet_staking_async` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 53.0.0 +//! DATE: 2026-01-19, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `04e6bcf4596d`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `976c228de464`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: @@ -50,967 +50,366 @@ use core::marker::PhantomData; /// Weight functions for `pallet_staking_async`. pub struct WeightInfo(PhantomData); impl pallet_staking_async::WeightInfo for WeightInfo { - /// Storage: `Staking::Bonded` (r:1 w:1) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinValidatorBond` (r:1 w:0) - /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:1 w:0) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) - /// Storage: `Staking::Payee` (r:0 w:1) - /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn bond() -> Weight { // Proof Size summary in bytes: // Measured: `6813` - // Estimated: `4218` - // Minimum execution time: 113_577_000 picoseconds. - Weight::from_parts(116_932_000, 0) - .saturating_add(Weight::from_parts(0, 4218)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(4)) - } - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinValidatorBond` (r:1 w:0) - /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:1 w:0) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:3 w:3) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:2 w:2) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 147_914_000 picoseconds. + Weight::from_parts(151_984_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn bond_extra() -> Weight { // Proof Size summary in bytes: // Measured: `8274` - // Estimated: `8877` - // Minimum execution time: 289_644_000 picoseconds. - Weight::from_parts(302_513_000, 0) - .saturating_add(Weight::from_parts(0, 8877)) - .saturating_add(T::DbWeight::get().reads(12)) - .saturating_add(T::DbWeight::get().writes(7)) - } - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:0) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:1 w:0) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:1 w:0) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:3 w:3) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:2 w:2) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 9_660_398_000 picoseconds. + Weight::from_parts(10_855_785_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn unbond() -> Weight { // Proof Size summary in bytes: // Measured: `8422` - // Estimated: `8877` - // Minimum execution time: 248_875_000 picoseconds. - Weight::from_parts(256_830_000, 0) - .saturating_add(Weight::from_parts(0, 8877)) - .saturating_add(T::DbWeight::get().reads(13)) - .saturating_add(T::DbWeight::get().writes(6)) - } - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`) - /// Storage: `Staking::UnappliedSlashes` (r:1 w:0) - /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(3231), added: 5706, mode: `MaxEncodedLen`) - /// Storage: `Staking::OffenceQueueEras` (r:1 w:0) - /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(9), added: 504, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinValidatorBond` (r:1 w:0) - /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:1 w:0) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) - /// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0) - /// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) - /// Storage: `DelegatedStaking::Agents` (r:1 w:0) - /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 7_783_866_000 picoseconds. + Weight::from_parts(11_344_935_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn withdraw_unbonded_update() -> Weight { // Proof Size summary in bytes: // Measured: `7413` - // Estimated: `6696` - // Minimum execution time: 131_705_000 picoseconds. - Weight::from_parts(135_270_000, 0) - .saturating_add(Weight::from_parts(0, 6696)) - .saturating_add(T::DbWeight::get().reads(11)) - .saturating_add(T::DbWeight::get().writes(2)) - } - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:1) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`) - /// Storage: `Staking::UnappliedSlashes` (r:1 w:0) - /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(3231), added: 5706, mode: `MaxEncodedLen`) - /// Storage: `Staking::OffenceQueueEras` (r:1 w:0) - /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(9), added: 504, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinValidatorBond` (r:1 w:0) - /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:1 w:0) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:1) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:1 w:0) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:1) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `Staking::CounterForNominators` (r:1 w:1) - /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:2 w:2) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:1 w:1) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) - /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Payee` (r:0 w:1) - /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 171_207_000 picoseconds. + Weight::from_parts(178_870_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn withdraw_unbonded_kill() -> Weight { // Proof Size summary in bytes: // Measured: `8360` - // Estimated: `6696` - // Minimum execution time: 299_116_000 picoseconds. - Weight::from_parts(312_554_000, 0) - .saturating_add(Weight::from_parts(0, 6696)) - .saturating_add(T::DbWeight::get().reads(17)) - .saturating_add(T::DbWeight::get().writes(11)) - } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinValidatorBond` (r:1 w:0) - /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinCommission` (r:1 w:0) - /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:1 w:1) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxValidatorsCount` (r:1 w:0) - /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:0) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:1 w:1) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:1 w:1) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) - /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::CounterForValidators` (r:1 w:1) - /// Proof: `Staking::CounterForValidators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 9_430_826_000 picoseconds. + Weight::from_parts(13_915_386_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn validate() -> Weight { // Proof Size summary in bytes: - // Measured: `8771` - // Estimated: `4218` - // Minimum execution time: 102_777_000 picoseconds. - Weight::from_parts(106_153_000, 0) - .saturating_add(Weight::from_parts(0, 4218)) - .saturating_add(T::DbWeight::get().reads(12)) - .saturating_add(T::DbWeight::get().writes(5)) - } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:128 w:128) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) + // Measured: `9905` + // Estimated: `0` + // Minimum execution time: 158_157_000 picoseconds. + Weight::from_parts(161_863_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// The range of component `k` is `[1, 128]`. fn kick(k: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `12207 + k * (1121 ±0)` - // Estimated: `4218 + k * (3033 ±0)` - // Minimum execution time: 79_398_000 picoseconds. - Weight::from_parts(87_226_243, 0) - .saturating_add(Weight::from_parts(0, 4218)) - // Standard Error: 43_658 - .saturating_add(Weight::from_parts(16_818_523, 0).saturating_mul(k.into())) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into()))) - .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into()))) - .saturating_add(Weight::from_parts(0, 3033).saturating_mul(k.into())) - } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:1 w:0) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:1) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0) - /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:17 w:0) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `Staking::CurrentEra` (r:1 w:0) - /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:2 w:2) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:1 w:1) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) - /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::CounterForNominators` (r:1 w:1) - /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 98_070_000 picoseconds. + Weight::from_parts(92_397_440, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 56_134 + .saturating_add(Weight::from_parts(17_906_234, 0).saturating_mul(k.into())) + } /// The range of component `n` is `[1, 16]`. fn nominate(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `4995 + n * (68 ±0)` - // Estimated: `6248 + n * (2520 ±0)` - // Minimum execution time: 180_698_000 picoseconds. - Weight::from_parts(202_744_514, 0) - .saturating_add(Weight::from_parts(0, 6248)) - // Standard Error: 82_249 - .saturating_add(Weight::from_parts(5_669_284, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(13)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes(6)) - .saturating_add(Weight::from_parts(0, 2520).saturating_mul(n.into())) - } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:1 w:0) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:1) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `Staking::CounterForNominators` (r:1 w:1) - /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:2 w:2) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:1 w:1) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) - /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Measured: `5094 + n * (68 ±0)` + // Estimated: `0` + // Minimum execution time: 4_547_005_000 picoseconds. + Weight::from_parts(10_299_220_285, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 10_889_875 + .saturating_add(Weight::from_parts(116_329_294, 0).saturating_mul(n.into())) + } fn chill() -> Weight { // Proof Size summary in bytes: // Measured: `5237` - // Estimated: `6248` - // Minimum execution time: 170_702_000 picoseconds. - Weight::from_parts(184_776_000, 0) - .saturating_add(Weight::from_parts(0, 6248)) - .saturating_add(T::DbWeight::get().reads(10)) - .saturating_add(T::DbWeight::get().writes(6)) - } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Payee` (r:0 w:1) - /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 5_060_283_000 picoseconds. + Weight::from_parts(6_071_370_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn set_payee() -> Weight { // Proof Size summary in bytes: // Measured: `4060` - // Estimated: `4218` - // Minimum execution time: 38_367_000 picoseconds. - Weight::from_parts(39_752_000, 0) - .saturating_add(Weight::from_parts(0, 4218)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Payee` (r:1 w:1) - /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 56_858_000 picoseconds. + Weight::from_parts(59_958_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn update_payee() -> Weight { // Proof Size summary in bytes: // Measured: `5732` - // Estimated: `4218` - // Minimum execution time: 48_642_000 picoseconds. - Weight::from_parts(50_461_000, 0) - .saturating_add(Weight::from_parts(0, 4218)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Staking::Bonded` (r:1 w:1) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:2 w:2) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 72_241_000 picoseconds. + Weight::from_parts(74_222_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn set_controller() -> Weight { // Proof Size summary in bytes: - // Measured: `5370` - // Estimated: `7446` - // Minimum execution time: 49_900_000 picoseconds. - Weight::from_parts(51_842_000, 0) - .saturating_add(Weight::from_parts(0, 7446)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `5403` + // Estimated: `0` + // Minimum execution time: 73_235_000 picoseconds. + Weight::from_parts(76_913_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: `Staking::ValidatorCount` (r:0 w:1) - /// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_validator_count() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_517_000 picoseconds. - Weight::from_parts(2_842_000, 0) + // Minimum execution time: 3_641_000 picoseconds. + Weight::from_parts(4_080_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `Staking::ForceEra` (r:0 w:1) - /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn force_no_eras() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 14_680_000 picoseconds. - Weight::from_parts(15_760_000, 0) + // Minimum execution time: 20_775_000 picoseconds. + Weight::from_parts(22_251_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `Staking::ForceEra` (r:0 w:1) - /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn force_new_era() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 15_091_000 picoseconds. - Weight::from_parts(15_838_000, 0) + // Minimum execution time: 20_840_000 picoseconds. + Weight::from_parts(21_706_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `Staking::ForceEra` (r:0 w:1) - /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn force_new_era_always() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 14_927_000 picoseconds. - Weight::from_parts(16_114_000, 0) + // Minimum execution time: 20_472_000 picoseconds. + Weight::from_parts(22_093_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `Staking::Invulnerables` (r:0 w:1) - /// Proof: `Staking::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) /// The range of component `v` is `[0, 20]`. fn set_invulnerables(v: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_826_000 picoseconds. - Weight::from_parts(3_433_272, 0) + // Minimum execution time: 3_844_000 picoseconds. + Weight::from_parts(4_841_276, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 967 - .saturating_add(Weight::from_parts(17_572, 0).saturating_mul(v.into())) - .saturating_add(T::DbWeight::get().writes(1)) + // Standard Error: 2_509 + .saturating_add(Weight::from_parts(28_643, 0).saturating_mul(v.into())) } - /// Storage: `Staking::Ledger` (r:1502 w:1502) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:751 w:751) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Payee` (r:751 w:0) - /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) /// The range of component `u` is `[0, 751]`. fn deprecate_controller_batch(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `194937 + u * (1086 ±0)` - // Estimated: `990 + u * (6456 ±0)` - // Minimum execution time: 5_707_000 picoseconds. - Weight::from_parts(416_986_998, 0) - .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 83_724 - .saturating_add(Weight::from_parts(48_456_907, 0).saturating_mul(u.into())) - .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into()))) - .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(u.into()))) - .saturating_add(Weight::from_parts(0, 6456).saturating_mul(u.into())) - } - /// Storage: `Staking::Bonded` (r:1 w:1) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:1) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:1) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:1 w:0) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:1) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `Staking::CounterForNominators` (r:1 w:1) - /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:2 w:2) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:1 w:1) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) - /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Payee` (r:0 w:1) - /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + // Measured: `195452 + u * (1105 ±0)` + // Estimated: `0` + // Minimum execution time: 7_160_000 picoseconds. + Weight::from_parts(457_934_516, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 72_192 + .saturating_add(Weight::from_parts(54_998_530, 0).saturating_mul(u.into())) + } fn force_unstake() -> Weight { // Proof Size summary in bytes: // Measured: `8305` - // Estimated: `6248` - // Minimum execution time: 268_494_000 picoseconds. - Weight::from_parts(287_320_000, 0) - .saturating_add(Weight::from_parts(0, 6248)) - .saturating_add(T::DbWeight::get().reads(13)) - .saturating_add(T::DbWeight::get().writes(12)) - } - /// Storage: `Staking::CancelledSlashes` (r:1 w:1) - /// Proof: `Staking::CancelledSlashes` (`max_values`: None, `max_size`: Some(36014), added: 38489, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 10_313_860_000 picoseconds. + Weight::from_parts(15_554_329_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// The range of component `s` is `[1, 1000]`. fn cancel_deferred_slash(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `653` - // Estimated: `39479` - // Minimum execution time: 16_163_000 picoseconds. - Weight::from_parts(16_564_000, 0) - .saturating_add(Weight::from_parts(0, 39479)) - // Standard Error: 8_347 - .saturating_add(Weight::from_parts(2_970_506, 0).saturating_mul(s.into())) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Staking::ErasStakersOverview` (r:1 w:0) - /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) - /// Storage: `Staking::ClaimedRewards` (r:1 w:1) - /// Proof: `Staking::ClaimedRewards` (`max_values`: None, `max_size`: Some(1462), added: 3937, mode: `MaxEncodedLen`) - /// Storage: `Staking::CurrentEra` (r:1 w:0) - /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasValidatorReward` (r:1 w:0) - /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:65 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:65 w:65) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:65 w:65) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:65 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:65 w:65) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasStakersPaged` (r:1 w:0) - /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(3152), added: 5627, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasRewardPoints` (r:1 w:0) - /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: Some(36018), added: 38493, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasValidatorPrefs` (r:1 w:0) - /// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`) - /// Storage: `Staking::Payee` (r:65 w:0) - /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 23_585_000 picoseconds. + Weight::from_parts(24_253_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 8_488 + .saturating_add(Weight::from_parts(3_068_373, 0).saturating_mul(s.into())) + } /// The range of component `n` is `[0, 64]`. fn payout_stakers_alive_staked(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `32761 + n * (3627 ±0)` - // Estimated: `39483 + n * (3228 ±0)` - // Minimum execution time: 341_005_000 picoseconds. - Weight::from_parts(484_113_723, 0) - .saturating_add(Weight::from_parts(0, 39483)) - // Standard Error: 179_884 - .saturating_add(Weight::from_parts(141_242_813, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(13)) - .saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes(4)) - .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into()))) - .saturating_add(Weight::from_parts(0, 3228).saturating_mul(n.into())) - } - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinValidatorBond` (r:1 w:0) - /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:1 w:0) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:1 w:0) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:3 w:3) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:2 w:2) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + // Measured: `33007 + n * (3657 ±0)` + // Estimated: `0` + // Minimum execution time: 6_812_015_000 picoseconds. + Weight::from_parts(19_392_414_536, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 7_451_344 + .saturating_add(Weight::from_parts(257_916_958, 0).saturating_mul(n.into())) + } /// The range of component `l` is `[1, 32]`. - fn rebond(l: u32, ) -> Weight { + fn rebond(_l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `8275 + l * (5 ±0)` - // Estimated: `8877` - // Minimum execution time: 241_410_000 picoseconds. - Weight::from_parts(262_304_335, 0) - .saturating_add(Weight::from_parts(0, 8877)) - // Standard Error: 46_723 - .saturating_add(Weight::from_parts(309_679, 0).saturating_mul(l.into())) - .saturating_add(T::DbWeight::get().reads(12)) - .saturating_add(T::DbWeight::get().writes(6)) - } - /// Storage: `Staking::VirtualStakers` (r:1 w:1) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinValidatorBond` (r:1 w:0) - /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:1 w:0) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:1) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:1 w:0) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:1) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `Staking::CounterForNominators` (r:1 w:1) - /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:2 w:2) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:1 w:1) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) - /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Payee` (r:0 w:1) - /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 5_792_578_000 picoseconds. + Weight::from_parts(11_029_145_404, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn reap_stash() -> Weight { // Proof Size summary in bytes: // Measured: `8368` - // Estimated: `6248` - // Minimum execution time: 300_336_000 picoseconds. - Weight::from_parts(320_628_000, 0) - .saturating_add(Weight::from_parts(0, 6248)) - .saturating_add(T::DbWeight::get().reads(14)) - .saturating_add(T::DbWeight::get().writes(11)) - } - /// Storage: `Staking::MinCommission` (r:0 w:1) - /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinValidatorBond` (r:0 w:1) - /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxValidatorsCount` (r:0 w:1) - /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxStakedRewards` (r:0 w:1) - /// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) - /// Storage: `Staking::ChillThreshold` (r:0 w:1) - /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxNominatorsCount` (r:0 w:1) - /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:0 w:1) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 9_620_930_000 picoseconds. + Weight::from_parts(13_265_235_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn set_staking_configs_all_set() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_554_000 picoseconds. - Weight::from_parts(4_900_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(7)) - } - /// Storage: `Staking::MinCommission` (r:0 w:1) - /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinValidatorBond` (r:0 w:1) - /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxValidatorsCount` (r:0 w:1) - /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxStakedRewards` (r:0 w:1) - /// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) - /// Storage: `Staking::ChillThreshold` (r:0 w:1) - /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxNominatorsCount` (r:0 w:1) - /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:0 w:1) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Minimum execution time: 6_908_000 picoseconds. + Weight::from_parts(7_551_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn set_staking_configs_all_remove() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_200_000 picoseconds. - Weight::from_parts(4_453_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(7)) - } - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Staking::Nominators` (r:1 w:1) - /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) - /// Storage: `Staking::ChillThreshold` (r:1 w:0) - /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0) - /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::CounterForNominators` (r:1 w:1) - /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::MinNominatorBond` (r:1 w:0) - /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:1 w:0) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `VoterList::Lock` (r:1 w:0) - /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListNodes` (r:2 w:2) - /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) - /// Storage: `VoterList::ListBags` (r:1 w:1) - /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `VoterList::CounterForListNodes` (r:1 w:1) - /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Minimum execution time: 6_270_000 picoseconds. + Weight::from_parts(6_633_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn chill_other() -> Weight { // Proof Size summary in bytes: // Measured: `5360` - // Estimated: `6248` - // Minimum execution time: 210_278_000 picoseconds. - Weight::from_parts(223_503_000, 0) - .saturating_add(Weight::from_parts(0, 6248)) - .saturating_add(T::DbWeight::get().reads(13)) - .saturating_add(T::DbWeight::get().writes(6)) - } - /// Storage: `Staking::MinCommission` (r:1 w:0) - /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Validators` (r:1 w:1) - /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 8_004_375_000 picoseconds. + Weight::from_parts(10_274_696_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn force_apply_min_commission() -> Weight { // Proof Size summary in bytes: // Measured: `663` - // Estimated: `3510` - // Minimum execution time: 37_633_000 picoseconds. - Weight::from_parts(40_846_000, 0) - .saturating_add(Weight::from_parts(0, 3510)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Staking::MinCommission` (r:0 w:1) - /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 54_721_000 picoseconds. + Weight::from_parts(63_011_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn set_min_commission() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_570_000 picoseconds. - Weight::from_parts(2_849_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `System::Account` (r:1 w:0) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:1 w:0) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) - /// Storage: `Balances::Locks` (r:1 w:0) - /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:1) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) + // Minimum execution time: 3_616_000 picoseconds. + Weight::from_parts(4_209_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn restore_ledger() -> Weight { // Proof Size summary in bytes: // Measured: `6968` - // Estimated: `4764` - // Minimum execution time: 77_211_000 picoseconds. - Weight::from_parts(79_223_000, 0) - .saturating_add(Weight::from_parts(0, 4764)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) - } - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:1 w:0) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `Balances::Locks` (r:1 w:1) - /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) - /// Storage: `Balances::Freezes` (r:1 w:0) - /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 112_133_000 picoseconds. + Weight::from_parts(115_593_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn migrate_currency() -> Weight { // Proof Size summary in bytes: // Measured: `7039` - // Estimated: `4764` - // Minimum execution time: 124_593_000 picoseconds. - Weight::from_parts(128_244_000, 0) - .saturating_add(Weight::from_parts(0, 4764)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) - } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`) - /// Storage: `Staking::UnappliedSlashes` (r:1 w:1) - /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(3231), added: 5706, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:65 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:65 w:65) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`) - /// Storage: `NominationPools::ReversePoolIdLookup` (r:65 w:0) - /// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) - /// Storage: `DelegatedStaking::Agents` (r:65 w:65) - /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:65 w:65) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:65 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:65 w:65) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 164_589_000 picoseconds. + Weight::from_parts(170_636_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn apply_slash() -> Weight { // Proof Size summary in bytes: - // Measured: `212846` - // Estimated: `210810` - // Minimum execution time: 6_294_738_000 picoseconds. - Weight::from_parts(6_451_211_000, 0) - .saturating_add(Weight::from_parts(0, 210810)) - .saturating_add(T::DbWeight::get().reads(457)) - .saturating_add(T::DbWeight::get().writes(261)) - } - /// Storage: `Staking::ProcessingOffence` (r:1 w:1) - /// Proof: `Staking::ProcessingOffence` (`max_values`: Some(1), `max_size`: Some(85), added: 580, mode: `MaxEncodedLen`) - /// Storage: `Staking::OffenceQueueEras` (r:1 w:1) - /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(9), added: 504, mode: `MaxEncodedLen`) - /// Storage: `Staking::OffenceQueue` (r:2 w:1) - /// Proof: `Staking::OffenceQueue` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`) - /// Storage: `Staking::SlashRewardFraction` (r:1 w:0) - /// Proof: `Staking::SlashRewardFraction` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasStakersOverview` (r:1 w:0) - /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasStakersPaged` (r:1 w:0) - /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(3152), added: 5627, mode: `MaxEncodedLen`) - /// Storage: `Staking::UnappliedSlashes` (r:0 w:1) - /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(3231), added: 5706, mode: `MaxEncodedLen`) + // Measured: `214697` + // Estimated: `0` + // Minimum execution time: 27_338_883_000 picoseconds. + Weight::from_parts(30_645_838_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn process_offence_queue() -> Weight { // Proof Size summary in bytes: // Measured: `3622` - // Estimated: `6617` - // Minimum execution time: 160_545_000 picoseconds. - Weight::from_parts(170_185_000, 0) - .saturating_add(Weight::from_parts(0, 6617)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(4)) - } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`) - /// Storage: `Staking::BondedEras` (r:1 w:0) - /// Proof: `Staking::BondedEras` (`max_values`: Some(1), `max_size`: Some(25), added: 520, mode: `MaxEncodedLen`) - /// Storage: `Staking::Invulnerables` (r:1 w:0) - /// Proof: `Staking::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasStakersOverview` (r:500 w:0) - /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) - /// Storage: `Staking::ValidatorSlashInEra` (r:500 w:500) - /// Proof: `Staking::ValidatorSlashInEra` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::OffenceQueue` (r:500 w:500) - /// Proof: `Staking::OffenceQueue` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`) - /// Storage: `Staking::OffenceQueueEras` (r:1 w:1) - /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(9), added: 504, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 7_478_019_000 picoseconds. + Weight::from_parts(11_365_009_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// The range of component `v` is `[2, 500]`. fn rc_on_offence(v: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `687 + v * (96 ±0)` - // Estimated: `2126 + v * (2576 ±0)` - // Minimum execution time: 97_236_000 picoseconds. - Weight::from_parts(7_707_285, 0) - .saturating_add(Weight::from_parts(0, 2126)) - // Standard Error: 15_935 - .saturating_add(Weight::from_parts(19_925_892, 0).saturating_mul(v.into())) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(v.into()))) - .saturating_add(T::DbWeight::get().writes(1)) - .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(v.into()))) - .saturating_add(Weight::from_parts(0, 2576).saturating_mul(v.into())) - } - /// Storage: `Staking::ActiveEra` (r:1 w:1) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasRewardPoints` (r:1 w:1) - /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: Some(36018), added: 38493, mode: `MaxEncodedLen`) - /// Storage: `Staking::CurrentEra` (r:1 w:0) - /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasTotalStake` (r:1 w:0) - /// Proof: `Staking::ErasTotalStake` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Staking::MaxStakedRewards` (r:1 w:0) - /// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) - /// Storage: `Staking::BondedEras` (r:1 w:1) - /// Proof: `Staking::BondedEras` (`max_values`: Some(1), `max_size`: Some(25), added: 520, mode: `MaxEncodedLen`) - /// Storage: `Staking::ForceEra` (r:1 w:0) - /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) - /// Storage: UNKNOWN KEY `0x6358acd2035ec4bb863fa981e0c177b9` (r:1 w:0) - /// Proof: UNKNOWN KEY `0x6358acd2035ec4bb863fa981e0c177b9` (r:1 w:0) - /// Storage: UNKNOWN KEY `0xc209f5d8eb920681b56c64b8694ea78c` (r:1 w:0) - /// Proof: UNKNOWN KEY `0xc209f5d8eb920681b56c64b8694ea78c` (r:1 w:0) - /// Storage: UNKNOWN KEY `0x48384a816e4f71a936cb76dc9e303f2a` (r:1 w:0) - /// Proof: UNKNOWN KEY `0x48384a816e4f71a936cb76dc9e303f2a` (r:1 w:0) - /// Storage: `Staking::VoterSnapshotStatus` (r:0 w:1) - /// Proof: `Staking::VoterSnapshotStatus` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) - /// Storage: `Staking::ErasValidatorReward` (r:0 w:1) - /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Staking::NextElectionPage` (r:0 w:1) - /// Proof: `Staking::NextElectionPage` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::ElectableStashes` (r:0 w:1) - /// Proof: `Staking::ElectableStashes` (`max_values`: Some(1), `max_size`: Some(32002), added: 32497, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 4_140_041_000 picoseconds. + Weight::from_parts(26_841_897_980, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 1_506_791 + .saturating_add(Weight::from_parts(56_560_084, 0).saturating_mul(v.into())) + } fn rc_on_session_report() -> Weight { // Proof Size summary in bytes: - // Measured: `1230` - // Estimated: `39483` - // Minimum execution time: 466_552_000 picoseconds. - Weight::from_parts(491_384_000, 0) - .saturating_add(Weight::from_parts(0, 39483)) - .saturating_add(T::DbWeight::get().reads(10)) - .saturating_add(T::DbWeight::get().writes(7)) - } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:0) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ErasStakersPaged` (r:101 w:100) - /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(3152), added: 5627, mode: `Measured`) + // Measured: `1177` + // Estimated: `0` + // Minimum execution time: 9_369_731_000 picoseconds. + Weight::from_parts(10_845_891_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// The range of component `v` is `[1, 1000]`. fn prune_era_stakers_paged(v: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `7932 + v * (3 ±0)` - // Estimated: `258685 + v * (4 ±0)` - // Minimum execution time: 177_161_000 picoseconds. - Weight::from_parts(215_748_309, 0) - .saturating_add(Weight::from_parts(0, 258685)) - // Standard Error: 1_574 - .saturating_add(Weight::from_parts(63_902, 0).saturating_mul(v.into())) - .saturating_add(T::DbWeight::get().reads(103)) - .saturating_add(T::DbWeight::get().writes(100)) - .saturating_add(Weight::from_parts(0, 4).saturating_mul(v.into())) - } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:0) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ErasStakersOverview` (r:101 w:100) - /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `Measured`) + // Estimated: `0` + // Minimum execution time: 220_116_000 picoseconds. + Weight::from_parts(263_061_968, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 4_259 + .saturating_add(Weight::from_parts(117_099, 0).saturating_mul(v.into())) + } /// The range of component `v` is `[1, 1000]`. fn prune_era_stakers_overview(v: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `8859` - // Estimated: `203138 + v * (84 ±0)` - // Minimum execution time: 45_108_000 picoseconds. - Weight::from_parts(184_023_118, 0) - .saturating_add(Weight::from_parts(0, 203138)) - // Standard Error: 4_913 - .saturating_add(Weight::from_parts(110_136, 0).saturating_mul(v.into())) - .saturating_add(T::DbWeight::get().reads(81)) - .saturating_add(T::DbWeight::get().writes(79)) - .saturating_add(Weight::from_parts(0, 84).saturating_mul(v.into())) - } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:0) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ErasValidatorPrefs` (r:101 w:100) - /// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `Measured`) + // Measured: `7445` + // Estimated: `0` + // Minimum execution time: 51_793_000 picoseconds. + Weight::from_parts(259_786_055, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 7_753 + .saturating_add(Weight::from_parts(143_802, 0).saturating_mul(v.into())) + } /// The range of component `v` is `[1, 1000]`. fn prune_era_validator_prefs(v: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `5885` - // Estimated: `200831 + v * (83 ±6)` - // Minimum execution time: 44_850_000 picoseconds. - Weight::from_parts(176_036_211, 0) - .saturating_add(Weight::from_parts(0, 200831)) - // Standard Error: 4_585 - .saturating_add(Weight::from_parts(101_327, 0).saturating_mul(v.into())) - .saturating_add(T::DbWeight::get().reads(81)) - .saturating_add(T::DbWeight::get().writes(79)) - .saturating_add(Weight::from_parts(0, 83).saturating_mul(v.into())) - } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:0) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ClaimedRewards` (r:101 w:100) - /// Proof: `Staking::ClaimedRewards` (`max_values`: None, `max_size`: Some(1462), added: 3937, mode: `Measured`) + // Estimated: `0` + // Minimum execution time: 53_287_000 picoseconds. + Weight::from_parts(245_968_937, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 7_366 + .saturating_add(Weight::from_parts(157_358, 0).saturating_mul(v.into())) + } /// The range of component `v` is `[1, 1000]`. fn prune_era_claimed_rewards(v: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `8859` - // Estimated: `203138 + v * (84 ±0)` - // Minimum execution time: 41_789_000 picoseconds. - Weight::from_parts(168_784_316, 0) - .saturating_add(Weight::from_parts(0, 203138)) - // Standard Error: 4_527 - .saturating_add(Weight::from_parts(123_314, 0).saturating_mul(v.into())) - .saturating_add(T::DbWeight::get().reads(81)) - .saturating_add(T::DbWeight::get().writes(79)) - .saturating_add(Weight::from_parts(0, 84).saturating_mul(v.into())) - } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:1) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ErasValidatorReward` (r:0 w:1) - /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`) + // Estimated: `0` + // Minimum execution time: 50_200_000 picoseconds. + Weight::from_parts(255_983_158, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 7_782 + .saturating_add(Weight::from_parts(157_895, 0).saturating_mul(v.into())) + } fn prune_era_validator_reward() -> Weight { // Proof Size summary in bytes: // Measured: `809` - // Estimated: `4274` - // Minimum execution time: 32_432_000 picoseconds. - Weight::from_parts(34_510_000, 0) - .saturating_add(Weight::from_parts(0, 4274)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) - } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:1) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ErasRewardPoints` (r:0 w:1) - /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: Some(36018), added: 38493, mode: `Measured`) + // Estimated: `0` + // Minimum execution time: 38_911_000 picoseconds. + Weight::from_parts(40_593_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn prune_era_reward_points() -> Weight { // Proof Size summary in bytes: // Measured: `809` - // Estimated: `4274` - // Minimum execution time: 32_296_000 picoseconds. - Weight::from_parts(34_923_000, 0) - .saturating_add(Weight::from_parts(0, 4274)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) - } - /// Storage: `Staking::ActiveEra` (r:1 w:0) - /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`) - /// Storage: `Staking::EraPruningState` (r:1 w:1) - /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`) - /// Storage: `Staking::ErasTotalStake` (r:0 w:1) - /// Proof: `Staking::ErasTotalStake` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`) + // Estimated: `0` + // Minimum execution time: 38_792_000 picoseconds. + Weight::from_parts(41_436_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn prune_era_total_stake() -> Weight { // Proof Size summary in bytes: // Measured: `809` - // Estimated: `4274` - // Minimum execution time: 40_141_000 picoseconds. - Weight::from_parts(43_990_000, 0) - .saturating_add(Weight::from_parts(0, 4274)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) + // Estimated: `0` + // Minimum execution time: 47_221_000 picoseconds. + Weight::from_parts(49_586_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } }