update weights (sync with v0.9.29) (#5989)

* kusama: update weights

* polkadot: update weights

* westend: update weights

* rococo: update weights

* fixup

* revert block weights
This commit is contained in:
Mara Robin B
2022-09-12 13:48:27 +02:00
committed by GitHub
parent 69aefab456
commit db0fc60344
128 changed files with 2705 additions and 2540 deletions
@@ -16,7 +16,7 @@
//! Autogenerated weights for `pallet_staking`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-08-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-09-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
@@ -32,13 +32,13 @@
// --execution=wasm
// --wasm-execution=compiled
// --header=./file_header.txt
// --output=./runtime/kusama/src/weights/pallet_staking.rs
// --output=./runtime/kusama/src/weights/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
use frame_support::{traits::Get, weights::Weight};
use frame_support::{traits::Get, weights::{Weight}};
use sp_std::marker::PhantomData;
/// Weight functions for `pallet_staking`.
@@ -51,7 +51,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 {
Weight::from_ref_time(39_601_000 as u64)
Weight::from_ref_time(46_005_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -61,7 +61,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListNodes (r:3 w:3)
// Storage: VoterList ListBags (r:2 w:2)
fn bond_extra() -> Weight {
Weight::from_ref_time(69_967_000 as u64)
Weight::from_ref_time(79_816_000 as u64)
.saturating_add(T::DbWeight::get().reads(8 as u64))
.saturating_add(T::DbWeight::get().writes(7 as u64))
}
@@ -75,7 +75,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking Bonded (r:1 w:0)
// Storage: VoterList ListBags (r:2 w:2)
fn unbond() -> Weight {
Weight::from_ref_time(78_585_000 as u64)
Weight::from_ref_time(84_908_000 as u64)
.saturating_add(T::DbWeight::get().reads(12 as u64))
.saturating_add(T::DbWeight::get().writes(8 as u64))
}
@@ -85,8 +85,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1)
/// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_update(s: u32, ) -> Weight {
Weight::from_ref_time(32_006_000 as u64)
// Standard Error: 0
Weight::from_ref_time(39_533_000 as u64)
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(27_000 as u64).saturating_mul(s as u64))
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
@@ -106,7 +106,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking Payee (r:0 w:1)
/// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
Weight::from_ref_time(60_841_000 as u64)
Weight::from_ref_time(74_544_000 as u64)
.saturating_add(T::DbWeight::get().reads(13 as u64))
.saturating_add(T::DbWeight::get().writes(11 as u64))
}
@@ -122,7 +122,7 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList CounterForListNodes (r:1 w:1)
// Storage: Staking CounterForValidators (r:1 w:1)
fn validate() -> Weight {
Weight::from_ref_time(49_177_000 as u64)
Weight::from_ref_time(57_525_000 as u64)
.saturating_add(T::DbWeight::get().reads(11 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
}
@@ -130,9 +130,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking Nominators (r:1 w:1)
/// The range of component `k` is `[1, 128]`.
fn kick(k: u32, ) -> Weight {
Weight::from_ref_time(11_581_000 as u64)
// Standard Error: 11_000
.saturating_add(Weight::from_ref_time(8_835_000 as u64).saturating_mul(k as u64))
Weight::from_ref_time(29_911_000 as u64)
// Standard Error: 9_000
.saturating_add(Weight::from_ref_time(6_821_000 as u64).saturating_mul(k as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(k as u64)))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(k as u64)))
@@ -150,9 +150,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking CounterForNominators (r:1 w:1)
/// The range of component `n` is `[1, 24]`.
fn nominate(n: u32, ) -> Weight {
Weight::from_ref_time(52_135_000 as u64)
// Standard Error: 5_000
.saturating_add(Weight::from_ref_time(3_209_000 as u64).saturating_mul(n as u64))
Weight::from_ref_time(59_437_000 as u64)
// Standard Error: 6_000
.saturating_add(Weight::from_ref_time(2_490_000 as u64).saturating_mul(n as u64))
.saturating_add(T::DbWeight::get().reads(12 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(n as u64)))
.saturating_add(T::DbWeight::get().writes(6 as u64))
@@ -165,48 +165,48 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:1 w:1)
// Storage: VoterList CounterForListNodes (r:1 w:1)
fn chill() -> Weight {
Weight::from_ref_time(46_813_000 as u64)
Weight::from_ref_time(56_100_000 as u64)
.saturating_add(T::DbWeight::get().reads(8 as u64))
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
// Storage: Staking Ledger (r:1 w:0)
// Storage: Staking Payee (r:0 w:1)
fn set_payee() -> Weight {
Weight::from_ref_time(9_568_000 as u64)
Weight::from_ref_time(15_258_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Staking Bonded (r:1 w:1)
// Storage: Staking Ledger (r:2 w:2)
fn set_controller() -> Weight {
Weight::from_ref_time(16_922_000 as u64)
Weight::from_ref_time(21_938_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
// Storage: Staking ValidatorCount (r:0 w:1)
fn set_validator_count() -> Weight {
Weight::from_ref_time(3_455_000 as u64)
Weight::from_ref_time(4_071_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Staking ForceEra (r:0 w:1)
fn force_no_eras() -> Weight {
Weight::from_ref_time(3_461_000 as u64)
Weight::from_ref_time(4_152_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Staking ForceEra (r:0 w:1)
fn force_new_era() -> Weight {
Weight::from_ref_time(3_505_000 as u64)
Weight::from_ref_time(4_318_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Staking ForceEra (r:0 w:1)
fn force_new_era_always() -> Weight {
Weight::from_ref_time(3_509_000 as u64)
Weight::from_ref_time(4_106_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Staking Invulnerables (r:0 w:1)
/// The range of component `v` is `[0, 1000]`.
fn set_invulnerables(v: u32, ) -> Weight {
Weight::from_ref_time(3_866_000 as u64)
Weight::from_ref_time(4_502_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(10_000 as u64).saturating_mul(v as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
@@ -226,9 +226,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking SpanSlash (r:0 w:2)
/// The range of component `s` is `[0, 100]`.
fn force_unstake(s: u32, ) -> Weight {
Weight::from_ref_time(58_815_000 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(904_000 as u64).saturating_mul(s as u64))
Weight::from_ref_time(71_669_000 as u64)
// Standard Error: 3_000
.saturating_add(Weight::from_ref_time(883_000 as u64).saturating_mul(s as u64))
.saturating_add(T::DbWeight::get().reads(11 as u64))
.saturating_add(T::DbWeight::get().writes(12 as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
@@ -236,9 +236,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking UnappliedSlashes (r:1 w:1)
/// The range of component `s` is `[1, 1000]`.
fn cancel_deferred_slash(s: u32, ) -> Weight {
Weight::from_ref_time(3_402_940_000 as u64)
// Standard Error: 237_000
.saturating_add(Weight::from_ref_time(19_758_000 as u64).saturating_mul(s as u64))
Weight::from_ref_time(930_179_000 as u64)
// Standard Error: 57_000
.saturating_add(Weight::from_ref_time(4_953_000 as u64).saturating_mul(s as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -254,9 +254,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:2 w:2)
/// The range of component `n` is `[1, 256]`.
fn payout_stakers_dead_controller(n: u32, ) -> Weight {
Weight::from_ref_time(73_127_000 as u64)
// Standard Error: 22_000
.saturating_add(Weight::from_ref_time(26_095_000 as u64).saturating_mul(n as u64))
Weight::from_ref_time(150_647_000 as u64)
// Standard Error: 20_000
.saturating_add(Weight::from_ref_time(20_795_000 as u64).saturating_mul(n as u64))
.saturating_add(T::DbWeight::get().reads(10 as u64))
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(n as u64)))
.saturating_add(T::DbWeight::get().writes(2 as u64))
@@ -275,9 +275,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Balances Locks (r:2 w:2)
/// The range of component `n` is `[1, 256]`.
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
Weight::from_ref_time(80_071_000 as u64)
// Standard Error: 25_000
.saturating_add(Weight::from_ref_time(34_679_000 as u64).saturating_mul(n as u64))
Weight::from_ref_time(177_911_000 as u64)
// Standard Error: 30_000
.saturating_add(Weight::from_ref_time(28_200_000 as u64).saturating_mul(n as u64))
.saturating_add(T::DbWeight::get().reads(11 as u64))
.saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(n as u64)))
.saturating_add(T::DbWeight::get().writes(3 as u64))
@@ -291,9 +291,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:2 w:2)
/// The range of component `l` is `[1, 32]`.
fn rebond(l: u32, ) -> Weight {
Weight::from_ref_time(69_288_000 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(51_000 as u64).saturating_mul(l as u64))
Weight::from_ref_time(80_037_000 as u64)
// Standard Error: 3_000
.saturating_add(Weight::from_ref_time(24_000 as u64).saturating_mul(l as u64))
.saturating_add(T::DbWeight::get().reads(9 as u64))
.saturating_add(T::DbWeight::get().writes(8 as u64))
}
@@ -309,8 +309,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
/// The range of component `e` is `[1, 100]`.
fn set_history_depth(e: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 83_000
.saturating_add(Weight::from_ref_time(21_591_000 as u64).saturating_mul(e as u64))
// Standard Error: 89_000
.saturating_add(Weight::from_ref_time(21_655_000 as u64).saturating_mul(e as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
.saturating_add(T::DbWeight::get().writes((7 as u64).saturating_mul(e as u64)))
@@ -330,9 +330,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking SpanSlash (r:0 w:1)
/// The range of component `s` is `[1, 100]`.
fn reap_stash(s: u32, ) -> Weight {
Weight::from_ref_time(64_446_000 as u64)
Weight::from_ref_time(78_855_000 as u64)
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(899_000 as u64).saturating_mul(s as u64))
.saturating_add(Weight::from_ref_time(869_000 as u64).saturating_mul(s as u64))
.saturating_add(T::DbWeight::get().reads(12 as u64))
.saturating_add(T::DbWeight::get().writes(12 as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
@@ -360,10 +360,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
/// The range of component `n` is `[1, 100]`.
fn new_era(v: u32, n: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 1_296_000
.saturating_add(Weight::from_ref_time(286_045_000 as u64).saturating_mul(v as u64))
// Standard Error: 125_000
.saturating_add(Weight::from_ref_time(37_667_000 as u64).saturating_mul(n as u64))
// Standard Error: 579_000
.saturating_add(Weight::from_ref_time(161_445_000 as u64).saturating_mul(v as u64))
// Standard Error: 55_000
.saturating_add(Weight::from_ref_time(22_905_000 as u64).saturating_mul(n as u64))
.saturating_add(T::DbWeight::get().reads(192 as u64))
.saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(v as u64)))
.saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(n as u64)))
@@ -384,12 +384,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
/// The range of component `s` is `[1, 20]`.
fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 108_000
.saturating_add(Weight::from_ref_time(24_629_000 as u64).saturating_mul(v as u64))
// Standard Error: 108_000
.saturating_add(Weight::from_ref_time(22_598_000 as u64).saturating_mul(n as u64))
// Standard Error: 2_778_000
.saturating_add(Weight::from_ref_time(59_951_000 as u64).saturating_mul(s as u64))
// Standard Error: 375_000
.saturating_add(Weight::from_ref_time(41_603_000 as u64).saturating_mul(v as u64))
// Standard Error: 375_000
.saturating_add(Weight::from_ref_time(38_528_000 as u64).saturating_mul(n as u64))
// Standard Error: 9_578_000
.saturating_add(Weight::from_ref_time(41_537_000 as u64).saturating_mul(s as u64))
.saturating_add(T::DbWeight::get().reads(186 as u64))
.saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(v as u64)))
.saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(n as u64)))
@@ -400,9 +400,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: System BlockWeight (r:1 w:1)
/// The range of component `v` is `[500, 1000]`.
fn get_npos_targets(v: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 40_000
.saturating_add(Weight::from_ref_time(7_752_000 as u64).saturating_mul(v as u64))
Weight::from_ref_time(310_326_000 as u64)
// Standard Error: 56_000
.saturating_add(Weight::from_ref_time(6_164_000 as u64).saturating_mul(v as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64)))
.saturating_add(T::DbWeight::get().writes(1 as u64))
@@ -414,7 +414,7 @@ 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_all_set() -> Weight {
Weight::from_ref_time(6_388_000 as u64)
Weight::from_ref_time(7_502_000 as u64)
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
// Storage: Staking MinCommission (r:0 w:1)
@@ -424,7 +424,7 @@ 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_all_remove() -> Weight {
Weight::from_ref_time(6_064_000 as u64)
Weight::from_ref_time(6_757_000 as u64)
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
// Storage: Staking Ledger (r:1 w:0)
@@ -438,14 +438,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListBags (r:1 w:1)
// Storage: VoterList CounterForListNodes (r:1 w:1)
fn chill_other() -> Weight {
Weight::from_ref_time(55_742_000 as u64)
Weight::from_ref_time(66_406_000 as u64)
.saturating_add(T::DbWeight::get().reads(11 as u64))
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
// Storage: Staking MinCommission (r:1 w:0)
// Storage: Staking Validators (r:1 w:1)
fn force_apply_min_commission() -> Weight {
Weight::from_ref_time(10_749_000 as u64)
Weight::from_ref_time(14_744_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}