mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
Update all weights, add run_all_benches.sh script (#3400)
* update all weights * add run_all_benches.sh
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
//! Autogenerated weights for pallet_staking
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
||||
//! DATE: 2021-06-19, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2021-07-01, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128
|
||||
|
||||
// Executed Command:
|
||||
@@ -44,154 +44,154 @@ use sp_std::marker::PhantomData;
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
fn bond() -> Weight {
|
||||
(68_483_000 as Weight)
|
||||
(70_648_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
fn bond_extra() -> Weight {
|
||||
(52_724_000 as Weight)
|
||||
(54_235_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
fn unbond() -> Weight {
|
||||
(56_614_000 as Weight)
|
||||
(57_950_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
||||
(48_650_000 as Weight)
|
||||
(49_532_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((28_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((29_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))
|
||||
}
|
||||
fn withdraw_unbonded_kill(s: u32, ) -> Weight {
|
||||
(79_902_000 as Weight)
|
||||
(81_722_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((2_200_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((2_331_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(8 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
}
|
||||
fn validate() -> Weight {
|
||||
(29_119_000 as Weight)
|
||||
(31_838_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
fn kick(k: u32, ) -> Weight {
|
||||
(10_981_000 as Weight)
|
||||
(10_120_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((17_518_000 as Weight).saturating_mul(k as Weight))
|
||||
.saturating_add((18_142_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)))
|
||||
}
|
||||
fn nominate(n: u32, ) -> Weight {
|
||||
(35_585_000 as Weight)
|
||||
(37_716_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((5_106_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add((5_240_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
fn chill() -> Weight {
|
||||
(16_193_000 as Weight)
|
||||
(16_594_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
}
|
||||
fn set_payee() -> Weight {
|
||||
(10_861_000 as Weight)
|
||||
(11_260_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
fn set_controller() -> Weight {
|
||||
(23_628_000 as Weight)
|
||||
(24_156_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
fn set_validator_count() -> Weight {
|
||||
(2_081_000 as Weight)
|
||||
(2_123_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
fn force_no_eras() -> Weight {
|
||||
(2_358_000 as Weight)
|
||||
(2_458_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
fn force_new_era() -> Weight {
|
||||
(2_338_000 as Weight)
|
||||
(2_428_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
fn force_new_era_always() -> Weight {
|
||||
(2_312_000 as Weight)
|
||||
(2_435_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
fn set_invulnerables(v: u32, ) -> Weight {
|
||||
(2_285_000 as Weight)
|
||||
(2_524_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((5_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((23_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
fn force_unstake(s: u32, ) -> Weight {
|
||||
(55_848_000 as Weight)
|
||||
(57_861_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((2_197_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((2_315_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
}
|
||||
fn cancel_deferred_slash(s: u32, ) -> Weight {
|
||||
(3_386_960_000 as Weight)
|
||||
(3_460_645_000 as Weight)
|
||||
// Standard Error: 221_000
|
||||
.saturating_add((19_794_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((19_673_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))
|
||||
}
|
||||
fn payout_stakers_dead_controller(n: u32, ) -> Weight {
|
||||
(109_960_000 as Weight)
|
||||
// Standard Error: 16_000
|
||||
.saturating_add((47_064_000 as Weight).saturating_mul(n as Weight))
|
||||
(108_055_000 as Weight)
|
||||
// Standard Error: 15_000
|
||||
.saturating_add((47_913_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))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(n as Weight)))
|
||||
}
|
||||
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
||||
(145_438_000 as Weight)
|
||||
// Standard Error: 24_000
|
||||
.saturating_add((59_384_000 as Weight).saturating_mul(n as Weight))
|
||||
(122_624_000 as Weight)
|
||||
// Standard Error: 22_000
|
||||
.saturating_add((60_815_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))
|
||||
.saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(n as Weight)))
|
||||
}
|
||||
fn rebond(l: u32, ) -> Weight {
|
||||
(45_646_000 as Weight)
|
||||
(46_725_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((72_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add((62_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
fn set_history_depth(e: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 70_000
|
||||
.saturating_add((32_189_000 as Weight).saturating_mul(e as Weight))
|
||||
// Standard Error: 68_000
|
||||
.saturating_add((32_190_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)))
|
||||
}
|
||||
fn reap_stash(s: u32, ) -> Weight {
|
||||
(66_554_000 as Weight)
|
||||
(68_887_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_198_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((2_318_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
}
|
||||
fn new_era(v: u32, n: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 749_000
|
||||
.saturating_add((299_115_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 37_000
|
||||
.saturating_add((46_619_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 734_000
|
||||
.saturating_add((296_342_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 36_000
|
||||
.saturating_add((46_481_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(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -200,12 +200,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
}
|
||||
fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 97_000
|
||||
.saturating_add((24_261_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 97_000
|
||||
.saturating_add((27_765_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 3_310_000
|
||||
.saturating_add((22_891_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 92_000
|
||||
.saturating_add((24_187_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 92_000
|
||||
.saturating_add((27_771_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 3_152_000
|
||||
.saturating_add((40_493_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -213,18 +213,18 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
}
|
||||
fn get_npos_targets(v: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 31_000
|
||||
.saturating_add((10_297_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 27_000
|
||||
.saturating_add((10_233_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(v as Weight)))
|
||||
}
|
||||
fn set_staking_limits() -> Weight {
|
||||
(4_799_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
(5_708_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
fn chill_other() -> Weight {
|
||||
(31_294_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
(39_559_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user