mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
Baseline weights for force_apply_min_commission (#4896)
* Make a diff * cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/ * cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/ * cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ Co-authored-by: Parity Bot <admin@parity.io> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -16,11 +16,11 @@
|
||||
//! Autogenerated weights for `pallet_staking`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-01-04, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128
|
||||
//! DATE: 2022-02-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/polkadot
|
||||
// target/production/polkadot
|
||||
// benchmark
|
||||
// --chain=kusama-dev
|
||||
// --steps=50
|
||||
@@ -50,7 +50,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn bond() -> Weight {
|
||||
(47_083_000 as Weight)
|
||||
(33_080_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -60,7 +60,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList ListNodes (r:3 w:3)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn bond_extra() -> Weight {
|
||||
(79_677_000 as Weight)
|
||||
(55_828_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(7 as Weight))
|
||||
}
|
||||
@@ -74,7 +74,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn unbond() -> Weight {
|
||||
(87_481_000 as Weight)
|
||||
(62_236_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -83,7 +83,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
||||
(36_547_000 as Weight)
|
||||
(25_955_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((23_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
@@ -102,10 +102,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn withdraw_unbonded_kill(s: u32, ) -> Weight {
|
||||
(72_430_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(s as Weight))
|
||||
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
|
||||
(52_420_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(13 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(11 as Weight))
|
||||
}
|
||||
@@ -121,16 +119,16 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: Staking CounterForValidators (r:1 w:1)
|
||||
fn validate() -> Weight {
|
||||
(55_595_000 as Weight)
|
||||
(39_883_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Nominators (r:1 w:1)
|
||||
fn kick(k: u32, ) -> Weight {
|
||||
(10_034_000 as Weight)
|
||||
// Standard Error: 9_000
|
||||
.saturating_add((11_481_000 as Weight).saturating_mul(k as Weight))
|
||||
(7_412_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((8_439_000 as Weight).saturating_mul(k as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(k as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(k as Weight)))
|
||||
@@ -147,9 +145,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
fn nominate(n: u32, ) -> Weight {
|
||||
(60_257_000 as Weight)
|
||||
// Standard Error: 8_000
|
||||
.saturating_add((4_191_000 as Weight).saturating_mul(n as Weight))
|
||||
(44_263_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((2_971_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
@@ -162,49 +160,49 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
fn chill() -> Weight {
|
||||
(52_552_000 as Weight)
|
||||
(38_258_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn set_payee() -> Weight {
|
||||
(8_794_000 as Weight)
|
||||
(6_269_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
// Storage: Staking Ledger (r:2 w:2)
|
||||
fn set_controller() -> Weight {
|
||||
(18_992_000 as Weight)
|
||||
(13_119_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Staking ValidatorCount (r:0 w:1)
|
||||
fn set_validator_count() -> Weight {
|
||||
(1_619_000 as Weight)
|
||||
(855_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_no_eras() -> Weight {
|
||||
(1_667_000 as Weight)
|
||||
(877_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era() -> Weight {
|
||||
(1_743_000 as Weight)
|
||||
(892_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era_always() -> Weight {
|
||||
(1_677_000 as Weight)
|
||||
(907_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Invulnerables (r:0 w:1)
|
||||
fn set_invulnerables(v: u32, ) -> Weight {
|
||||
(1_852_000 as Weight)
|
||||
(1_431_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((53_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((50_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
@@ -221,18 +219,18 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
// Storage: Staking SpanSlash (r:0 w:2)
|
||||
fn force_unstake(s: u32, ) -> Weight {
|
||||
(68_818_000 as Weight)
|
||||
(48_841_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_104_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((681_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
}
|
||||
// Storage: Staking UnappliedSlashes (r:1 w:1)
|
||||
fn cancel_deferred_slash(s: u32, ) -> Weight {
|
||||
(966_416_000 as Weight)
|
||||
// Standard Error: 55_000
|
||||
.saturating_add((4_979_000 as Weight).saturating_mul(s as Weight))
|
||||
(972_369_000 as Weight)
|
||||
// Standard Error: 56_000
|
||||
.saturating_add((4_959_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -247,9 +245,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Payee (r:2 w:0)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
fn payout_stakers_dead_controller(n: u32, ) -> Weight {
|
||||
(94_709_000 as Weight)
|
||||
// Standard Error: 17_000
|
||||
.saturating_add((32_919_000 as Weight).saturating_mul(n as Weight))
|
||||
(69_502_000 as Weight)
|
||||
// Standard Error: 15_000
|
||||
.saturating_add((22_085_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(10 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
@@ -267,9 +265,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Balances Locks (r:2 w:2)
|
||||
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
||||
(123_535_000 as Weight)
|
||||
// Standard Error: 28_000
|
||||
.saturating_add((44_813_000 as Weight).saturating_mul(n as Weight))
|
||||
(106_569_000 as Weight)
|
||||
// Standard Error: 22_000
|
||||
.saturating_add((30_957_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((5 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
@@ -282,9 +280,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn rebond(l: u32, ) -> Weight {
|
||||
(78_279_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((55_000 as Weight).saturating_mul(l as Weight))
|
||||
(55_386_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((46_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(9 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -299,8 +297,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
||||
fn set_history_depth(e: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 66_000
|
||||
.saturating_add((26_032_000 as Weight).saturating_mul(e as Weight))
|
||||
// Standard Error: 58_000
|
||||
.saturating_add((18_996_000 as Weight).saturating_mul(e as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((7 as Weight).saturating_mul(e as Weight)))
|
||||
@@ -319,9 +317,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
// Storage: Staking SpanSlash (r:0 w:1)
|
||||
fn reap_stash(s: u32, ) -> Weight {
|
||||
(76_424_000 as Weight)
|
||||
(54_679_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_103_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((686_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
@@ -347,10 +345,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
||||
fn new_era(v: u32, n: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 865_000
|
||||
.saturating_add((235_921_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 43_000
|
||||
.saturating_add((37_925_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 812_000
|
||||
.saturating_add((214_379_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 40_000
|
||||
.saturating_add((31_034_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(192 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -369,12 +367,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System BlockWeight (r:1 w:1)
|
||||
fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 87_000
|
||||
.saturating_add((23_516_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 87_000
|
||||
.saturating_add((27_548_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 2_968_000
|
||||
.saturating_add((21_935_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 84_000
|
||||
.saturating_add((17_549_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 84_000
|
||||
.saturating_add((21_476_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 2_867_000
|
||||
.saturating_add((20_385_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(188 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -385,8 +383,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System BlockWeight (r:1 w:1)
|
||||
fn get_npos_targets(v: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 28_000
|
||||
.saturating_add((9_481_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 23_000
|
||||
.saturating_add((6_821_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -398,12 +396,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
||||
// Storage: Staking MinNominatorBond (r:0 w:1)
|
||||
fn set_staking_configs() -> Weight {
|
||||
(4_323_000 as Weight)
|
||||
(2_647_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking ChillThreshold (r:1 w:0)
|
||||
// Storage: Staking Nominators (r:1 w:1)
|
||||
// Storage: Staking ChillThreshold (r:1 w:0)
|
||||
// Storage: Staking MaxNominatorsCount (r:1 w:0)
|
||||
// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
// Storage: Staking MinNominatorBond (r:1 w:0)
|
||||
@@ -412,12 +410,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
fn chill_other() -> Weight {
|
||||
(64_253_000 as Weight)
|
||||
(47_009_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking MinCommission (r:1 w:0)
|
||||
// Storage: Staking Validators (r:1 w:1)
|
||||
fn force_apply_min_commission() -> Weight {
|
||||
(9_652_000 as Weight)
|
||||
(6_737_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
//! Autogenerated weights for `pallet_staking`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-01-04, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 128
|
||||
//! DATE: 2022-02-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/polkadot
|
||||
// target/production/polkadot
|
||||
// benchmark
|
||||
// --chain=polkadot-dev
|
||||
// --steps=50
|
||||
@@ -50,7 +50,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn bond() -> Weight {
|
||||
(46_648_000 as Weight)
|
||||
(31_759_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -60,7 +60,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList ListNodes (r:3 w:3)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn bond_extra() -> Weight {
|
||||
(93_200_000 as Weight)
|
||||
(56_216_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(7 as Weight))
|
||||
}
|
||||
@@ -74,7 +74,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn unbond() -> Weight {
|
||||
(85_556_000 as Weight)
|
||||
(61_282_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -83,9 +83,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
||||
(35_593_000 as Weight)
|
||||
(25_266_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((24_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((26_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -102,8 +102,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
|
||||
(69_345_000 as Weight)
|
||||
fn withdraw_unbonded_kill(s: u32, ) -> Weight {
|
||||
(50_163_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((1_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(13 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(11 as Weight))
|
||||
}
|
||||
@@ -119,16 +121,16 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: Staking CounterForValidators (r:1 w:1)
|
||||
fn validate() -> Weight {
|
||||
(52_887_000 as Weight)
|
||||
(38_409_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Nominators (r:1 w:1)
|
||||
fn kick(k: u32, ) -> Weight {
|
||||
(7_581_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((10_632_000 as Weight).saturating_mul(k as Weight))
|
||||
(9_845_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((7_527_000 as Weight).saturating_mul(k as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(k as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(k as Weight)))
|
||||
@@ -145,9 +147,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
fn nominate(n: u32, ) -> Weight {
|
||||
(58_419_000 as Weight)
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((3_918_000 as Weight).saturating_mul(n as Weight))
|
||||
(42_880_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((2_791_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
@@ -160,49 +162,49 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
fn chill() -> Weight {
|
||||
(50_866_000 as Weight)
|
||||
(36_530_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn set_payee() -> Weight {
|
||||
(8_781_000 as Weight)
|
||||
(5_972_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
// Storage: Staking Ledger (r:2 w:2)
|
||||
fn set_controller() -> Weight {
|
||||
(18_038_000 as Weight)
|
||||
(12_233_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Staking ValidatorCount (r:0 w:1)
|
||||
fn set_validator_count() -> Weight {
|
||||
(1_635_000 as Weight)
|
||||
(833_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_no_eras() -> Weight {
|
||||
(1_735_000 as Weight)
|
||||
(878_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era() -> Weight {
|
||||
(1_745_000 as Weight)
|
||||
(861_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era_always() -> Weight {
|
||||
(1_714_000 as Weight)
|
||||
(883_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Invulnerables (r:0 w:1)
|
||||
fn set_invulnerables(v: u32, ) -> Weight {
|
||||
(1_707_000 as Weight)
|
||||
(1_224_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((54_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((51_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
@@ -219,18 +221,18 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
// Storage: Staking SpanSlash (r:0 w:2)
|
||||
fn force_unstake(s: u32, ) -> Weight {
|
||||
(66_037_000 as Weight)
|
||||
(47_441_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_110_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((679_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
}
|
||||
// Storage: Staking UnappliedSlashes (r:1 w:1)
|
||||
fn cancel_deferred_slash(s: u32, ) -> Weight {
|
||||
(972_390_000 as Weight)
|
||||
(976_712_000 as Weight)
|
||||
// Standard Error: 56_000
|
||||
.saturating_add((4_972_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((4_963_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -245,9 +247,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Payee (r:2 w:0)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
fn payout_stakers_dead_controller(n: u32, ) -> Weight {
|
||||
(80_586_000 as Weight)
|
||||
// Standard Error: 31_000
|
||||
.saturating_add((32_648_000 as Weight).saturating_mul(n as Weight))
|
||||
(75_103_000 as Weight)
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((21_463_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(10 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
@@ -265,9 +267,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Balances Locks (r:2 w:2)
|
||||
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
||||
(113_235_000 as Weight)
|
||||
// Standard Error: 27_000
|
||||
.saturating_add((44_077_000 as Weight).saturating_mul(n as Weight))
|
||||
(95_625_000 as Weight)
|
||||
// Standard Error: 21_000
|
||||
.saturating_add((30_353_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((5 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
@@ -280,9 +282,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn rebond(l: u32, ) -> Weight {
|
||||
(77_378_000 as Weight)
|
||||
(54_540_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((40_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add((55_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(9 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -297,8 +299,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
||||
fn set_history_depth(e: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 66_000
|
||||
.saturating_add((24_764_000 as Weight).saturating_mul(e as Weight))
|
||||
// Standard Error: 56_000
|
||||
.saturating_add((18_323_000 as Weight).saturating_mul(e as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((7 as Weight).saturating_mul(e as Weight)))
|
||||
@@ -317,9 +319,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
// Storage: Staking SpanSlash (r:0 w:1)
|
||||
fn reap_stash(s: u32, ) -> Weight {
|
||||
(73_759_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_124_000 as Weight).saturating_mul(s as Weight))
|
||||
(53_101_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((683_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
@@ -345,10 +347,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
||||
fn new_era(v: u32, n: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 746_000
|
||||
.saturating_add((229_359_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 37_000
|
||||
.saturating_add((36_336_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 762_000
|
||||
.saturating_add((212_772_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 38_000
|
||||
.saturating_add((30_285_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(187 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -367,12 +369,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System BlockWeight (r:1 w:1)
|
||||
fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 88_000
|
||||
.saturating_add((22_559_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 88_000
|
||||
.saturating_add((26_204_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 2_996_000
|
||||
.saturating_add((9_344_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 89_000
|
||||
.saturating_add((16_677_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 89_000
|
||||
.saturating_add((19_907_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 3_042_000
|
||||
.saturating_add((9_465_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(183 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -383,8 +385,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System BlockWeight (r:1 w:1)
|
||||
fn get_npos_targets(v: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 25_000
|
||||
.saturating_add((8_862_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 24_000
|
||||
.saturating_add((6_471_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -396,12 +398,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
||||
// Storage: Staking MinNominatorBond (r:0 w:1)
|
||||
fn set_staking_configs() -> Weight {
|
||||
(4_177_000 as Weight)
|
||||
(2_693_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking ChillThreshold (r:1 w:0)
|
||||
// Storage: Staking Nominators (r:1 w:1)
|
||||
// Storage: Staking ChillThreshold (r:1 w:0)
|
||||
// Storage: Staking MaxNominatorsCount (r:1 w:0)
|
||||
// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
// Storage: Staking MinNominatorBond (r:1 w:0)
|
||||
@@ -410,12 +412,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
fn chill_other() -> Weight {
|
||||
(61_357_000 as Weight)
|
||||
(46_426_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking MinCommission (r:1 w:0)
|
||||
// Storage: Staking Validators (r:1 w:1)
|
||||
fn force_apply_min_commission() -> Weight {
|
||||
(9_652_000 as Weight)
|
||||
(6_409_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
//! Autogenerated weights for `pallet_staking`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-01-04, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 128
|
||||
//! DATE: 2022-02-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/polkadot
|
||||
// target/production/polkadot
|
||||
// benchmark
|
||||
// --chain=westend-dev
|
||||
// --steps=50
|
||||
@@ -50,7 +50,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn bond() -> Weight {
|
||||
(47_262_000 as Weight)
|
||||
(32_440_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -60,7 +60,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList ListNodes (r:3 w:3)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn bond_extra() -> Weight {
|
||||
(79_887_000 as Weight)
|
||||
(56_487_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(7 as Weight))
|
||||
}
|
||||
@@ -74,7 +74,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn unbond() -> Weight {
|
||||
(85_963_000 as Weight)
|
||||
(61_875_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -83,9 +83,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
||||
(35_896_000 as Weight)
|
||||
(25_863_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((26_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((20_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -103,7 +103,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
|
||||
(72_077_000 as Weight)
|
||||
(50_959_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(13 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(11 as Weight))
|
||||
}
|
||||
@@ -119,16 +119,16 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: Staking CounterForValidators (r:1 w:1)
|
||||
fn validate() -> Weight {
|
||||
(54_511_000 as Weight)
|
||||
(38_972_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Nominators (r:1 w:1)
|
||||
fn kick(k: u32, ) -> Weight {
|
||||
(8_643_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((10_900_000 as Weight).saturating_mul(k as Weight))
|
||||
(7_487_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((7_760_000 as Weight).saturating_mul(k as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(k as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(k as Weight)))
|
||||
@@ -145,9 +145,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
fn nominate(n: u32, ) -> Weight {
|
||||
(59_971_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((4_119_000 as Weight).saturating_mul(n as Weight))
|
||||
(43_680_000 as Weight)
|
||||
// Standard Error: 18_000
|
||||
.saturating_add((2_925_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
@@ -160,49 +160,49 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
fn chill() -> Weight {
|
||||
(51_777_000 as Weight)
|
||||
(37_137_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn set_payee() -> Weight {
|
||||
(8_915_000 as Weight)
|
||||
(6_059_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
// Storage: Staking Ledger (r:2 w:2)
|
||||
fn set_controller() -> Weight {
|
||||
(19_193_000 as Weight)
|
||||
(13_048_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Staking ValidatorCount (r:0 w:1)
|
||||
fn set_validator_count() -> Weight {
|
||||
(1_640_000 as Weight)
|
||||
(890_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_no_eras() -> Weight {
|
||||
(1_734_000 as Weight)
|
||||
(948_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era() -> Weight {
|
||||
(1_674_000 as Weight)
|
||||
(948_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era_always() -> Weight {
|
||||
(1_724_000 as Weight)
|
||||
(956_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Invulnerables (r:0 w:1)
|
||||
fn set_invulnerables(v: u32, ) -> Weight {
|
||||
(2_123_000 as Weight)
|
||||
(1_179_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((53_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((51_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
@@ -219,18 +219,18 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
// Storage: Staking SpanSlash (r:0 w:2)
|
||||
fn force_unstake(s: u32, ) -> Weight {
|
||||
(66_317_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((1_135_000 as Weight).saturating_mul(s as Weight))
|
||||
(48_467_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((683_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
}
|
||||
// Storage: Staking UnappliedSlashes (r:1 w:1)
|
||||
fn cancel_deferred_slash(s: u32, ) -> Weight {
|
||||
(974_067_000 as Weight)
|
||||
(972_637_000 as Weight)
|
||||
// Standard Error: 56_000
|
||||
.saturating_add((4_968_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((4_967_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -245,9 +245,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Payee (r:2 w:0)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
fn payout_stakers_dead_controller(n: u32, ) -> Weight {
|
||||
(86_009_000 as Weight)
|
||||
// Standard Error: 28_000
|
||||
.saturating_add((31_926_000 as Weight).saturating_mul(n as Weight))
|
||||
(66_372_000 as Weight)
|
||||
// Standard Error: 22_000
|
||||
.saturating_add((21_459_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(10 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
@@ -265,9 +265,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Balances Locks (r:2 w:2)
|
||||
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
||||
(103_160_000 as Weight)
|
||||
// Standard Error: 33_000
|
||||
.saturating_add((42_579_000 as Weight).saturating_mul(n as Weight))
|
||||
(76_580_000 as Weight)
|
||||
// Standard Error: 26_000
|
||||
.saturating_add((29_719_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((5 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
@@ -280,9 +280,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn rebond(l: u32, ) -> Weight {
|
||||
(76_896_000 as Weight)
|
||||
(55_358_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((51_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add((36_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(9 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -297,8 +297,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
||||
fn set_history_depth(e: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 64_000
|
||||
.saturating_add((25_827_000 as Weight).saturating_mul(e as Weight))
|
||||
// Standard Error: 58_000
|
||||
.saturating_add((19_212_000 as Weight).saturating_mul(e as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((7 as Weight).saturating_mul(e as Weight)))
|
||||
@@ -317,9 +317,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
// Storage: Staking SpanSlash (r:0 w:1)
|
||||
fn reap_stash(s: u32, ) -> Weight {
|
||||
(74_910_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_122_000 as Weight).saturating_mul(s as Weight))
|
||||
(54_330_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((684_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
@@ -345,10 +345,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
||||
fn new_era(v: u32, n: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 824_000
|
||||
.saturating_add((234_984_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 41_000
|
||||
.saturating_add((37_717_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 764_000
|
||||
.saturating_add((209_852_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 38_000
|
||||
.saturating_add((30_373_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(187 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -367,10 +367,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System BlockWeight (r:1 w:1)
|
||||
fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 92_000
|
||||
.saturating_add((23_935_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 92_000
|
||||
.saturating_add((26_672_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 84_000
|
||||
.saturating_add((17_585_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 84_000
|
||||
.saturating_add((20_706_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 2_887_000
|
||||
.saturating_add((16_681_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(183 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -382,7 +384,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
fn get_npos_targets(v: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 29_000
|
||||
.saturating_add((9_594_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((6_941_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -394,12 +396,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
||||
// Storage: Staking MinNominatorBond (r:0 w:1)
|
||||
fn set_staking_configs() -> Weight {
|
||||
(4_215_000 as Weight)
|
||||
(2_729_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking ChillThreshold (r:1 w:0)
|
||||
// Storage: Staking Nominators (r:1 w:1)
|
||||
// Storage: Staking ChillThreshold (r:1 w:0)
|
||||
// Storage: Staking MaxNominatorsCount (r:1 w:0)
|
||||
// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
// Storage: Staking MinNominatorBond (r:1 w:0)
|
||||
@@ -408,12 +410,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
fn chill_other() -> Weight {
|
||||
(64_678_000 as Weight)
|
||||
(46_390_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking MinCommission (r:1 w:0)
|
||||
// Storage: Staking Validators (r:1 w:1)
|
||||
fn force_apply_min_commission() -> Weight {
|
||||
(9_652_000 as Weight)
|
||||
(6_606_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user