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 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1052ffd
update stuff
kianenigma Jan 13, 2023
e0e7b98
remove
kianenigma Jan 13, 2023
467c282
update
kianenigma Jan 13, 2023
69f01c5
update
kianenigma Jan 13, 2023
c7cc367
update weights
kianenigma Jan 14, 2023
292221b
fix tests
kianenigma Jan 14, 2023
aee9758
update weights
kianenigma Jan 15, 2023
6e93949
Merge branch 'master' of https://github.com/paritytech/polkadot into …
Jan 15, 2023
0c9d768
fix a few small things
kianenigma Jan 15, 2023
4891dbf
".git/.scripts/commands/bench/bench.sh" runtime polkadot-dev pallet-f…
Jan 15, 2023
6496a57
Merge branch 'kiz-fix-fast-unstake-bench' of github.com:paritytech/po…
kianenigma Jan 15, 2023
133e26c
".git/.scripts/commands/bench/bench.sh" runtime polkadot-dev pallet-f…
Jan 15, 2023
9a4972c
".git/.scripts/commands/bench/bench.sh" runtime kusama-dev pallet-fas…
Jan 15, 2023
b5945ef
reduce batch size
kianenigma Jan 15, 2023
1e64eb8
Merge branch 'kiz-fix-fast-unstake-bench' of github.com:paritytech/po…
kianenigma Jan 15, 2023
6427465
".git/.scripts/commands/bench/bench.sh" runtime polkadot-dev pallet-f…
Jan 15, 2023
b1b19c0
Merged
kianenigma Jan 25, 2023
d8e099e
Merge branch 'kiz-fix-fast-unstake-bench' of github.com:paritytech/po…
kianenigma Jan 25, 2023
f7afb5d
update
kianenigma Jan 25, 2023
b513136
fix
kianenigma Jan 25, 2023
8861212
fix
kianenigma Jan 25, 2023
4d0abd7
".git/.scripts/commands/bench/bench.sh" runtime polkadot-dev pallet-f…
Jan 25, 2023
729f7bd
update lockfile for {"substrate"}
Jan 26, 2023
a1fef94
Merge branch 'master' of github.com:paritytech/polkadot into kiz-fix-…
kianenigma Jan 26, 2023
4c3eb7d
fmt
kianenigma Jan 26, 2023
6825d0a
Master.into()
kianenigma Jan 26, 2023
119d604
Env gate migration try_fast_unstake_all
ggwpez Jan 27, 2023
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
Prev Previous commit
Next Next commit
update weights
  • Loading branch information
