[Companion] Allow StakingAdmin to set min_commission (#6444)

* rename staking origin

* fix comments

* rename origin

* give fake weight before re-benchmarking

* ".git/.scripts/bench-bot.sh" runtime westend-dev pallet_staking

* ".git/.scripts/bench-bot.sh" runtime polkadot-dev pallet_staking

* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_staking

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Ankan
2022-12-26 17:53:22 +01:00
committed by GitHub
parent 3c89f88ec7
commit 96bce58a91
8 changed files with 706 additions and 665 deletions
+182 -180
View File
File diff suppressed because it is too large Load Diff
+1 -2
View File
@@ -584,8 +584,7 @@ impl pallet_staking::Config for Runtime {
type SessionsPerEra = SessionsPerEra; type SessionsPerEra = SessionsPerEra;
type BondingDuration = BondingDuration; type BondingDuration = BondingDuration;
type SlashDeferDuration = SlashDeferDuration; type SlashDeferDuration = SlashDeferDuration;
// The staking admin or root can cancel the slash. type AdminOrigin = EitherOf<EnsureRoot<Self::AccountId>, StakingAdmin>;
type SlashCancelOrigin = EitherOf<EnsureRoot<Self::AccountId>, StakingAdmin>;
type SessionInterface = Self; type SessionInterface = Self;
type EraPayout = EraPayout; type EraPayout = EraPayout;
type NextNewSession = Session; type NextNewSession = Session;
@@ -16,21 +16,23 @@
//! Autogenerated weights for `pallet_staking` //! Autogenerated weights for `pallet_staking`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-11-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! DATE: 2022-12-26, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` //! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024 //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
// Executed Command: // Executed Command:
// ./target/production/polkadot // /home/benchbot/cargo_target_dir/production/polkadot
// benchmark // benchmark
// pallet // pallet
// --chain=kusama-dev
// --steps=50 // --steps=50
// --repeat=20 // --repeat=20
// --pallet=pallet_staking
// --extrinsic=* // --extrinsic=*
// --execution=wasm // --execution=wasm
// --wasm-execution=compiled // --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/polkadot/.git/.artifacts/bench.json
// --pallet=pallet_staking
// --chain=kusama-dev
// --header=./file_header.txt // --header=./file_header.txt
// --output=./runtime/kusama/src/weights/ // --output=./runtime/kusama/src/weights/
@@ -50,10 +52,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
// Storage: Staking Payee (r:0 w:1) // Storage: Staking Payee (r:0 w:1)
fn bond() -> Weight { fn bond() -> Weight {
// Minimum execution time: 46_644 nanoseconds. // Minimum execution time: 46_498 nanoseconds.
Weight::from_ref_time(47_601_000 as u64) Weight::from_ref_time(47_017_000)
.saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(4))
} }
// Storage: Staking Bonded (r:1 w:0) // Storage: Staking Bonded (r:1 w:0)
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
@@ -61,10 +63,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListNodes (r:3 w:3) // Storage: VoterList ListNodes (r:3 w:3)
// Storage: VoterList ListBags (r:2 w:2) // Storage: VoterList ListBags (r:2 w:2)
fn bond_extra() -> Weight { fn bond_extra() -> Weight {
// Minimum execution time: 83_700 nanoseconds. // Minimum execution time: 83_337 nanoseconds.
Weight::from_ref_time(84_180_000 as u64) Weight::from_ref_time(84_125_000)
.saturating_add(T::DbWeight::get().reads(8 as u64)) .saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(7 as u64)) .saturating_add(T::DbWeight::get().writes(7))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Staking Nominators (r:1 w:0) // Storage: Staking Nominators (r:1 w:0)
@@ -76,10 +78,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking Bonded (r:1 w:0) // Storage: Staking Bonded (r:1 w:0)
// Storage: VoterList ListBags (r:2 w:2) // Storage: VoterList ListBags (r:2 w:2)
fn unbond() -> Weight { fn unbond() -> Weight {
// Minimum execution time: 88_626 nanoseconds. // Minimum execution time: 89_555 nanoseconds.
Weight::from_ref_time(89_533_000 as u64) Weight::from_ref_time(90_189_000)
.saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().reads(12))
.saturating_add(T::DbWeight::get().writes(8 as u64)) .saturating_add(T::DbWeight::get().writes(8))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
@@ -87,12 +89,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
/// The range of component `s` is `[0, 100]`. /// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_update(s: u32, ) -> Weight { fn withdraw_unbonded_update(s: u32, ) -> Weight {
// Minimum execution time: 39_857 nanoseconds. // Minimum execution time: 39_859 nanoseconds.
Weight::from_ref_time(41_762_625 as u64) Weight::from_ref_time(41_164_480)
// Standard Error: 793 // Standard Error: 870
.saturating_add(Weight::from_ref_time(19_027 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(22_362).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3 as u64)) .saturating_add(T::DbWeight::get().writes(3))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
@@ -107,14 +109,16 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
// Storage: Staking Payee (r:0 w:1) // Storage: Staking Payee (r:0 w:1)
// Storage: Staking SpanSlash (r:0 w:2)
/// The range of component `s` is `[0, 100]`. /// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_kill(s: u32, ) -> Weight { fn withdraw_unbonded_kill(s: u32, ) -> Weight {
// Minimum execution time: 77_333 nanoseconds. // Minimum execution time: 78_182 nanoseconds.
Weight::from_ref_time(78_922_702 as u64) Weight::from_ref_time(82_653_282)
// Standard Error: 1_167 // Standard Error: 2_211
.saturating_add(Weight::from_ref_time(2_228 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(919_603).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(13 as u64)) .saturating_add(T::DbWeight::get().reads(13))
.saturating_add(T::DbWeight::get().writes(11 as u64)) .saturating_add(T::DbWeight::get().writes(12))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking MinValidatorBond (r:1 w:0) // Storage: Staking MinValidatorBond (r:1 w:0)
@@ -128,22 +132,22 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList CounterForListNodes (r:1 w:1) // Storage: VoterList CounterForListNodes (r:1 w:1)
// Storage: Staking CounterForValidators (r:1 w:1) // Storage: Staking CounterForValidators (r:1 w:1)
fn validate() -> Weight { fn validate() -> Weight {
// Minimum execution time: 60_771 nanoseconds. // Minimum execution time: 60_801 nanoseconds.
Weight::from_ref_time(62_120_000 as u64) Weight::from_ref_time(61_461_000)
.saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().reads(11))
.saturating_add(T::DbWeight::get().writes(5 as u64)) .saturating_add(T::DbWeight::get().writes(5))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Nominators (r:1 w:1) // Storage: Staking Nominators (r:1 w:1)
/// The range of component `k` is `[1, 128]`. /// The range of component `k` is `[1, 128]`.
fn kick(k: u32, ) -> Weight { fn kick(k: u32, ) -> Weight {
// Minimum execution time: 35_488 nanoseconds. // Minimum execution time: 34_706 nanoseconds.
Weight::from_ref_time(31_260_124 as u64) Weight::from_ref_time(30_155_201)
// Standard Error: 10_282 // Standard Error: 9_801
.saturating_add(Weight::from_ref_time(6_618_104 as u64).saturating_mul(k as u64)) .saturating_add(Weight::from_ref_time(6_812_249).saturating_mul(k.into()))
.saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(k as u64))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into())))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(k as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into())))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking MinNominatorBond (r:1 w:0) // Storage: Staking MinNominatorBond (r:1 w:0)
@@ -158,13 +162,13 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking CounterForNominators (r:1 w:1) // Storage: Staking CounterForNominators (r:1 w:1)
/// The range of component `n` is `[1, 24]`. /// The range of component `n` is `[1, 24]`.
fn nominate(n: u32, ) -> Weight { fn nominate(n: u32, ) -> Weight {
// Minimum execution time: 63_100 nanoseconds. // Minimum execution time: 63_815 nanoseconds.
Weight::from_ref_time(61_836_772 as u64) Weight::from_ref_time(62_277_624)
// Standard Error: 7_808 // Standard Error: 8_020
.saturating_add(Weight::from_ref_time(2_532_660 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(2_558_933).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().reads(12))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Validators (r:1 w:0) // Storage: Staking Validators (r:1 w:0)
@@ -174,59 +178,59 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:1 w:1) // Storage: VoterList ListBags (r:1 w:1)
// Storage: VoterList CounterForListNodes (r:1 w:1) // Storage: VoterList CounterForListNodes (r:1 w:1)
fn chill() -> Weight { fn chill() -> Weight {
// Minimum execution time: 58_416 nanoseconds. // Minimum execution time: 59_765 nanoseconds.
Weight::from_ref_time(59_201_000 as u64) Weight::from_ref_time(60_359_000)
.saturating_add(T::DbWeight::get().reads(8 as u64)) .saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Payee (r:0 w:1) // Storage: Staking Payee (r:0 w:1)
fn set_payee() -> Weight { fn set_payee() -> Weight {
// Minimum execution time: 15_931 nanoseconds. // Minimum execution time: 15_948 nanoseconds.
Weight::from_ref_time(16_155_000 as u64) Weight::from_ref_time(16_331_000)
.saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking Bonded (r:1 w:1) // Storage: Staking Bonded (r:1 w:1)
// Storage: Staking Ledger (r:2 w:2) // Storage: Staking Ledger (r:2 w:2)
fn set_controller() -> Weight { fn set_controller() -> Weight {
// Minimum execution time: 22_947 nanoseconds. // Minimum execution time: 22_707 nanoseconds.
Weight::from_ref_time(23_520_000 as u64) Weight::from_ref_time(23_051_000)
.saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3 as u64)) .saturating_add(T::DbWeight::get().writes(3))
} }
// Storage: Staking ValidatorCount (r:0 w:1) // Storage: Staking ValidatorCount (r:0 w:1)
fn set_validator_count() -> Weight { fn set_validator_count() -> Weight {
// Minimum execution time: 4_206 nanoseconds. // Minimum execution time: 4_236 nanoseconds.
Weight::from_ref_time(4_371_000 as u64) Weight::from_ref_time(4_468_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking ForceEra (r:0 w:1) // Storage: Staking ForceEra (r:0 w:1)
fn force_no_eras() -> Weight { fn force_no_eras() -> Weight {
// Minimum execution time: 4_225 nanoseconds. // Minimum execution time: 4_264 nanoseconds.
Weight::from_ref_time(4_324_000 as u64) Weight::from_ref_time(4_397_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking ForceEra (r:0 w:1) // Storage: Staking ForceEra (r:0 w:1)
fn force_new_era() -> Weight { fn force_new_era() -> Weight {
// Minimum execution time: 4_361 nanoseconds. // Minimum execution time: 4_334 nanoseconds.
Weight::from_ref_time(4_489_000 as u64) Weight::from_ref_time(4_478_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking ForceEra (r:0 w:1) // Storage: Staking ForceEra (r:0 w:1)
fn force_new_era_always() -> Weight { fn force_new_era_always() -> Weight {
// Minimum execution time: 4_369 nanoseconds. // Minimum execution time: 4_429 nanoseconds.
Weight::from_ref_time(4_611_000 as u64) Weight::from_ref_time(4_522_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking Invulnerables (r:0 w:1) // Storage: Staking Invulnerables (r:0 w:1)
/// The range of component `v` is `[0, 1000]`. /// The range of component `v` is `[0, 1000]`.
fn set_invulnerables(v: u32, ) -> Weight { fn set_invulnerables(v: u32, ) -> Weight {
// Minimum execution time: 4_450 nanoseconds. // Minimum execution time: 4_573 nanoseconds.
Weight::from_ref_time(4_810_067 as u64) Weight::from_ref_time(4_979_271)
// Standard Error: 25 // Standard Error: 29
.saturating_add(Weight::from_ref_time(10_502 as u64).saturating_mul(v as u64)) .saturating_add(Weight::from_ref_time(10_199).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking Bonded (r:1 w:1) // Storage: Staking Bonded (r:1 w:1)
// Storage: Staking SlashingSpans (r:1 w:0) // Storage: Staking SlashingSpans (r:1 w:0)
@@ -243,23 +247,23 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking SpanSlash (r:0 w:2) // Storage: Staking SpanSlash (r:0 w:2)
/// The range of component `s` is `[0, 100]`. /// The range of component `s` is `[0, 100]`.
fn force_unstake(s: u32, ) -> Weight { fn force_unstake(s: u32, ) -> Weight {
// Minimum execution time: 71_970 nanoseconds. // Minimum execution time: 71_604 nanoseconds.
Weight::from_ref_time(77_083_021 as u64) Weight::from_ref_time(76_356_335)
// Standard Error: 2_001 // Standard Error: 2_128
.saturating_add(Weight::from_ref_time(866_865 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(924_544).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().reads(11))
.saturating_add(T::DbWeight::get().writes(12 as u64)) .saturating_add(T::DbWeight::get().writes(12))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
} }
// Storage: Staking UnappliedSlashes (r:1 w:1) // Storage: Staking UnappliedSlashes (r:1 w:1)
/// The range of component `s` is `[1, 1000]`. /// The range of component `s` is `[1, 1000]`.
fn cancel_deferred_slash(s: u32, ) -> Weight { fn cancel_deferred_slash(s: u32, ) -> Weight {
// Minimum execution time: 118_673 nanoseconds. // Minimum execution time: 111_696 nanoseconds.
Weight::from_ref_time(1_326_106_039 as u64) Weight::from_ref_time(919_128_155)
// Standard Error: 87_435 // Standard Error: 58_383
.saturating_add(Weight::from_ref_time(7_437_525 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(4_917_235).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking ErasValidatorReward (r:1 w:0) // Storage: Staking ErasValidatorReward (r:1 w:0)
@@ -272,14 +276,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
/// The range of component `n` is `[0, 512]`. /// The range of component `n` is `[0, 512]`.
fn payout_stakers_dead_controller(n: u32, ) -> Weight { fn payout_stakers_dead_controller(n: u32, ) -> Weight {
// Minimum execution time: 109_550 nanoseconds. // Minimum execution time: 110_470 nanoseconds.
Weight::from_ref_time(206_474_081 as u64) Weight::from_ref_time(214_513_056)
// Standard Error: 16_169 // Standard Error: 17_132
.saturating_add(Weight::from_ref_time(21_555_193 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(21_681_392).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2 as u64)) .saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
} }
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking ErasValidatorReward (r:1 w:0) // Storage: Staking ErasValidatorReward (r:1 w:0)
@@ -293,14 +297,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
/// The range of component `n` is `[0, 512]`. /// The range of component `n` is `[0, 512]`.
fn payout_stakers_alive_staked(n: u32, ) -> Weight { fn payout_stakers_alive_staked(n: u32, ) -> Weight {
// Minimum execution time: 126_170 nanoseconds. // Minimum execution time: 127_623 nanoseconds.
Weight::from_ref_time(194_778_058 as u64) Weight::from_ref_time(71_193_329)
// Standard Error: 27_867 // Standard Error: 104_006
.saturating_add(Weight::from_ref_time(30_845_851 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(31_734_017).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(10 as u64)) .saturating_add(T::DbWeight::get().reads(10))
.saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(3 as u64)) .saturating_add(T::DbWeight::get().writes(3))
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into())))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
@@ -310,12 +314,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:2 w:2) // Storage: VoterList ListBags (r:2 w:2)
/// The range of component `l` is `[1, 32]`. /// The range of component `l` is `[1, 32]`.
fn rebond(l: u32, ) -> Weight { fn rebond(l: u32, ) -> Weight {
// Minimum execution time: 82_627 nanoseconds. // Minimum execution time: 81_989 nanoseconds.
Weight::from_ref_time(84_126_338 as u64) Weight::from_ref_time(84_089_774)
// Standard Error: 4_351 // Standard Error: 3_862
.saturating_add(Weight::from_ref_time(45_779 as u64).saturating_mul(l as u64)) .saturating_add(Weight::from_ref_time(34_551).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(8 as u64)) .saturating_add(T::DbWeight::get().writes(8))
} }
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
// Storage: Staking Bonded (r:1 w:1) // Storage: Staking Bonded (r:1 w:1)
@@ -332,17 +336,16 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking SpanSlash (r:0 w:1) // Storage: Staking SpanSlash (r:0 w:1)
/// The range of component `s` is `[1, 100]`. /// The range of component `s` is `[1, 100]`.
fn reap_stash(s: u32, ) -> Weight { fn reap_stash(s: u32, ) -> Weight {
// Minimum execution time: 84_348 nanoseconds. // Minimum execution time: 81_744 nanoseconds.
Weight::from_ref_time(84_781_622 as u64) Weight::from_ref_time(83_697_917)
// Standard Error: 3_494 // Standard Error: 2_378
.saturating_add(Weight::from_ref_time(869_042 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(928_791).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().reads(12))
.saturating_add(T::DbWeight::get().writes(12 as u64)) .saturating_add(T::DbWeight::get().writes(12))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
} }
// Storage: VoterList CounterForListNodes (r:1 w:0) // Storage: VoterList CounterForListNodes (r:1 w:0)
// Storage: Staking SlashingSpans (r:1 w:0) // Storage: VoterList ListBags (r:166 w:0)
// Storage: VoterList ListBags (r:183 w:0)
// Storage: VoterList ListNodes (r:101 w:0) // Storage: VoterList ListNodes (r:101 w:0)
// Storage: Staking Nominators (r:101 w:0) // Storage: Staking Nominators (r:101 w:0)
// Storage: Staking Validators (r:2 w:0) // Storage: Staking Validators (r:2 w:0)
@@ -358,53 +361,57 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking ErasStakers (r:0 w:1) // Storage: Staking ErasStakers (r:0 w:1)
// Storage: Staking ErasTotalStake (r:0 w:1) // Storage: Staking ErasTotalStake (r:0 w:1)
// Storage: Staking ErasStartSessionIndex (r:0 w:1) // Storage: Staking ErasStartSessionIndex (r:0 w:1)
// Storage: Staking MinimumActiveStake (r:0 w:1)
/// The range of component `v` is `[1, 10]`. /// The range of component `v` is `[1, 10]`.
/// The range of component `n` is `[0, 100]`. /// The range of component `n` is `[0, 100]`.
fn new_era(v: u32, n: u32, ) -> Weight { fn new_era(v: u32, n: u32, ) -> Weight {
// Minimum execution time: 431_295 nanoseconds. // Minimum execution time: 426_726 nanoseconds.
Weight::from_ref_time(434_958_000 as u64) Weight::from_ref_time(427_956_000)
// Standard Error: 1_764_016 // Standard Error: 1_694_488
.saturating_add(Weight::from_ref_time(57_522_953 as u64).saturating_mul(v as u64)) .saturating_add(Weight::from_ref_time(55_297_221).saturating_mul(v.into()))
// Standard Error: 175_774 // Standard Error: 168_846
.saturating_add(Weight::from_ref_time(13_158_469 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(12_858_483).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(191 as u64)) .saturating_add(T::DbWeight::get().reads(173))
.saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(v as u64))) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(5))
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(v as u64))) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(v.into())))
} }
// Storage: VoterList CounterForListNodes (r:1 w:0) // Storage: VoterList CounterForListNodes (r:1 w:0)
// Storage: VoterList ListBags (r:200 w:0) // Storage: VoterList ListBags (r:166 w:0)
// Storage: VoterList ListNodes (r:1500 w:0) // Storage: VoterList ListNodes (r:1500 w:0)
// Storage: Staking Nominators (r:1500 w:0) // Storage: Staking Nominators (r:1500 w:0)
// Storage: Staking Validators (r:500 w:0) // Storage: Staking Validators (r:500 w:0)
// Storage: Staking Bonded (r:1500 w:0) // Storage: Staking Bonded (r:1500 w:0)
// Storage: Staking Ledger (r:1500 w:0) // Storage: Staking Ledger (r:1500 w:0)
// Storage: System BlockWeight (r:1 w:1)
// Storage: Staking MinimumActiveStake (r:0 w:1)
/// The range of component `v` is `[500, 1000]`. /// The range of component `v` is `[500, 1000]`.
/// The range of component `n` is `[500, 1000]`. /// The range of component `n` is `[500, 1000]`.
fn get_npos_voters(v: u32, n: u32, ) -> Weight { fn get_npos_voters(v: u32, n: u32, ) -> Weight {
// Minimum execution time: 24_634_585 nanoseconds. // Minimum execution time: 25_092_560 nanoseconds.
Weight::from_ref_time(24_718_377_000) Weight::from_ref_time(25_487_312_000)
// Standard Error: 324_839 // Standard Error: 547_909
.saturating_add(Weight::from_ref_time(3_654_508).saturating_mul(v.into())) .saturating_add(Weight::from_ref_time(4_859_299).saturating_mul(v.into()))
// Standard Error: 324_839 // Standard Error: 547_909
.saturating_add(Weight::from_ref_time(2_927_535).saturating_mul(n.into())) .saturating_add(Weight::from_ref_time(4_082_635).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(201)) .saturating_add(T::DbWeight::get().reads(168))
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into()))) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2))
} }
// Storage: Staking CounterForValidators (r:1 w:0) // Storage: Staking CounterForValidators (r:1 w:0)
// Storage: Staking Validators (r:501 w:0) // Storage: Staking Validators (r:501 w:0)
// Storage: System BlockWeight (r:1 w:1) // Storage: System BlockWeight (r:1 w:1)
/// The range of component `v` is `[500, 1000]`. /// The range of component `v` is `[500, 1000]`.
fn get_npos_targets(v: u32, ) -> Weight { fn get_npos_targets(v: u32, ) -> Weight {
// Minimum execution time: 3_520_733 nanoseconds. // Minimum execution time: 3_516_893 nanoseconds.
Weight::from_ref_time(3_602_387_000 as u64) Weight::from_ref_time(139_483_001)
// Standard Error: 41_226 // Standard Error: 43_749
.saturating_add(Weight::from_ref_time(2_633_121 as u64).saturating_mul(v as u64)) .saturating_add(Weight::from_ref_time(7_181_910).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking MinCommission (r:0 w:1) // Storage: Staking MinCommission (r:0 w:1)
// Storage: Staking MinValidatorBond (r:0 w:1) // Storage: Staking MinValidatorBond (r:0 w:1)
@@ -413,9 +420,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking MaxNominatorsCount (r:0 w:1) // Storage: Staking MaxNominatorsCount (r:0 w:1)
// Storage: Staking MinNominatorBond (r:0 w:1) // Storage: Staking MinNominatorBond (r:0 w:1)
fn set_staking_configs_all_set() -> Weight { fn set_staking_configs_all_set() -> Weight {
// Minimum execution time: 7_287 nanoseconds. // Minimum execution time: 7_596 nanoseconds.
Weight::from_ref_time(7_534_000 as u64) Weight::from_ref_time(7_960_000)
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking MinCommission (r:0 w:1) // Storage: Staking MinCommission (r:0 w:1)
// Storage: Staking MinValidatorBond (r:0 w:1) // Storage: Staking MinValidatorBond (r:0 w:1)
@@ -424,9 +431,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking MaxNominatorsCount (r:0 w:1) // Storage: Staking MaxNominatorsCount (r:0 w:1)
// Storage: Staking MinNominatorBond (r:0 w:1) // Storage: Staking MinNominatorBond (r:0 w:1)
fn set_staking_configs_all_remove() -> Weight { fn set_staking_configs_all_remove() -> Weight {
// Minimum execution time: 6_570 nanoseconds. // Minimum execution time: 7_041 nanoseconds.
Weight::from_ref_time(6_834_000 as u64) Weight::from_ref_time(7_258_000)
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Nominators (r:1 w:1) // Storage: Staking Nominators (r:1 w:1)
@@ -439,17 +446,23 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:1 w:1) // Storage: VoterList ListBags (r:1 w:1)
// Storage: VoterList CounterForListNodes (r:1 w:1) // Storage: VoterList CounterForListNodes (r:1 w:1)
fn chill_other() -> Weight { fn chill_other() -> Weight {
// Minimum execution time: 69_446 nanoseconds. // Minimum execution time: 69_602 nanoseconds.
Weight::from_ref_time(71_663_000 as u64) Weight::from_ref_time(71_173_000)
.saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().reads(11))
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking MinCommission (r:1 w:0) // Storage: Staking MinCommission (r:1 w:0)
// Storage: Staking Validators (r:1 w:1) // Storage: Staking Validators (r:1 w:1)
fn force_apply_min_commission() -> Weight { fn force_apply_min_commission() -> Weight {
// Minimum execution time: 15_387 nanoseconds. // Minimum execution time: 15_488 nanoseconds.
Weight::from_ref_time(15_571_000 as u64) Weight::from_ref_time(15_690_000)
.saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Staking MinCommission (r:0 w:1)
fn set_min_commission() -> Weight {
// Minimum execution time: 4_360 nanoseconds.
Weight::from_ref_time(4_617_000)
.saturating_add(T::DbWeight::get().writes(1))
} }
} }
+2 -3
View File
@@ -553,7 +553,7 @@ parameter_types! {
pub const MaxNominations: u32 = <NposCompactSolution16 as frame_election_provider_support::NposSolution>::LIMIT as u32; pub const MaxNominations: u32 = <NposCompactSolution16 as frame_election_provider_support::NposSolution>::LIMIT as u32;
} }
type SlashCancelOrigin = EitherOfDiverse< type StakingAdminOrigin = EitherOfDiverse<
EnsureRoot<AccountId>, EnsureRoot<AccountId>,
pallet_collective::EnsureProportionAtLeast<AccountId, CouncilCollective, 3, 4>, pallet_collective::EnsureProportionAtLeast<AccountId, CouncilCollective, 3, 4>,
>; >;
@@ -599,8 +599,7 @@ impl pallet_staking::Config for Runtime {
type SessionsPerEra = SessionsPerEra; type SessionsPerEra = SessionsPerEra;
type BondingDuration = BondingDuration; type BondingDuration = BondingDuration;
type SlashDeferDuration = SlashDeferDuration; type SlashDeferDuration = SlashDeferDuration;
// A super-majority of the council can cancel the slash. type AdminOrigin = StakingAdminOrigin;
type SlashCancelOrigin = SlashCancelOrigin;
type SessionInterface = Self; type SessionInterface = Self;
type EraPayout = EraPayout; type EraPayout = EraPayout;
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
@@ -16,21 +16,23 @@
//! Autogenerated weights for `pallet_staking` //! Autogenerated weights for `pallet_staking`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-11-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! DATE: 2022-12-26, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` //! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 1024 //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 1024
// Executed Command: // Executed Command:
// ./target/production/polkadot // /home/benchbot/cargo_target_dir/production/polkadot
// benchmark // benchmark
// pallet // pallet
// --chain=polkadot-dev
// --steps=50 // --steps=50
// --repeat=20 // --repeat=20
// --pallet=pallet_staking
// --extrinsic=* // --extrinsic=*
// --execution=wasm // --execution=wasm
// --wasm-execution=compiled // --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/polkadot/.git/.artifacts/bench.json
// --pallet=pallet_staking
// --chain=polkadot-dev
// --header=./file_header.txt // --header=./file_header.txt
// --output=./runtime/polkadot/src/weights/ // --output=./runtime/polkadot/src/weights/
@@ -50,10 +52,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
// Storage: Staking Payee (r:0 w:1) // Storage: Staking Payee (r:0 w:1)
fn bond() -> Weight { fn bond() -> Weight {
// Minimum execution time: 46_662 nanoseconds. // Minimum execution time: 47_596 nanoseconds.
Weight::from_ref_time(47_196_000 as u64) Weight::from_ref_time(48_262_000)
.saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(4))
} }
// Storage: Staking Bonded (r:1 w:0) // Storage: Staking Bonded (r:1 w:0)
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
@@ -61,10 +63,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListNodes (r:3 w:3) // Storage: VoterList ListNodes (r:3 w:3)
// Storage: VoterList ListBags (r:2 w:2) // Storage: VoterList ListBags (r:2 w:2)
fn bond_extra() -> Weight { fn bond_extra() -> Weight {
// Minimum execution time: 84_636 nanoseconds. // Minimum execution time: 85_311 nanoseconds.
Weight::from_ref_time(85_507_000 as u64) Weight::from_ref_time(85_983_000)
.saturating_add(T::DbWeight::get().reads(8 as u64)) .saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(7 as u64)) .saturating_add(T::DbWeight::get().writes(7))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Staking Nominators (r:1 w:0) // Storage: Staking Nominators (r:1 w:0)
@@ -76,10 +78,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking Bonded (r:1 w:0) // Storage: Staking Bonded (r:1 w:0)
// Storage: VoterList ListBags (r:2 w:2) // Storage: VoterList ListBags (r:2 w:2)
fn unbond() -> Weight { fn unbond() -> Weight {
// Minimum execution time: 89_960 nanoseconds. // Minimum execution time: 91_155 nanoseconds.
Weight::from_ref_time(90_775_000 as u64) Weight::from_ref_time(92_284_000)
.saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().reads(12))
.saturating_add(T::DbWeight::get().writes(8 as u64)) .saturating_add(T::DbWeight::get().writes(8))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
@@ -87,12 +89,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
/// The range of component `s` is `[0, 100]`. /// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_update(s: u32, ) -> Weight { fn withdraw_unbonded_update(s: u32, ) -> Weight {
// Minimum execution time: 40_902 nanoseconds. // Minimum execution time: 40_335 nanoseconds.
Weight::from_ref_time(42_037_878 as u64) Weight::from_ref_time(41_980_327)
// Standard Error: 759 // Standard Error: 5_476
.saturating_add(Weight::from_ref_time(18_773 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(22_616).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3 as u64)) .saturating_add(T::DbWeight::get().writes(3))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
@@ -107,12 +109,16 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
// Storage: Staking Payee (r:0 w:1) // Storage: Staking Payee (r:0 w:1)
// Storage: Staking SpanSlash (r:0 w:2)
/// The range of component `s` is `[0, 100]`. /// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_kill(_s: u32, ) -> Weight { fn withdraw_unbonded_kill(s: u32, ) -> Weight {
// Minimum execution time: 76_841 nanoseconds. // Minimum execution time: 79_780 nanoseconds.
Weight::from_ref_time(78_511_970 as u64) Weight::from_ref_time(83_493_244)
.saturating_add(T::DbWeight::get().reads(13 as u64)) // Standard Error: 2_034
.saturating_add(T::DbWeight::get().writes(11 as u64)) .saturating_add(Weight::from_ref_time(921_312).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(13))
.saturating_add(T::DbWeight::get().writes(12))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking MinValidatorBond (r:1 w:0) // Storage: Staking MinValidatorBond (r:1 w:0)
@@ -126,22 +132,22 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList CounterForListNodes (r:1 w:1) // Storage: VoterList CounterForListNodes (r:1 w:1)
// Storage: Staking CounterForValidators (r:1 w:1) // Storage: Staking CounterForValidators (r:1 w:1)
fn validate() -> Weight { fn validate() -> Weight {
// Minimum execution time: 61_371 nanoseconds. // Minimum execution time: 60_128 nanoseconds.
Weight::from_ref_time(62_111_000 as u64) Weight::from_ref_time(60_981_000)
.saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().reads(11))
.saturating_add(T::DbWeight::get().writes(5 as u64)) .saturating_add(T::DbWeight::get().writes(5))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Nominators (r:1 w:1) // Storage: Staking Nominators (r:1 w:1)
/// The range of component `k` is `[1, 128]`. /// The range of component `k` is `[1, 128]`.
fn kick(k: u32, ) -> Weight { fn kick(k: u32, ) -> Weight {
// Minimum execution time: 32_802 nanoseconds. // Minimum execution time: 32_908 nanoseconds.
Weight::from_ref_time(31_148_886 as u64) Weight::from_ref_time(29_665_429)
// Standard Error: 8_584 // Standard Error: 8_170
.saturating_add(Weight::from_ref_time(6_310_078 as u64).saturating_mul(k as u64)) .saturating_add(Weight::from_ref_time(6_484_323).saturating_mul(k.into()))
.saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(k as u64))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into())))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(k as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into())))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking MinNominatorBond (r:1 w:0) // Storage: Staking MinNominatorBond (r:1 w:0)
@@ -156,13 +162,13 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking CounterForNominators (r:1 w:1) // Storage: Staking CounterForNominators (r:1 w:1)
/// The range of component `n` is `[1, 16]`. /// The range of component `n` is `[1, 16]`.
fn nominate(n: u32, ) -> Weight { fn nominate(n: u32, ) -> Weight {
// Minimum execution time: 63_601 nanoseconds. // Minimum execution time: 63_783 nanoseconds.
Weight::from_ref_time(62_683_368 as u64) Weight::from_ref_time(63_455_416)
// Standard Error: 5_693 // Standard Error: 6_146
.saturating_add(Weight::from_ref_time(2_387_381 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(2_387_675).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().reads(12))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Validators (r:1 w:0) // Storage: Staking Validators (r:1 w:0)
@@ -172,59 +178,59 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:1 w:1) // Storage: VoterList ListBags (r:1 w:1)
// Storage: VoterList CounterForListNodes (r:1 w:1) // Storage: VoterList CounterForListNodes (r:1 w:1)
fn chill() -> Weight { fn chill() -> Weight {
// Minimum execution time: 58_414 nanoseconds. // Minimum execution time: 59_804 nanoseconds.
Weight::from_ref_time(58_926_000 as u64) Weight::from_ref_time(60_578_000)
.saturating_add(T::DbWeight::get().reads(8 as u64)) .saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Payee (r:0 w:1) // Storage: Staking Payee (r:0 w:1)
fn set_payee() -> Weight { fn set_payee() -> Weight {
// Minimum execution time: 15_904 nanoseconds. // Minimum execution time: 15_947 nanoseconds.
Weight::from_ref_time(16_192_000 as u64) Weight::from_ref_time(16_220_000)
.saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking Bonded (r:1 w:1) // Storage: Staking Bonded (r:1 w:1)
// Storage: Staking Ledger (r:2 w:2) // Storage: Staking Ledger (r:2 w:2)
fn set_controller() -> Weight { fn set_controller() -> Weight {
// Minimum execution time: 23_346 nanoseconds. // Minimum execution time: 22_585 nanoseconds.
Weight::from_ref_time(23_789_000 as u64) Weight::from_ref_time(23_242_000)
.saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3 as u64)) .saturating_add(T::DbWeight::get().writes(3))
} }
// Storage: Staking ValidatorCount (r:0 w:1) // Storage: Staking ValidatorCount (r:0 w:1)
fn set_validator_count() -> Weight { fn set_validator_count() -> Weight {
// Minimum execution time: 4_391 nanoseconds. // Minimum execution time: 4_303 nanoseconds.
Weight::from_ref_time(4_537_000 as u64) Weight::from_ref_time(4_470_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking ForceEra (r:0 w:1) // Storage: Staking ForceEra (r:0 w:1)
fn force_no_eras() -> Weight { fn force_no_eras() -> Weight {
// Minimum execution time: 4_401 nanoseconds. // Minimum execution time: 4_347 nanoseconds.
Weight::from_ref_time(4_566_000 as u64) Weight::from_ref_time(4_522_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking ForceEra (r:0 w:1) // Storage: Staking ForceEra (r:0 w:1)
fn force_new_era() -> Weight { fn force_new_era() -> Weight {
// Minimum execution time: 4_332 nanoseconds. // Minimum execution time: 4_313 nanoseconds.
Weight::from_ref_time(4_500_000 as u64) Weight::from_ref_time(4_548_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking ForceEra (r:0 w:1) // Storage: Staking ForceEra (r:0 w:1)
fn force_new_era_always() -> Weight { fn force_new_era_always() -> Weight {
// Minimum execution time: 4_311 nanoseconds. // Minimum execution time: 4_302 nanoseconds.
Weight::from_ref_time(4_424_000 as u64) Weight::from_ref_time(4_487_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking Invulnerables (r:0 w:1) // Storage: Staking Invulnerables (r:0 w:1)
/// The range of component `v` is `[0, 1000]`. /// The range of component `v` is `[0, 1000]`.
fn set_invulnerables(v: u32, ) -> Weight { fn set_invulnerables(v: u32, ) -> Weight {
// Minimum execution time: 4_728 nanoseconds. // Minimum execution time: 4_414 nanoseconds.
Weight::from_ref_time(5_009_153 as u64) Weight::from_ref_time(4_950_256)
// Standard Error: 40 // Standard Error: 34
.saturating_add(Weight::from_ref_time(13_575 as u64).saturating_mul(v as u64)) .saturating_add(Weight::from_ref_time(11_147).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking Bonded (r:1 w:1) // Storage: Staking Bonded (r:1 w:1)
// Storage: Staking SlashingSpans (r:1 w:0) // Storage: Staking SlashingSpans (r:1 w:0)
@@ -241,23 +247,23 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking SpanSlash (r:0 w:2) // Storage: Staking SpanSlash (r:0 w:2)
/// The range of component `s` is `[0, 100]`. /// The range of component `s` is `[0, 100]`.
fn force_unstake(s: u32, ) -> Weight { fn force_unstake(s: u32, ) -> Weight {
// Minimum execution time: 70_738 nanoseconds. // Minimum execution time: 71_586 nanoseconds.
Weight::from_ref_time(75_635_135 as u64) Weight::from_ref_time(76_784_220)
// Standard Error: 1_963 // Standard Error: 2_649
.saturating_add(Weight::from_ref_time(886_440 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(914_345).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().reads(11))
.saturating_add(T::DbWeight::get().writes(12 as u64)) .saturating_add(T::DbWeight::get().writes(12))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
} }
// Storage: Staking UnappliedSlashes (r:1 w:1) // Storage: Staking UnappliedSlashes (r:1 w:1)
/// The range of component `s` is `[1, 1000]`. /// The range of component `s` is `[1, 1000]`.
fn cancel_deferred_slash(s: u32, ) -> Weight { fn cancel_deferred_slash(s: u32, ) -> Weight {
// Minimum execution time: 121_057 nanoseconds. // Minimum execution time: 113_087 nanoseconds.
Weight::from_ref_time(930_162_123 as u64) Weight::from_ref_time(919_333_329)
// Standard Error: 58_030 // Standard Error: 58_190
.saturating_add(Weight::from_ref_time(4_954_466 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(4_926_882).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking ErasValidatorReward (r:1 w:0) // Storage: Staking ErasValidatorReward (r:1 w:0)
@@ -270,14 +276,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
/// The range of component `n` is `[0, 512]`. /// The range of component `n` is `[0, 512]`.
fn payout_stakers_dead_controller(n: u32, ) -> Weight { fn payout_stakers_dead_controller(n: u32, ) -> Weight {
// Minimum execution time: 109_038 nanoseconds. // Minimum execution time: 109_456 nanoseconds.
Weight::from_ref_time(209_711_375 as u64) Weight::from_ref_time(218_455_664)
// Standard Error: 14_502 // Standard Error: 16_502
.saturating_add(Weight::from_ref_time(21_251_776 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(21_415_223).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2 as u64)) .saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
} }
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking ErasValidatorReward (r:1 w:0) // Storage: Staking ErasValidatorReward (r:1 w:0)
@@ -291,14 +297,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
/// The range of component `n` is `[0, 512]`. /// The range of component `n` is `[0, 512]`.
fn payout_stakers_alive_staked(n: u32, ) -> Weight { fn payout_stakers_alive_staked(n: u32, ) -> Weight {
// Minimum execution time: 126_327 nanoseconds. // Minimum execution time: 127_355 nanoseconds.
Weight::from_ref_time(172_023_969 as u64) Weight::from_ref_time(183_799_193)
// Standard Error: 77_234 // Standard Error: 31_316
.saturating_add(Weight::from_ref_time(31_062_247 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(31_085_934).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(10 as u64)) .saturating_add(T::DbWeight::get().reads(10))
.saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(3 as u64)) .saturating_add(T::DbWeight::get().writes(3))
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into())))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
@@ -308,12 +314,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:2 w:2) // Storage: VoterList ListBags (r:2 w:2)
/// The range of component `l` is `[1, 32]`. /// The range of component `l` is `[1, 32]`.
fn rebond(l: u32, ) -> Weight { fn rebond(l: u32, ) -> Weight {
// Minimum execution time: 81_709 nanoseconds. // Minimum execution time: 82_240 nanoseconds.
Weight::from_ref_time(83_708_699 as u64) Weight::from_ref_time(84_253_539)
// Standard Error: 4_311 // Standard Error: 4_496
.saturating_add(Weight::from_ref_time(44_788 as u64).saturating_mul(l as u64)) .saturating_add(Weight::from_ref_time(38_336).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(8 as u64)) .saturating_add(T::DbWeight::get().writes(8))
} }
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
// Storage: Staking Bonded (r:1 w:1) // Storage: Staking Bonded (r:1 w:1)
@@ -330,16 +336,15 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking SpanSlash (r:0 w:1) // Storage: Staking SpanSlash (r:0 w:1)
/// The range of component `s` is `[1, 100]`. /// The range of component `s` is `[1, 100]`.
fn reap_stash(s: u32, ) -> Weight { fn reap_stash(s: u32, ) -> Weight {
// Minimum execution time: 81_287 nanoseconds. // Minimum execution time: 81_232 nanoseconds.
Weight::from_ref_time(83_420_670 as u64) Weight::from_ref_time(83_432_135)
// Standard Error: 2_357 // Standard Error: 1_903
.saturating_add(Weight::from_ref_time(879_072 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(920_509).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().reads(12))
.saturating_add(T::DbWeight::get().writes(12 as u64)) .saturating_add(T::DbWeight::get().writes(12))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
} }
// Storage: VoterList CounterForListNodes (r:1 w:0) // Storage: VoterList CounterForListNodes (r:1 w:0)
// Storage: Staking SlashingSpans (r:1 w:0)
// Storage: VoterList ListBags (r:178 w:0) // Storage: VoterList ListBags (r:178 w:0)
// Storage: VoterList ListNodes (r:101 w:0) // Storage: VoterList ListNodes (r:101 w:0)
// Storage: Staking Nominators (r:101 w:0) // Storage: Staking Nominators (r:101 w:0)
@@ -356,53 +361,57 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking ErasStakers (r:0 w:1) // Storage: Staking ErasStakers (r:0 w:1)
// Storage: Staking ErasTotalStake (r:0 w:1) // Storage: Staking ErasTotalStake (r:0 w:1)
// Storage: Staking ErasStartSessionIndex (r:0 w:1) // Storage: Staking ErasStartSessionIndex (r:0 w:1)
// Storage: Staking MinimumActiveStake (r:0 w:1)
/// The range of component `v` is `[1, 10]`. /// The range of component `v` is `[1, 10]`.
/// The range of component `n` is `[0, 100]`. /// The range of component `n` is `[0, 100]`.
fn new_era(v: u32, n: u32, ) -> Weight { fn new_era(v: u32, n: u32, ) -> Weight {
// Minimum execution time: 432_765 nanoseconds. // Minimum execution time: 443_914 nanoseconds.
Weight::from_ref_time(434_560_000 as u64) Weight::from_ref_time(445_239_000)
// Standard Error: 1_840_727 // Standard Error: 1_702_013
.saturating_add(Weight::from_ref_time(60_273_780 as u64).saturating_mul(v as u64)) .saturating_add(Weight::from_ref_time(55_886_094).saturating_mul(v.into()))
// Standard Error: 183_418 // Standard Error: 169_596
.saturating_add(Weight::from_ref_time(13_301_391 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(13_054_062).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(186 as u64)) .saturating_add(T::DbWeight::get().reads(185))
.saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(v as u64))) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(5))
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(v as u64))) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(v.into())))
} }
// Storage: VoterList CounterForListNodes (r:1 w:0) // Storage: VoterList CounterForListNodes (r:1 w:0)
// Storage: VoterList ListBags (r:200 w:0) // Storage: VoterList ListBags (r:178 w:0)
// Storage: VoterList ListNodes (r:1500 w:0) // Storage: VoterList ListNodes (r:1500 w:0)
// Storage: Staking Nominators (r:1500 w:0) // Storage: Staking Nominators (r:1500 w:0)
// Storage: Staking Validators (r:500 w:0) // Storage: Staking Validators (r:500 w:0)
// Storage: Staking Bonded (r:1500 w:0) // Storage: Staking Bonded (r:1500 w:0)
// Storage: Staking Ledger (r:1500 w:0) // Storage: Staking Ledger (r:1500 w:0)
// Storage: System BlockWeight (r:1 w:1)
// Storage: Staking MinimumActiveStake (r:0 w:1)
/// The range of component `v` is `[500, 1000]`. /// The range of component `v` is `[500, 1000]`.
/// The range of component `n` is `[500, 1000]`. /// The range of component `n` is `[500, 1000]`.
fn get_npos_voters(v: u32, n: u32, ) -> Weight { fn get_npos_voters(v: u32, n: u32, ) -> Weight {
// Minimum execution time: 24_634_585 nanoseconds. // Minimum execution time: 25_042_404 nanoseconds.
Weight::from_ref_time(24_718_377_000) Weight::from_ref_time(25_221_780_000)
// Standard Error: 324_839 // Standard Error: 587_812
.saturating_add(Weight::from_ref_time(3_654_508).saturating_mul(v.into())) .saturating_add(Weight::from_ref_time(6_736_902).saturating_mul(v.into()))
// Standard Error: 324_839 // Standard Error: 587_812
.saturating_add(Weight::from_ref_time(2_927_535).saturating_mul(n.into())) .saturating_add(Weight::from_ref_time(2_992_604).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(201)) .saturating_add(T::DbWeight::get().reads(180))
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into()))) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2))
} }
// Storage: Staking CounterForValidators (r:1 w:0) // Storage: Staking CounterForValidators (r:1 w:0)
// Storage: Staking Validators (r:501 w:0) // Storage: Staking Validators (r:501 w:0)
// Storage: System BlockWeight (r:1 w:1) // Storage: System BlockWeight (r:1 w:1)
/// The range of component `v` is `[500, 1000]`. /// The range of component `v` is `[500, 1000]`.
fn get_npos_targets(v: u32, ) -> Weight { fn get_npos_targets(v: u32, ) -> Weight {
// Minimum execution time: 3_556_361 nanoseconds. // Minimum execution time: 3_554_519 nanoseconds.
Weight::from_ref_time(120_792_037 as u64) Weight::from_ref_time(111_958_458)
// Standard Error: 57_285 // Standard Error: 51_313
.saturating_add(Weight::from_ref_time(7_333_197 as u64).saturating_mul(v as u64)) .saturating_add(Weight::from_ref_time(7_328_224).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking MinCommission (r:0 w:1) // Storage: Staking MinCommission (r:0 w:1)
// Storage: Staking MinValidatorBond (r:0 w:1) // Storage: Staking MinValidatorBond (r:0 w:1)
@@ -411,9 +420,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking MaxNominatorsCount (r:0 w:1) // Storage: Staking MaxNominatorsCount (r:0 w:1)
// Storage: Staking MinNominatorBond (r:0 w:1) // Storage: Staking MinNominatorBond (r:0 w:1)
fn set_staking_configs_all_set() -> Weight { fn set_staking_configs_all_set() -> Weight {
// Minimum execution time: 7_322 nanoseconds. // Minimum execution time: 7_416 nanoseconds.
Weight::from_ref_time(7_596_000 as u64) Weight::from_ref_time(7_844_000)
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking MinCommission (r:0 w:1) // Storage: Staking MinCommission (r:0 w:1)
// Storage: Staking MinValidatorBond (r:0 w:1) // Storage: Staking MinValidatorBond (r:0 w:1)
@@ -422,9 +431,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking MaxNominatorsCount (r:0 w:1) // Storage: Staking MaxNominatorsCount (r:0 w:1)
// Storage: Staking MinNominatorBond (r:0 w:1) // Storage: Staking MinNominatorBond (r:0 w:1)
fn set_staking_configs_all_remove() -> Weight { fn set_staking_configs_all_remove() -> Weight {
// Minimum execution time: 6_842 nanoseconds. // Minimum execution time: 6_765 nanoseconds.
Weight::from_ref_time(7_029_000 as u64) Weight::from_ref_time(7_042_000)
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Nominators (r:1 w:1) // Storage: Staking Nominators (r:1 w:1)
@@ -437,17 +446,23 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:1 w:1) // Storage: VoterList ListBags (r:1 w:1)
// Storage: VoterList CounterForListNodes (r:1 w:1) // Storage: VoterList CounterForListNodes (r:1 w:1)
fn chill_other() -> Weight { fn chill_other() -> Weight {
// Minimum execution time: 69_097 nanoseconds. // Minimum execution time: 69_321 nanoseconds.
Weight::from_ref_time(69_731_000 as u64) Weight::from_ref_time(70_413_000)
.saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().reads(11))
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking MinCommission (r:1 w:0) // Storage: Staking MinCommission (r:1 w:0)
// Storage: Staking Validators (r:1 w:1) // Storage: Staking Validators (r:1 w:1)
fn force_apply_min_commission() -> Weight { fn force_apply_min_commission() -> Weight {
// Minimum execution time: 15_563 nanoseconds. // Minimum execution time: 14_915 nanoseconds.
Weight::from_ref_time(15_867_000 as u64) Weight::from_ref_time(15_495_000)
.saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Staking MinCommission (r:0 w:1)
fn set_min_commission() -> Weight {
// Minimum execution time: 4_184 nanoseconds.
Weight::from_ref_time(4_326_000)
.saturating_add(T::DbWeight::get().writes(1))
} }
} }
+1 -2
View File
@@ -348,8 +348,7 @@ impl pallet_staking::Config for Runtime {
type SessionsPerEra = SessionsPerEra; type SessionsPerEra = SessionsPerEra;
type BondingDuration = BondingDuration; type BondingDuration = BondingDuration;
type SlashDeferDuration = SlashDeferDuration; type SlashDeferDuration = SlashDeferDuration;
// A majority of the council can cancel the slash. type AdminOrigin = frame_system::EnsureNever<()>;
type SlashCancelOrigin = frame_system::EnsureNever<()>;
type SessionInterface = Self; type SessionInterface = Self;
type EraPayout = pallet_staking::ConvertCurve<RewardCurve>; type EraPayout = pallet_staking::ConvertCurve<RewardCurve>;
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
+1 -2
View File
@@ -509,8 +509,7 @@ impl pallet_staking::Config for Runtime {
type SessionsPerEra = SessionsPerEra; type SessionsPerEra = SessionsPerEra;
type BondingDuration = BondingDuration; type BondingDuration = BondingDuration;
type SlashDeferDuration = SlashDeferDuration; type SlashDeferDuration = SlashDeferDuration;
// A majority of the council can cancel the slash. type AdminOrigin = EnsureRoot<AccountId>;
type SlashCancelOrigin = EnsureRoot<AccountId>;
type SessionInterface = Self; type SessionInterface = Self;
type EraPayout = pallet_staking::ConvertCurve<RewardCurve>; type EraPayout = pallet_staking::ConvertCurve<RewardCurve>;
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
@@ -16,21 +16,23 @@
//! Autogenerated weights for `pallet_staking` //! Autogenerated weights for `pallet_staking`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-11-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! DATE: 2022-12-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` //! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024 //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
// Executed Command: // Executed Command:
// ./target/production/polkadot // /home/benchbot/cargo_target_dir/production/polkadot
// benchmark // benchmark
// pallet // pallet
// --chain=westend-dev
// --steps=50 // --steps=50
// --repeat=20 // --repeat=20
// --pallet=pallet_staking
// --extrinsic=* // --extrinsic=*
// --execution=wasm // --execution=wasm
// --wasm-execution=compiled // --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/polkadot/.git/.artifacts/bench.json
// --pallet=pallet_staking
// --chain=westend-dev
// --header=./file_header.txt // --header=./file_header.txt
// --output=./runtime/westend/src/weights/ // --output=./runtime/westend/src/weights/
@@ -50,10 +52,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
// Storage: Staking Payee (r:0 w:1) // Storage: Staking Payee (r:0 w:1)
fn bond() -> Weight { fn bond() -> Weight {
// Minimum execution time: 47_864 nanoseconds. // Minimum execution time: 47_938 nanoseconds.
Weight::from_ref_time(48_374_000 as u64) Weight::from_ref_time(48_766_000)
.saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(4))
} }
// Storage: Staking Bonded (r:1 w:0) // Storage: Staking Bonded (r:1 w:0)
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
@@ -61,10 +63,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListNodes (r:3 w:3) // Storage: VoterList ListNodes (r:3 w:3)
// Storage: VoterList ListBags (r:2 w:2) // Storage: VoterList ListBags (r:2 w:2)
fn bond_extra() -> Weight { fn bond_extra() -> Weight {
// Minimum execution time: 92_224 nanoseconds. // Minimum execution time: 83_008 nanoseconds.
Weight::from_ref_time(92_673_000 as u64) Weight::from_ref_time(84_097_000)
.saturating_add(T::DbWeight::get().reads(8 as u64)) .saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(7 as u64)) .saturating_add(T::DbWeight::get().writes(7))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Staking Nominators (r:1 w:0) // Storage: Staking Nominators (r:1 w:0)
@@ -76,10 +78,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking Bonded (r:1 w:0) // Storage: Staking Bonded (r:1 w:0)
// Storage: VoterList ListBags (r:2 w:2) // Storage: VoterList ListBags (r:2 w:2)
fn unbond() -> Weight { fn unbond() -> Weight {
// Minimum execution time: 89_173 nanoseconds. // Minimum execution time: 89_429 nanoseconds.
Weight::from_ref_time(91_518_000 as u64) Weight::from_ref_time(90_577_000)
.saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().reads(12))
.saturating_add(T::DbWeight::get().writes(8 as u64)) .saturating_add(T::DbWeight::get().writes(8))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
@@ -87,12 +89,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
/// The range of component `s` is `[0, 100]`. /// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_update(s: u32, ) -> Weight { fn withdraw_unbonded_update(s: u32, ) -> Weight {
// Minimum execution time: 41_525 nanoseconds. // Minimum execution time: 40_837 nanoseconds.
Weight::from_ref_time(42_785_087 as u64) Weight::from_ref_time(42_187_130)
// Standard Error: 689 // Standard Error: 894
.saturating_add(Weight::from_ref_time(16_918 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(19_689).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3 as u64)) .saturating_add(T::DbWeight::get().writes(3))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
@@ -107,12 +109,16 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
// Storage: Staking Payee (r:0 w:1) // Storage: Staking Payee (r:0 w:1)
// Storage: Staking SpanSlash (r:0 w:2)
/// The range of component `s` is `[0, 100]`. /// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_kill(_s: u32, ) -> Weight { fn withdraw_unbonded_kill(s: u32, ) -> Weight {
// Minimum execution time: 77_930 nanoseconds. // Minimum execution time: 79_648 nanoseconds.
Weight::from_ref_time(79_791_309 as u64) Weight::from_ref_time(83_017_096)
.saturating_add(T::DbWeight::get().reads(13 as u64)) // Standard Error: 2_010
.saturating_add(T::DbWeight::get().writes(11 as u64)) .saturating_add(Weight::from_ref_time(922_930).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(13))
.saturating_add(T::DbWeight::get().writes(12))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking MinValidatorBond (r:1 w:0) // Storage: Staking MinValidatorBond (r:1 w:0)
@@ -126,22 +132,22 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList CounterForListNodes (r:1 w:1) // Storage: VoterList CounterForListNodes (r:1 w:1)
// Storage: Staking CounterForValidators (r:1 w:1) // Storage: Staking CounterForValidators (r:1 w:1)
fn validate() -> Weight { fn validate() -> Weight {
// Minimum execution time: 61_039 nanoseconds. // Minimum execution time: 60_320 nanoseconds.
Weight::from_ref_time(61_864_000 as u64) Weight::from_ref_time(61_086_000)
.saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().reads(11))
.saturating_add(T::DbWeight::get().writes(5 as u64)) .saturating_add(T::DbWeight::get().writes(5))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Nominators (r:1 w:1) // Storage: Staking Nominators (r:1 w:1)
/// The range of component `k` is `[1, 128]`. /// The range of component `k` is `[1, 128]`.
fn kick(k: u32, ) -> Weight { fn kick(k: u32, ) -> Weight {
// Minimum execution time: 33_744 nanoseconds. // Minimum execution time: 33_877 nanoseconds.
Weight::from_ref_time(31_656_370 as u64) Weight::from_ref_time(30_158_812)
// Standard Error: 7_390 // Standard Error: 9_093
.saturating_add(Weight::from_ref_time(6_320_562 as u64).saturating_mul(k as u64)) .saturating_add(Weight::from_ref_time(6_467_073).saturating_mul(k.into()))
.saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(k as u64))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into())))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(k as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into())))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking MinNominatorBond (r:1 w:0) // Storage: Staking MinNominatorBond (r:1 w:0)
@@ -156,13 +162,13 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking CounterForNominators (r:1 w:1) // Storage: Staking CounterForNominators (r:1 w:1)
/// The range of component `n` is `[1, 16]`. /// The range of component `n` is `[1, 16]`.
fn nominate(n: u32, ) -> Weight { fn nominate(n: u32, ) -> Weight {
// Minimum execution time: 64_103 nanoseconds. // Minimum execution time: 64_372 nanoseconds.
Weight::from_ref_time(63_617_315 as u64) Weight::from_ref_time(64_284_684)
// Standard Error: 5_476 // Standard Error: 8_143
.saturating_add(Weight::from_ref_time(2_416_112 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(2_395_175).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().reads(12))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Validators (r:1 w:0) // Storage: Staking Validators (r:1 w:0)
@@ -172,59 +178,59 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:1 w:1) // Storage: VoterList ListBags (r:1 w:1)
// Storage: VoterList CounterForListNodes (r:1 w:1) // Storage: VoterList CounterForListNodes (r:1 w:1)
fn chill() -> Weight { fn chill() -> Weight {
// Minimum execution time: 59_072 nanoseconds. // Minimum execution time: 58_793 nanoseconds.
Weight::from_ref_time(59_664_000 as u64) Weight::from_ref_time(59_523_000)
.saturating_add(T::DbWeight::get().reads(8 as u64)) .saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Payee (r:0 w:1) // Storage: Staking Payee (r:0 w:1)
fn set_payee() -> Weight { fn set_payee() -> Weight {
// Minimum execution time: 16_287 nanoseconds. // Minimum execution time: 16_281 nanoseconds.
Weight::from_ref_time(16_474_000 as u64) Weight::from_ref_time(16_747_000)
.saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking Bonded (r:1 w:1) // Storage: Staking Bonded (r:1 w:1)
// Storage: Staking Ledger (r:2 w:2) // Storage: Staking Ledger (r:2 w:2)
fn set_controller() -> Weight { fn set_controller() -> Weight {
// Minimum execution time: 23_295 nanoseconds. // Minimum execution time: 23_145 nanoseconds.
Weight::from_ref_time(23_742_000 as u64) Weight::from_ref_time(23_556_000)
.saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3 as u64)) .saturating_add(T::DbWeight::get().writes(3))
} }
// Storage: Staking ValidatorCount (r:0 w:1) // Storage: Staking ValidatorCount (r:0 w:1)
fn set_validator_count() -> Weight { fn set_validator_count() -> Weight {
// Minimum execution time: 4_606 nanoseconds. // Minimum execution time: 4_658 nanoseconds.
Weight::from_ref_time(4_753_000 as u64) Weight::from_ref_time(4_781_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking ForceEra (r:0 w:1) // Storage: Staking ForceEra (r:0 w:1)
fn force_no_eras() -> Weight { fn force_no_eras() -> Weight {
// Minimum execution time: 4_714 nanoseconds. // Minimum execution time: 4_881 nanoseconds.
Weight::from_ref_time(4_870_000 as u64) Weight::from_ref_time(5_148_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking ForceEra (r:0 w:1) // Storage: Staking ForceEra (r:0 w:1)
fn force_new_era() -> Weight { fn force_new_era() -> Weight {
// Minimum execution time: 4_811 nanoseconds. // Minimum execution time: 4_713 nanoseconds.
Weight::from_ref_time(4_915_000 as u64) Weight::from_ref_time(4_874_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking ForceEra (r:0 w:1) // Storage: Staking ForceEra (r:0 w:1)
fn force_new_era_always() -> Weight { fn force_new_era_always() -> Weight {
// Minimum execution time: 4_815 nanoseconds. // Minimum execution time: 4_864 nanoseconds.
Weight::from_ref_time(4_888_000 as u64) Weight::from_ref_time(5_081_000)
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking Invulnerables (r:0 w:1) // Storage: Staking Invulnerables (r:0 w:1)
/// The range of component `v` is `[0, 1000]`. /// The range of component `v` is `[0, 1000]`.
fn set_invulnerables(v: u32, ) -> Weight { fn set_invulnerables(v: u32, ) -> Weight {
// Minimum execution time: 4_957 nanoseconds. // Minimum execution time: 5_060 nanoseconds.
Weight::from_ref_time(5_458_970 as u64) Weight::from_ref_time(5_422_382)
// Standard Error: 37 // Standard Error: 29
.saturating_add(Weight::from_ref_time(11_689 as u64).saturating_mul(v as u64)) .saturating_add(Weight::from_ref_time(11_331).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking Bonded (r:1 w:1) // Storage: Staking Bonded (r:1 w:1)
// Storage: Staking SlashingSpans (r:1 w:0) // Storage: Staking SlashingSpans (r:1 w:0)
@@ -241,23 +247,23 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking SpanSlash (r:0 w:2) // Storage: Staking SpanSlash (r:0 w:2)
/// The range of component `s` is `[0, 100]`. /// The range of component `s` is `[0, 100]`.
fn force_unstake(s: u32, ) -> Weight { fn force_unstake(s: u32, ) -> Weight {
// Minimum execution time: 72_209 nanoseconds. // Minimum execution time: 71_417 nanoseconds.
Weight::from_ref_time(77_298_663 as u64) Weight::from_ref_time(76_800_091)
// Standard Error: 3_183 // Standard Error: 2_434
.saturating_add(Weight::from_ref_time(888_800 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(923_979).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().reads(11))
.saturating_add(T::DbWeight::get().writes(12 as u64)) .saturating_add(T::DbWeight::get().writes(12))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
} }
// Storage: Staking UnappliedSlashes (r:1 w:1) // Storage: Staking UnappliedSlashes (r:1 w:1)
/// The range of component `s` is `[1, 1000]`. /// The range of component `s` is `[1, 1000]`.
fn cancel_deferred_slash(s: u32, ) -> Weight { fn cancel_deferred_slash(s: u32, ) -> Weight {
// Minimum execution time: 118_262 nanoseconds. // Minimum execution time: 113_334 nanoseconds.
Weight::from_ref_time(930_422_429 as u64) Weight::from_ref_time(924_450_107)
// Standard Error: 58_358 // Standard Error: 58_953
.saturating_add(Weight::from_ref_time(4_891_639 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(4_923_031).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking ErasValidatorReward (r:1 w:0) // Storage: Staking ErasValidatorReward (r:1 w:0)
@@ -270,14 +276,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
/// The range of component `n` is `[0, 64]`. /// The range of component `n` is `[0, 64]`.
fn payout_stakers_dead_controller(n: u32, ) -> Weight { fn payout_stakers_dead_controller(n: u32, ) -> Weight {
// Minimum execution time: 79_513 nanoseconds. // Minimum execution time: 77_615 nanoseconds.
Weight::from_ref_time(93_058_704 as u64) Weight::from_ref_time(91_849_000)
// Standard Error: 20_402 // Standard Error: 29_974
.saturating_add(Weight::from_ref_time(19_965_835 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(20_052_379).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2 as u64)) .saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
} }
// Storage: Staking CurrentEra (r:1 w:0) // Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking ErasValidatorReward (r:1 w:0) // Storage: Staking ErasValidatorReward (r:1 w:0)
@@ -291,14 +297,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
/// The range of component `n` is `[0, 64]`. /// The range of component `n` is `[0, 64]`.
fn payout_stakers_alive_staked(n: u32, ) -> Weight { fn payout_stakers_alive_staked(n: u32, ) -> Weight {
// Minimum execution time: 91_791 nanoseconds. // Minimum execution time: 90_513 nanoseconds.
Weight::from_ref_time(119_133_841 as u64) Weight::from_ref_time(115_255_437)
// Standard Error: 31_093 // Standard Error: 29_960
.saturating_add(Weight::from_ref_time(26_717_359 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(27_135_740).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(10 as u64)) .saturating_add(T::DbWeight::get().reads(10))
.saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(3 as u64)) .saturating_add(T::DbWeight::get().writes(3))
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into())))
} }
// Storage: Staking Ledger (r:1 w:1) // Storage: Staking Ledger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1) // Storage: Balances Locks (r:1 w:1)
@@ -308,12 +314,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:2 w:2) // Storage: VoterList ListBags (r:2 w:2)
/// The range of component `l` is `[1, 32]`. /// The range of component `l` is `[1, 32]`.
fn rebond(l: u32, ) -> Weight { fn rebond(l: u32, ) -> Weight {
// Minimum execution time: 82_457 nanoseconds. // Minimum execution time: 82_630 nanoseconds.
Weight::from_ref_time(83_869_512 as u64) Weight::from_ref_time(83_204_882)
// Standard Error: 4_174 // Standard Error: 22_390
.saturating_add(Weight::from_ref_time(46_937 as u64).saturating_mul(l as u64)) .saturating_add(Weight::from_ref_time(122_845).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(8 as u64)) .saturating_add(T::DbWeight::get().writes(8))
} }
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
// Storage: Staking Bonded (r:1 w:1) // Storage: Staking Bonded (r:1 w:1)
@@ -330,16 +336,15 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking SpanSlash (r:0 w:1) // Storage: Staking SpanSlash (r:0 w:1)
/// The range of component `s` is `[1, 100]`. /// The range of component `s` is `[1, 100]`.
fn reap_stash(s: u32, ) -> Weight { fn reap_stash(s: u32, ) -> Weight {
// Minimum execution time: 82_568 nanoseconds. // Minimum execution time: 82_488 nanoseconds.
Weight::from_ref_time(83_999_520 as u64) Weight::from_ref_time(84_514_448)
// Standard Error: 2_098 // Standard Error: 2_464
.saturating_add(Weight::from_ref_time(884_734 as u64).saturating_mul(s as u64)) .saturating_add(Weight::from_ref_time(922_810).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().reads(12))
.saturating_add(T::DbWeight::get().writes(12 as u64)) .saturating_add(T::DbWeight::get().writes(12))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
} }
// Storage: VoterList CounterForListNodes (r:1 w:0) // Storage: VoterList CounterForListNodes (r:1 w:0)
// Storage: Staking SlashingSpans (r:1 w:0)
// Storage: VoterList ListBags (r:178 w:0) // Storage: VoterList ListBags (r:178 w:0)
// Storage: VoterList ListNodes (r:101 w:0) // Storage: VoterList ListNodes (r:101 w:0)
// Storage: Staking Nominators (r:101 w:0) // Storage: Staking Nominators (r:101 w:0)
@@ -356,53 +361,57 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking ErasStakers (r:0 w:1) // Storage: Staking ErasStakers (r:0 w:1)
// Storage: Staking ErasTotalStake (r:0 w:1) // Storage: Staking ErasTotalStake (r:0 w:1)
// Storage: Staking ErasStartSessionIndex (r:0 w:1) // Storage: Staking ErasStartSessionIndex (r:0 w:1)
// Storage: Staking MinimumActiveStake (r:0 w:1)
/// The range of component `v` is `[1, 10]`. /// The range of component `v` is `[1, 10]`.
/// The range of component `n` is `[0, 100]`. /// The range of component `n` is `[0, 100]`.
fn new_era(v: u32, n: u32, ) -> Weight { fn new_era(v: u32, n: u32, ) -> Weight {
// Minimum execution time: 433_425 nanoseconds. // Minimum execution time: 441_729 nanoseconds.
Weight::from_ref_time(435_379_000 as u64) Weight::from_ref_time(443_065_000)
// Standard Error: 1_833_800 // Standard Error: 1_706_307
.saturating_add(Weight::from_ref_time(60_252_147 as u64).saturating_mul(v as u64)) .saturating_add(Weight::from_ref_time(56_054_739).saturating_mul(v.into()))
// Standard Error: 182_728 // Standard Error: 170_024
.saturating_add(Weight::from_ref_time(13_188_805 as u64).saturating_mul(n as u64)) .saturating_add(Weight::from_ref_time(12_968_442).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(186 as u64)) .saturating_add(T::DbWeight::get().reads(185))
.saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(v as u64))) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(5))
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(v as u64))) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(v.into())))
} }
// Storage: VoterList CounterForListNodes (r:1 w:0) // Storage: VoterList CounterForListNodes (r:1 w:0)
// Storage: VoterList ListBags (r:200 w:0) // Storage: VoterList ListBags (r:178 w:0)
// Storage: VoterList ListNodes (r:1500 w:0) // Storage: VoterList ListNodes (r:1500 w:0)
// Storage: Staking Nominators (r:1500 w:0) // Storage: Staking Nominators (r:1500 w:0)
// Storage: Staking Validators (r:500 w:0) // Storage: Staking Validators (r:500 w:0)
// Storage: Staking Bonded (r:1500 w:0) // Storage: Staking Bonded (r:1500 w:0)
// Storage: Staking Ledger (r:1500 w:0) // Storage: Staking Ledger (r:1500 w:0)
// Storage: System BlockWeight (r:1 w:1)
// Storage: Staking MinimumActiveStake (r:0 w:1)
/// The range of component `v` is `[500, 1000]`. /// The range of component `v` is `[500, 1000]`.
/// The range of component `n` is `[500, 1000]`. /// The range of component `n` is `[500, 1000]`.
fn get_npos_voters(v: u32, n: u32, ) -> Weight { fn get_npos_voters(v: u32, n: u32, ) -> Weight {
// Minimum execution time: 24_634_585 nanoseconds. // Minimum execution time: 25_152_628 nanoseconds.
Weight::from_ref_time(24_718_377_000) Weight::from_ref_time(25_317_200_000)
// Standard Error: 324_839 // Standard Error: 594_512
.saturating_add(Weight::from_ref_time(3_654_508).saturating_mul(v.into())) .saturating_add(Weight::from_ref_time(6_190_157).saturating_mul(v.into()))
// Standard Error: 324_839 // Standard Error: 594_512
.saturating_add(Weight::from_ref_time(2_927_535).saturating_mul(n.into())) .saturating_add(Weight::from_ref_time(3_302_412).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(201)) .saturating_add(T::DbWeight::get().reads(180))
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into()))) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2))
} }
// Storage: Staking CounterForValidators (r:1 w:0) // Storage: Staking CounterForValidators (r:1 w:0)
// Storage: Staking Validators (r:501 w:0) // Storage: Staking Validators (r:501 w:0)
// Storage: System BlockWeight (r:1 w:1) // Storage: System BlockWeight (r:1 w:1)
/// The range of component `v` is `[500, 1000]`. /// The range of component `v` is `[500, 1000]`.
fn get_npos_targets(v: u32, ) -> Weight { fn get_npos_targets(v: u32, ) -> Weight {
// Minimum execution time: 3_513_761 nanoseconds. // Minimum execution time: 3_621_768 nanoseconds.
Weight::from_ref_time(168_738_313 as u64) Weight::from_ref_time(3_647_367_000)
// Standard Error: 55_974 // Standard Error: 42_035
.saturating_add(Weight::from_ref_time(7_130_301 as u64).saturating_mul(v as u64)) .saturating_add(Weight::from_ref_time(2_772_156).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
} }
// Storage: Staking MinCommission (r:0 w:1) // Storage: Staking MinCommission (r:0 w:1)
// Storage: Staking MinValidatorBond (r:0 w:1) // Storage: Staking MinValidatorBond (r:0 w:1)
@@ -411,9 +420,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking MaxNominatorsCount (r:0 w:1) // Storage: Staking MaxNominatorsCount (r:0 w:1)
// Storage: Staking MinNominatorBond (r:0 w:1) // Storage: Staking MinNominatorBond (r:0 w:1)
fn set_staking_configs_all_set() -> Weight { fn set_staking_configs_all_set() -> Weight {
// Minimum execution time: 8_232 nanoseconds. // Minimum execution time: 8_259 nanoseconds.
Weight::from_ref_time(8_510_000 as u64) Weight::from_ref_time(8_629_000)
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking MinCommission (r:0 w:1) // Storage: Staking MinCommission (r:0 w:1)
// Storage: Staking MinValidatorBond (r:0 w:1) // Storage: Staking MinValidatorBond (r:0 w:1)
@@ -422,9 +431,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking MaxNominatorsCount (r:0 w:1) // Storage: Staking MaxNominatorsCount (r:0 w:1)
// Storage: Staking MinNominatorBond (r:0 w:1) // Storage: Staking MinNominatorBond (r:0 w:1)
fn set_staking_configs_all_remove() -> Weight { fn set_staking_configs_all_remove() -> Weight {
// Minimum execution time: 7_257 nanoseconds. // Minimum execution time: 7_335 nanoseconds.
Weight::from_ref_time(7_425_000 as u64) Weight::from_ref_time(7_594_000)
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking Ledger (r:1 w:0) // Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Nominators (r:1 w:1) // Storage: Staking Nominators (r:1 w:1)
@@ -437,17 +446,23 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:1 w:1) // Storage: VoterList ListBags (r:1 w:1)
// Storage: VoterList CounterForListNodes (r:1 w:1) // Storage: VoterList CounterForListNodes (r:1 w:1)
fn chill_other() -> Weight { fn chill_other() -> Weight {
// Minimum execution time: 69_220 nanoseconds. // Minimum execution time: 69_559 nanoseconds.
Weight::from_ref_time(70_070_000 as u64) Weight::from_ref_time(70_363_000)
.saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().reads(11))
.saturating_add(T::DbWeight::get().writes(6 as u64)) .saturating_add(T::DbWeight::get().writes(6))
} }
// Storage: Staking MinCommission (r:1 w:0) // Storage: Staking MinCommission (r:1 w:0)
// Storage: Staking Validators (r:1 w:1) // Storage: Staking Validators (r:1 w:1)
fn force_apply_min_commission() -> Weight { fn force_apply_min_commission() -> Weight {
// Minimum execution time: 16_197 nanoseconds. // Minimum execution time: 15_447 nanoseconds.
Weight::from_ref_time(16_518_000 as u64) Weight::from_ref_time(15_760_000)
.saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Staking MinCommission (r:0 w:1)
fn set_min_commission() -> Weight {
// Minimum execution time: 4_793 nanoseconds.
Weight::from_ref_time(4_929_000)
.saturating_add(T::DbWeight::get().writes(1))
} }
} }