Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
609dea4
add fast-unstsake pallet to all runtimes
kianenigma Sep 25, 2022
86e8447
".git/.scripts/fmt.sh" 1
Sep 25, 2022
5570416
".git/.scripts/bench-bot.sh" runtime polkadot-dev pallet_fast_unstake
Sep 25, 2022
6717883
".git/.scripts/bench-bot.sh" runtime westend-dev pallet_fast_unstake
Sep 26, 2022
205b28d
fix up all the weight stuff
kianenigma Sep 26, 2022
8d6509e
update substrate
kianenigma Sep 26, 2022
85d0a35
update mistake in kusama
kianenigma Sep 26, 2022
22cbceb
add stub file
kianenigma Sep 26, 2022
55849d7
Update runtime/polkadot/src/lib.rs
kianenigma Sep 26, 2022
c2a89f8
Update runtime/westend/src/lib.rs
kianenigma Sep 26, 2022
60842bc
Master.into()
kianenigma Sep 26, 2022
663efed
cargo update -p sp-io
kianenigma Sep 26, 2022
e7e552a
Merge branch 'kiz-add-fast-unstake' of github.com:paritytech/polkadot…
kianenigma Sep 26, 2022
deb936f
add signed extension as well
kianenigma Sep 26, 2022
789cc2c
master.into()
kianenigma Sep 27, 2022
95fe711
Revert "add signed extension as well"
kianenigma Sep 27, 2022
3a20b00
Merge branch 'master' of github.com:paritytech/polkadot into kiz-add-…
kianenigma Sep 27, 2022
6c6152e
cargo update -p sp-io
kianenigma Sep 27, 2022
4cda7ec
".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_fast_unstake
Sep 27, 2022
7cd50e3
".git/.scripts/bench-bot.sh" runtime polkadot-dev pallet_fast_unstake
Sep 27, 2022
d5c3a88
update sub
kianenigma Sep 27, 2022
5d938c2
integrate latest substrate changes
kianenigma Sep 27, 2022
6095205
Merge branch 'kiz-add-fast-unstake' of github.com:paritytech/polkadot…
kianenigma Sep 27, 2022
b884ebb
".git/.scripts/fmt.sh" 1
Sep 28, 2022
8a57b1e
".git/.scripts/bench-bot.sh" runtime westend-dev pallet_fast_unstake
Sep 28, 2022
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
48 changes: 20 additions & 28 deletions runtime/kusama/src/weights/pallet_fast_unstake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
//! Autogenerated weights for `pallet_fast_unstake`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-09-26, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-09-27, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! 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("kusama-dev"), DB CACHE: 1024

