Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

companion slash chilling update #6424

Merged
merged 4 commits into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update weights
  • Loading branch information
kianenigma committed Dec 12, 2022
commit 7ace88c9d375f961c82f33e8651fe6fbade75692
24 changes: 10 additions & 14 deletions runtime/kusama/src/weights/pallet_staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,28 +375,24 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
}
// Storage: VoterList CounterForListNodes (r:1 w:0)
// Storage: Staking SlashingSpans (r:21 w:0)
// Storage: VoterList ListBags (r:183 w:0)
// Storage: VoterList ListBags (r:200 w:0)
// Storage: VoterList ListNodes (r:1500 w:0)
// Storage: Staking Nominators (r:1500 w:0)
// Storage: Staking Validators (r:500 w:0)
// Storage: Staking Bonded (r:1500 w:0)
// Storage: Staking Ledger (r:1500 w:0)
// Storage: System BlockWeight (r:1 w:1)
/// The range of component `v` is `[500, 1000]`.
/// The range of component `n` is `[500, 1000]`.
/// The range of component `s` is `[1, 20]`.
fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight {
// Minimum execution time: 26_480_054 nanoseconds.
Weight::from_ref_time(26_659_270_000 as u64)
// Standard Error: 480_708
.saturating_add(Weight::from_ref_time(10_306_257 as u64).saturating_mul(v as u64))
// Standard Error: 480_708
.saturating_add(Weight::from_ref_time(12_612_184 as u64).saturating_mul(n 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)))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))
.saturating_add(T::DbWeight::get().writes(1 as u64))
fn get_npos_voters(v: u32, n: u32) -> Weight {
Weight::from_ref_time(24_930_788_000 as u64)
// Standard Error: 266_386
.saturating_add(Weight::from_ref_time(6_687_552 as u64).saturating_mul(v as u64))
// Standard Error: 266_386
.saturating_add(Weight::from_ref_time(6_839_134 as u64).saturating_mul(n as u64))
.saturating_add(T::DbWeight::get().reads(6722 as u64))
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(v as u64)))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(n as u64)))
}
// Storage: Staking CounterForValidators (r:1 w:0)
// Storage: Staking Validators (r:501 w:0)
Expand Down
16 changes: 7 additions & 9 deletions runtime/polkadot/src/weights/pallet_staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,19 +382,17 @@ 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]`.
/// The range of component `n` is `[500, 1000]`.
/// The range of component `s` is `[1, 20]`.
fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight {
// Minimum execution time: 26_190_965 nanoseconds.
Weight::from_ref_time(26_379_230_000 as u64)
// Standard Error: 498_237
.saturating_add(Weight::from_ref_time(12_106_020 as u64).saturating_mul(v as u64))
// Standard Error: 498_237
.saturating_add(Weight::from_ref_time(10_834_947 as u64).saturating_mul(n as u64))
.saturating_add(T::DbWeight::get().reads(181 as u64))
// Minimum execution time: 25_323_129 nanoseconds.
Weight::from_ref_time(25_471_672_000 as u64)
// Standard Error: 266_391
.saturating_add(Weight::from_ref_time(6_665_504 as u64).saturating_mul(v as u64))
// Standard Error: 266_391
.saturating_add(Weight::from_ref_time(6_956_606 as u64).saturating_mul(n as u64))
.saturating_add(T::DbWeight::get().reads(202 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)))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Staking CounterForValidators (r:1 w:0)
// Storage: Staking Validators (r:501 w:0)
Expand Down
24 changes: 10 additions & 14 deletions runtime/westend/src/weights/pallet_staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,28 +373,24 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
}
// Storage: VoterList CounterForListNodes (r:1 w:0)
// Storage: Staking SlashingSpans (r:21 w:0)
// Storage: VoterList ListBags (r:178 w:0)
// Storage: VoterList ListBags (r:200 w:0)
// Storage: VoterList ListNodes (r:1500 w:0)
// Storage: Staking Nominators (r:1500 w:0)
// Storage: Staking Validators (r:500 w:0)
// Storage: Staking Bonded (r:1500 w:0)
// Storage: Staking Ledger (r:1500 w:0)
// Storage: System BlockWeight (r:1 w:1)
/// The range of component `v` is `[500, 1000]`.
/// The range of component `n` is `[500, 1000]`.
/// The range of component `s` is `[1, 20]`.
fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight {
// Minimum execution time: 26_306_369 nanoseconds.
Weight::from_ref_time(26_515_009_000 as u64)
// Standard Error: 478_602
.saturating_add(Weight::from_ref_time(11_814_244 as u64).saturating_mul(v as u64))
// Standard Error: 478_602
.saturating_add(Weight::from_ref_time(10_546_073 as u64).saturating_mul(n as u64))
.saturating_add(T::DbWeight::get().reads(181 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)))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))
.saturating_add(T::DbWeight::get().writes(1 as u64))
fn get_npos_voters(v: u32, n: u32) -> Weight {
Weight::from_ref_time(24_930_788_000 as u64)
// Standard Error: 266_386
.saturating_add(Weight::from_ref_time(6_687_552 as u64).saturating_mul(v as u64))
// Standard Error: 266_386
.saturating_add(Weight::from_ref_time(6_839_134 as u64).saturating_mul(n as u64))
.saturating_add(T::DbWeight::get().reads(6722 as u64))
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(v as u64)))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(n as u64)))
}
// Storage: Staking CounterForValidators (r:1 w:0)
// Storage: Staking Validators (r:501 w:0)
Expand Down