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

Co reducing fast-unstake bench time and more #6552

Merged
merged 27 commits into from
Jan 27, 2023
Merged
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
".git/.scripts/commands/bench/bench.sh" runtime polkadot-dev pallet-f…
…ast-unstake
  • Loading branch information
command-bot committed Jan 25, 2023
commit 4d0abd760dacc1a4c0303f4df527b6ed70d6c9c6
40 changes: 20 additions & 20 deletions runtime/polkadot/src/weights/pallet_fast_unstake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
//! Autogenerated weights for `pallet_fast_unstake`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2023-01-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 1024

// Executed Command:
// /home/benchbot/cargo_target_dir/production/polkadot
// target/production/polkadot
// benchmark
// pallet
// --steps=50
Expand All @@ -30,7 +30,7 @@
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/polkadot/.git/.artifacts/bench.json
// --json-file=/builds/parity/mirrors/polkadot/.git/.artifacts/bench.json
// --pallet=pallet-fast-unstake
// --chain=polkadot-dev
// --header=./file_header.txt
Expand Down Expand Up @@ -62,10 +62,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, 16]`.
fn on_idle_unstake(b: u32, ) -> Weight {
// Minimum execution time: 76_468 nanoseconds.
Weight::from_ref_time(47_557_097)
// Standard Error: 32_963
.saturating_add(Weight::from_ref_time(33_837_395).saturating_mul(b.into()))
// Minimum execution time: 83_164 nanoseconds.
Weight::from_ref_time(49_648_955)
// Standard Error: 32_056
.saturating_add(Weight::from_ref_time(39_756_465).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 @@ -81,12 +81,12 @@ impl<T: frame_system::Config> pallet_fast_unstake::WeightInfo for WeightInfo<T>
/// The range of component `v` is `[1, 256]`.
/// The range of component `b` is `[1, 16]`.
fn on_idle_check(v: u32, b: u32, ) -> Weight {
// Minimum execution time: 665_245 nanoseconds.
Weight::from_ref_time(668_032_000)
// Standard Error: 6_419_133
.saturating_add(Weight::from_ref_time(213_945_440).saturating_mul(v.into()))
// Standard Error: 103_007_811
.saturating_add(Weight::from_ref_time(3_200_709_428).saturating_mul(b.into()))
// Minimum execution time: 717_323 nanoseconds.
Weight::from_ref_time(720_850_000)
// Standard Error: 6_820_833
.saturating_add(Weight::from_ref_time(227_516_069).saturating_mul(v.into()))
// Standard Error: 109_453_890
.saturating_add(Weight::from_ref_time(3_407_382_031).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -106,8 +106,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: 109_570 nanoseconds.
Weight::from_ref_time(110_644_000)
// Minimum execution time: 117_697 nanoseconds.
Weight::from_ref_time(121_765_000)
.saturating_add(T::DbWeight::get().reads(15))
.saturating_add(T::DbWeight::get().writes(10))
}
Expand All @@ -117,15 +117,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: 43_608 nanoseconds.
Weight::from_ref_time(44_278_000)
// Minimum execution time: 43_159 nanoseconds.
Weight::from_ref_time(44_550_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_091 nanoseconds.
Weight::from_ref_time(4_285_000)
// Minimum execution time: 3_898 nanoseconds.
Weight::from_ref_time(4_344_000)
.saturating_add(T::DbWeight::get().writes(1))
}
}