// Executed Command:
// /home/benchbot/cargo_target_dir/production/polkadot
Expand All @@ -31,9 +31,9 @@
// --wasm-execution=compiled
// --heap-pages=4096
// --pallet=pallet_fast_unstake
// --chain=westend-dev
// --chain=kusama-dev
// --header=./file_header.txt
// --output=./runtime/westend/src/weights/
// --output=./runtime/kusama/src/weights/

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand All @@ -51,25 +51,17 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: FastUnstake Head (r:1 w:1)
// Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking SlashingSpans (r:1 w:0)
// Storage: Staking Bonded (r:2 w:1)
// Storage: Staking Ledger (r:2 w:2)
// Storage: Staking Bonded (r:1 w:1)
// Storage: Staking Validators (r:1 w:0)
// Storage: Staking Nominators (r:1 w:0)
// Storage: System Account (r:3 w:2)
// Storage: Balances Locks (r:2 w:2)
// Storage: NominationPools MinJoinBond (r:1 w:0)
// Storage: NominationPools PoolMembers (r:1 w:1)
// Storage: NominationPools BondedPools (r:1 w:1)
// Storage: NominationPools RewardPools (r:1 w:1)
// Storage: NominationPools MaxPoolMembersPerPool (r:1 w:0)
// Storage: NominationPools MaxPoolMembers (r:1 w:0)
// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
// Storage: VoterList ListNodes (r:1 w:0)
// Storage: System Account (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: Staking Ledger (r:0 w:1)
// Storage: Staking Payee (r:0 w:1)
fn on_idle_unstake() -> Weight {
Weight::from_ref_time(146_928_000 as u64)
.saturating_add(T::DbWeight::get().reads(25 as u64))
.saturating_add(T::DbWeight::get().writes(13 as u64))
Weight::from_ref_time(64_798_000 as u64)
.saturating_add(T::DbWeight::get().reads(11 as u64))
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
// Storage: Staking ValidatorCount (r:1 w:0)
Expand All @@ -78,13 +70,13 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: FastUnstake Queue (r:2 w:1)
// Storage: FastUnstake CounterForQueue (r:1 w:1)
// Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking ErasStakers (r:4 w:0)
/// The range of component `x` is `[2, 256]`.
// Storage: Staking ErasStakers (r:56 w:0)
/// The range of component `x` is `[28, 3584]`.
fn on_idle_check(x: u32, ) -> Weight {
Weight::from_ref_time(69_485_000 as u64)
// Standard Error: 10_556
.saturating_add(Weight::from_ref_time(13_708_637 as u64).saturating_mul(x as u64))
.saturating_add(T::DbWeight::get().reads(12 as u64))
Weight::from_ref_time(412_389_000 as u64)
// Standard Error: 10_902
.saturating_add(Weight::from_ref_time(10_950_753 as u64).saturating_mul(x as u64))
.saturating_add(T::DbWeight::get().reads(64 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(x as u64)))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
Expand All @@ -101,7 +93,7 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: Balances Locks (r:1 w:1)
// Storage: FastUnstake CounterForQueue (r:1 w:1)
fn register_fast_unstake() -> Weight {
Weight::from_ref_time(85_439_000 as u64)
Weight::from_ref_time(84_738_000 as u64)
.saturating_add(T::DbWeight::get().reads(12 as u64))
.saturating_add(T::DbWeight::get().writes(9 as u64))
}
Expand All @@ -110,13 +102,13 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: FastUnstake Head (r:1 w:0)
// Storage: FastUnstake CounterForQueue (r:1 w:1)
fn deregister() -> Weight {
Weight::from_ref_time(23_885_000 as u64)
Weight::from_ref_time(23_369_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: FastUnstake ErasToCheckPerBlock (r:0 w:1)
fn control() -> Weight {
Weight::from_ref_time(4_292_000 as u64)
Weight::from_ref_time(3_991_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
}
36 changes: 14 additions & 22 deletions runtime/polkadot/src/weights/pallet_fast_unstake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//! Autogenerated weights for `pallet_fast_unstake`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-09-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-09-27, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! 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

Expand Down Expand Up @@ -51,25 +51,17 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: FastUnstake Head (r:1 w:1)
// Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking SlashingSpans (r:1 w:0)
// Storage: Staking Bonded (r:2 w:1)
// Storage: Staking Ledger (r:2 w:2)
// Storage: Staking Bonded (r:1 w:1)
// Storage: Staking Validators (r:1 w:0)
// Storage: Staking Nominators (r:1 w:0)
// Storage: System Account (r:3 w:2)
// Storage: Balances Locks (r:2 w:2)
// Storage: NominationPools MinJoinBond (r:1 w:0)
// Storage: NominationPools PoolMembers (r:1 w:1)
// Storage: NominationPools BondedPools (r:1 w:1)
// Storage: NominationPools RewardPools (r:1 w:1)
// Storage: NominationPools MaxPoolMembersPerPool (r:1 w:0)
// Storage: NominationPools MaxPoolMembers (r:1 w:0)
// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
// Storage: VoterList ListNodes (r:1 w:0)
// Storage: System Account (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: Staking Ledger (r:0 w:1)
// Storage: Staking Payee (r:0 w:1)
fn on_idle_unstake() -> Weight {
Weight::from_ref_time(153_770_000 as u64)
.saturating_add(T::DbWeight::get().reads(25 as u64))
.saturating_add(T::DbWeight::get().writes(13 as u64))
Weight::from_ref_time(67_082_000 as u64)
.saturating_add(T::DbWeight::get().reads(11 as u64))
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
// Storage: Staking ValidatorCount (r:1 w:0)
Expand All @@ -81,9 +73,9 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: Staking ErasStakers (r:56 w:0)
/// The range of component `x` is `[28, 3584]`.
fn on_idle_check(x: u32, ) -> Weight {
Weight::from_ref_time(504_175_000 as u64)
// Standard Error: 13_114
.saturating_add(Weight::from_ref_time(14_114_545 as u64).saturating_mul(x as u64))
Weight::from_ref_time(504_317_000 as u64)
// Standard Error: 18_023
.saturating_add(Weight::from_ref_time(14_203_535 as u64).saturating_mul(x as u64))
.saturating_add(T::DbWeight::get().reads(64 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(x as u64)))
.saturating_add(T::DbWeight::get().writes(3 as u64))
Expand All @@ -101,7 +93,7 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: Balances Locks (r:1 w:1)
// Storage: FastUnstake CounterForQueue (r:1 w:1)
fn register_fast_unstake() -> Weight {
Weight::from_ref_time(90_143_000 as u64)
Weight::from_ref_time(90_682_000 as u64)
.saturating_add(T::DbWeight::get().reads(13 as u64))
.saturating_add(T::DbWeight::get().writes(10 as u64))
}
Expand All @@ -110,13 +102,13 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: FastUnstake Head (r:1 w:0)
// Storage: FastUnstake CounterForQueue (r:1 w:1)
fn deregister() -> Weight {
Weight::from_ref_time(23_436_000 as u64)
Weight::from_ref_time(23_926_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: FastUnstake ErasToCheckPerBlock (r:0 w:1)
fn control() -> Weight {
Weight::from_ref_time(4_003_000 as u64)
Weight::from_ref_time(3_899_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
}