kianenigma committed Jan 14, 2023
commit c7cc367f96876644a1e06511d94ec930a2dbc87e
50 changes: 22 additions & 28 deletions runtime/kusama/src/weights/pallet_fast_unstake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: Staking Payee (r:0 w:1)
/// The range of component `b` is `[1, 32]`.
fn on_idle_unstake(b: u32, ) -> Weight {
// Minimum execution time: 103_705 nanoseconds.
Weight::from_ref_time(72_740_820)
// Standard Error: 47_638
.saturating_add(Weight::from_ref_time(37_481_933).saturating_mul(b.into()))
// Minimum execution time: 104_891 nanoseconds.
Weight::from_ref_time(81_179_276)
// Standard Error: 69_111
.saturating_add(Weight::from_ref_time(37_598_449).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(b.into())))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -72,28 +72,22 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
// Storage: Staking ValidatorCount (r:1 w:0)
// Storage: FastUnstake Head (r:1 w:1)
// Storage: FastUnstake CounterForQueue (r:1 w:1)
// Storage: FastUnstake CounterForQueue (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
// Storage: FastUnstake Queue (r:33 w:32)
// Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking ErasStakers (r:17 w:0)
/// The range of component `u` is `[1, 16]`.
/// The range of component `v` is `[1, 16]`.
/// The range of component `x` is `[16, 256]`.
/// The range of component `b` is `[1, 32]`.
fn on_idle_check(u: u32, v: u32, b: u32, ) -> Weight {
// Minimum execution time: 2_369_328 nanoseconds.
Weight::from_ref_time(2_393_649_000)
// Standard Error: 56_317_470
.saturating_add(Weight::from_ref_time(823_803_904).saturating_mul(u.into()))
// Standard Error: 56_317_470
.saturating_add(Weight::from_ref_time(661_524_469).saturating_mul(v.into()))
// Standard Error: 28_041_442
.saturating_add(Weight::from_ref_time(407_246_561).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(56))
.saturating_add(T::DbWeight::get().reads((9_u64).saturating_mul(u.into())))
.saturating_add(T::DbWeight::get().reads((8_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(b.into())))
fn on_idle_check(x: u32, b: u32, ) -> Weight {
// Minimum execution time: 2_366_234 nanoseconds.
Weight::from_ref_time(2_389_275_000)
// Standard Error: 2_667_329
.saturating_add(Weight::from_ref_time(77_884_068).saturating_mul(x.into()))
// Standard Error: 21_532_980
.saturating_add(Weight::from_ref_time(638_582_459).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
// Storage: Staking Ledger (r:1 w:1)
Expand All @@ -110,8 +104,8 @@ 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 {
// Minimum execution time: 147_281 nanoseconds.
Weight::from_ref_time(148_635_000)
// Minimum execution time: 146_745 nanoseconds.
Weight::from_ref_time(148_464_000)
.saturating_add(T::DbWeight::get().reads(15))
.saturating_add(T::DbWeight::get().writes(10))
}
Expand All @@ -121,15 +115,15 @@ 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 {
// Minimum execution time: 67_125 nanoseconds.
Weight::from_ref_time(67_858_000)
// Minimum execution time: 67_591 nanoseconds.
Weight::from_ref_time(68_455_000)
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: FastUnstake ErasToCheckPerBlock (r:0 w:1)
fn control() -> Weight {
// Minimum execution time: 4_845 nanoseconds.
Weight::from_ref_time(4_969_000)
// Minimum execution time: 4_553 nanoseconds.
Weight::from_ref_time(4_813_000)
.saturating_add(T::DbWeight::get().writes(1))
}
}
50 changes: 22 additions & 28 deletions runtime/polkadot/src/weights/pallet_fast_unstake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: Staking Payee (r:0 w:1)
/// The range of component `b` is `[1, 32]`.
fn on_idle_unstake(b: u32, ) -> Weight {
// Minimum execution time: 103_705 nanoseconds.
Weight::from_ref_time(72_740_820)
// Standard Error: 47_638
.saturating_add(Weight::from_ref_time(37_481_933).saturating_mul(b.into()))
// Minimum execution time: 104_891 nanoseconds.
Weight::from_ref_time(81_179_276)
// Standard Error: 69_111
.saturating_add(Weight::from_ref_time(37_598_449).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(b.into())))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -72,28 +72,22 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
// Storage: Staking ValidatorCount (r:1 w:0)
// Storage: FastUnstake Head (r:1 w:1)
// Storage: FastUnstake CounterForQueue (r:1 w:1)
// Storage: FastUnstake CounterForQueue (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
// Storage: FastUnstake Queue (r:33 w:32)
// Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking ErasStakers (r:17 w:0)
/// The range of component `u` is `[1, 16]`.
/// The range of component `v` is `[1, 16]`.
/// The range of component `x` is `[16, 256]`.
/// The range of component `b` is `[1, 32]`.
fn on_idle_check(u: u32, v: u32, b: u32, ) -> Weight {
// Minimum execution time: 2_369_328 nanoseconds.
Weight::from_ref_time(2_393_649_000)
// Standard Error: 56_317_470
.saturating_add(Weight::from_ref_time(823_803_904).saturating_mul(u.into()))
// Standard Error: 56_317_470
.saturating_add(Weight::from_ref_time(661_524_469).saturating_mul(v.into()))
// Standard Error: 28_041_442
.saturating_add(Weight::from_ref_time(407_246_561).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(56))
.saturating_add(T::DbWeight::get().reads((9_u64).saturating_mul(u.into())))
.saturating_add(T::DbWeight::get().reads((8_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(b.into())))
fn on_idle_check(x: u32, b: u32, ) -> Weight {
// Minimum execution time: 2_366_234 nanoseconds.
Weight::from_ref_time(2_389_275_000)
// Standard Error: 2_667_329
.saturating_add(Weight::from_ref_time(77_884_068).saturating_mul(x.into()))
// Standard Error: 21_532_980
.saturating_add(Weight::from_ref_time(638_582_459).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
// Storage: Staking Ledger (r:1 w:1)
Expand All @@ -110,8 +104,8 @@ 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 {
// Minimum execution time: 147_281 nanoseconds.
Weight::from_ref_time(148_635_000)
// Minimum execution time: 146_745 nanoseconds.
Weight::from_ref_time(148_464_000)
.saturating_add(T::DbWeight::get().reads(15))
.saturating_add(T::DbWeight::get().writes(10))
}
Expand All @@ -121,15 +115,15 @@ 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 {
// Minimum execution time: 67_125 nanoseconds.
Weight::from_ref_time(67_858_000)
// Minimum execution time: 67_591 nanoseconds.
Weight::from_ref_time(68_455_000)
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: FastUnstake ErasToCheckPerBlock (r:0 w:1)
fn control() -> Weight {
// Minimum execution time: 4_845 nanoseconds.
Weight::from_ref_time(4_969_000)
// Minimum execution time: 4_553 nanoseconds.
Weight::from_ref_time(4_813_000)
.saturating_add(T::DbWeight::get().writes(1))
}
}
50 changes: 22 additions & 28 deletions runtime/westend/src/weights/pallet_fast_unstake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: Staking Payee (r:0 w:1)
/// The range of component `b` is `[1, 32]`.
fn on_idle_unstake(b: u32, ) -> Weight {
// Minimum execution time: 103_705 nanoseconds.
Weight::from_ref_time(72_740_820)
// Standard Error: 47_638
.saturating_add(Weight::from_ref_time(37_481_933).saturating_mul(b.into()))
// Minimum execution time: 104_891 nanoseconds.
Weight::from_ref_time(81_179_276)
// Standard Error: 69_111
.saturating_add(Weight::from_ref_time(37_598_449).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(b.into())))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -72,28 +72,22 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
// Storage: Staking ValidatorCount (r:1 w:0)
// Storage: FastUnstake Head (r:1 w:1)
// Storage: FastUnstake CounterForQueue (r:1 w:1)
// Storage: FastUnstake CounterForQueue (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
// Storage: FastUnstake Queue (r:33 w:32)
// Storage: Staking CurrentEra (r:1 w:0)
// Storage: Staking ErasStakers (r:17 w:0)
/// The range of component `u` is `[1, 16]`.
/// The range of component `v` is `[1, 16]`.
/// The range of component `x` is `[16, 256]`.
/// The range of component `b` is `[1, 32]`.
fn on_idle_check(u: u32, v: u32, b: u32, ) -> Weight {
// Minimum execution time: 2_369_328 nanoseconds.
Weight::from_ref_time(2_393_649_000)
// Standard Error: 56_317_470
.saturating_add(Weight::from_ref_time(823_803_904).saturating_mul(u.into()))
// Standard Error: 56_317_470
.saturating_add(Weight::from_ref_time(661_524_469).saturating_mul(v.into()))
// Standard Error: 28_041_442
.saturating_add(Weight::from_ref_time(407_246_561).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(56))
.saturating_add(T::DbWeight::get().reads((9_u64).saturating_mul(u.into())))
.saturating_add(T::DbWeight::get().reads((8_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(b.into())))
fn on_idle_check(x: u32, b: u32, ) -> Weight {
// Minimum execution time: 2_366_234 nanoseconds.
Weight::from_ref_time(2_389_275_000)
// Standard Error: 2_667_329
.saturating_add(Weight::from_ref_time(77_884_068).saturating_mul(x.into()))
// Standard Error: 21_532_980
.saturating_add(Weight::from_ref_time(638_582_459).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
// Storage: Staking Ledger (r:1 w:1)
Expand All @@ -110,8 +104,8 @@ 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 {
// Minimum execution time: 147_281 nanoseconds.
Weight::from_ref_time(148_635_000)
// Minimum execution time: 146_745 nanoseconds.
Weight::from_ref_time(148_464_000)
.saturating_add(T::DbWeight::get().reads(15))
.saturating_add(T::DbWeight::get().writes(10))
}
Expand All @@ -121,15 +115,15 @@ 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 {
// Minimum execution time: 67_125 nanoseconds.
Weight::from_ref_time(67_858_000)
// Minimum execution time: 67_591 nanoseconds.
Weight::from_ref_time(68_455_000)
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: FastUnstake ErasToCheckPerBlock (r:0 w:1)
fn control() -> Weight {
// Minimum execution time: 4_845 nanoseconds.
Weight::from_ref_time(4_969_000)
// Minimum execution time: 4_553 nanoseconds.
Weight::from_ref_time(4_813_000)
.saturating_add(T::DbWeight::get().writes(1))
}
}