mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 13:57:58 +00:00
Create Script to Run All Benchmarks (#11493)
* Create run_all_benchmarks.sh * Update run_all_benchmarks.sh * Update run_all_benchmarks.sh * Review fixes Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update scripts/run_all_benchmarks.sh Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * typo Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * add default for $1 * Typo Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update run_all_benchmarks.sh * new weights on benchmarking machine * prefer `--chain=dev` * fix compile * fix command * fmt * dont use square brackets * Extend doc Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Remove +nightly Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add error file an run execute everything optimistically Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -18,12 +18,13 @@
|
||||
//! Autogenerated weights for pallet_tips
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-01-31, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2022-05-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
@@ -31,11 +32,8 @@
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./frame/tips/src/weights.rs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=HEADER-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -60,7 +58,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
fn report_awesome(r: u32, ) -> Weight {
|
||||
(25_262_000 as Weight)
|
||||
(26_613_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
@@ -69,7 +67,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn retract_tip() -> Weight {
|
||||
(24_162_000 as Weight)
|
||||
(25_001_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -77,20 +75,20 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:0 w:1)
|
||||
fn tip_new(r: u32, t: u32, ) -> Weight {
|
||||
(16_435_000 as Weight)
|
||||
(17_490_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((231_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((1_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((183_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
fn tip(t: u32, ) -> Weight {
|
||||
(10_427_000 as Weight)
|
||||
(9_634_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((507_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((343_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -99,18 +97,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn close_tip(t: u32, ) -> Weight {
|
||||
(40_901_000 as Weight)
|
||||
(41_967_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((281_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((264_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn slash_tip(t: u32, ) -> Weight {
|
||||
(14_636_000 as Weight)
|
||||
(14_917_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((29_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((61_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -121,7 +119,7 @@ impl WeightInfo for () {
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
fn report_awesome(r: u32, ) -> Weight {
|
||||
(25_262_000 as Weight)
|
||||
(26_613_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
@@ -130,7 +128,7 @@ impl WeightInfo for () {
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn retract_tip() -> Weight {
|
||||
(24_162_000 as Weight)
|
||||
(25_001_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -138,20 +136,20 @@ impl WeightInfo for () {
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:0 w:1)
|
||||
fn tip_new(r: u32, t: u32, ) -> Weight {
|
||||
(16_435_000 as Weight)
|
||||
(17_490_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((231_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((1_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((183_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
fn tip(t: u32, ) -> Weight {
|
||||
(10_427_000 as Weight)
|
||||
(9_634_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((507_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((343_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -160,18 +158,18 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn close_tip(t: u32, ) -> Weight {
|
||||
(40_901_000 as Weight)
|
||||
(41_967_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((281_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((264_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn slash_tip(t: u32, ) -> Weight {
|
||||
(14_636_000 as Weight)
|
||||
(14_917_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((29_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((61_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user