mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 10:01:17 +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,24 +18,22 @@
|
||||
//! Autogenerated weights for pallet_recovery
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-04-26, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2022-05-22, 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
|
||||
// ./target/production/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet-recovery
|
||||
// --pallet=pallet_recovery
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./frame/recovery/src/weights.rs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=HEADER-APACHE2
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -62,35 +60,35 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Recovery Proxy (r:1 w:0)
|
||||
fn as_recovered() -> Weight {
|
||||
(3_667_000 as Weight)
|
||||
(3_732_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery Proxy (r:0 w:1)
|
||||
fn set_recovered() -> Weight {
|
||||
(10_149_000 as Weight)
|
||||
(10_201_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:1)
|
||||
fn create_recovery(n: u32, ) -> Weight {
|
||||
(23_154_000 as Weight)
|
||||
// Standard Error: 16_000
|
||||
.saturating_add((235_000 as Weight).saturating_mul(n as Weight))
|
||||
(23_334_000 as Weight)
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((201_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:0)
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
fn initiate_recovery() -> Weight {
|
||||
(28_857_000 as Weight)
|
||||
(28_358_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:0)
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
fn vouch_recovery(n: u32, ) -> Weight {
|
||||
(17_841_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((349_000 as Weight).saturating_mul(n as Weight))
|
||||
(17_667_000 as Weight)
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((342_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -98,33 +96,33 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
// Storage: Recovery Proxy (r:1 w:1)
|
||||
fn claim_recovery(n: u32, ) -> Weight {
|
||||
(24_927_000 as Weight)
|
||||
(24_591_000 as Weight)
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((222_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add((242_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn close_recovery(n: u32, ) -> Weight {
|
||||
(28_201_000 as Weight)
|
||||
// Standard Error: 17_000
|
||||
.saturating_add((272_000 as Weight).saturating_mul(n as Weight))
|
||||
(28_763_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((142_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
// Storage: Recovery Recoverable (r:1 w:1)
|
||||
fn remove_recovery(n: u32, ) -> Weight {
|
||||
(27_531_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((218_000 as Weight).saturating_mul(n as Weight))
|
||||
(27_357_000 as Weight)
|
||||
// Standard Error: 17_000
|
||||
.saturating_add((212_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery Proxy (r:1 w:1)
|
||||
fn cancel_recovered() -> Weight {
|
||||
(9_015_000 as Weight)
|
||||
(9_068_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -134,35 +132,35 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
// Storage: Recovery Proxy (r:1 w:0)
|
||||
fn as_recovered() -> Weight {
|
||||
(3_667_000 as Weight)
|
||||
(3_732_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery Proxy (r:0 w:1)
|
||||
fn set_recovered() -> Weight {
|
||||
(10_149_000 as Weight)
|
||||
(10_201_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:1)
|
||||
fn create_recovery(n: u32, ) -> Weight {
|
||||
(23_154_000 as Weight)
|
||||
// Standard Error: 16_000
|
||||
.saturating_add((235_000 as Weight).saturating_mul(n as Weight))
|
||||
(23_334_000 as Weight)
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((201_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:0)
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
fn initiate_recovery() -> Weight {
|
||||
(28_857_000 as Weight)
|
||||
(28_358_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:0)
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
fn vouch_recovery(n: u32, ) -> Weight {
|
||||
(17_841_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((349_000 as Weight).saturating_mul(n as Weight))
|
||||
(17_667_000 as Weight)
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((342_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -170,33 +168,33 @@ impl WeightInfo for () {
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
// Storage: Recovery Proxy (r:1 w:1)
|
||||
fn claim_recovery(n: u32, ) -> Weight {
|
||||
(24_927_000 as Weight)
|
||||
(24_591_000 as Weight)
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((222_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add((242_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn close_recovery(n: u32, ) -> Weight {
|
||||
(28_201_000 as Weight)
|
||||
// Standard Error: 17_000
|
||||
.saturating_add((272_000 as Weight).saturating_mul(n as Weight))
|
||||
(28_763_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((142_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
// Storage: Recovery Recoverable (r:1 w:1)
|
||||
fn remove_recovery(n: u32, ) -> Weight {
|
||||
(27_531_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((218_000 as Weight).saturating_mul(n as Weight))
|
||||
(27_357_000 as Weight)
|
||||
// Standard Error: 17_000
|
||||
.saturating_add((212_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Recovery Proxy (r:1 w:1)
|
||||
fn cancel_recovered() -> Weight {
|
||||
(9_015_000 as Weight)
|
||||
(9_068_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user