Benchmarking also benchmark for decoding the call (#9343)

* benchmark for decoding of call

* better names

* fix benchmarks

* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_lottery --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/lottery/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/system/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Update frame/system/src/weights.rs

Co-authored-by: Parity Benchmarking Bot <admin@parity.io>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
Guillaume Thiolliere
2021-07-22 11:29:44 +02:00
committed by GitHub
parent c5f5c9c28c
commit e18f388dac
5 changed files with 78 additions and 65 deletions
+16 -16
View File
@@ -17,8 +17,8 @@
//! Autogenerated weights for pallet_utility
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
//! DATE: 2021-06-19, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2021-07-14, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
// Executed Command:
@@ -54,33 +54,33 @@ pub trait WeightInfo {
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn batch(c: u32, ) -> Weight {
(14_618_000 as Weight)
// Standard Error: 0
.saturating_add((610_000 as Weight).saturating_mul(c as Weight))
(20_779_000 as Weight)
// Standard Error: 1_000
.saturating_add((1_080_000 as Weight).saturating_mul(c as Weight))
}
fn as_derivative() -> Weight {
(3_175_000 as Weight)
(3_994_000 as Weight)
}
fn batch_all(c: u32, ) -> Weight {
(14_561_000 as Weight)
// Standard Error: 0
.saturating_add((1_013_000 as Weight).saturating_mul(c as Weight))
(22_183_000 as Weight)
// Standard Error: 1_000
.saturating_add((1_506_000 as Weight).saturating_mul(c as Weight))
}
}
// For backwards compatibility and tests
impl WeightInfo for () {
fn batch(c: u32, ) -> Weight {
(14_618_000 as Weight)
// Standard Error: 0
.saturating_add((610_000 as Weight).saturating_mul(c as Weight))
(20_779_000 as Weight)
// Standard Error: 1_000
.saturating_add((1_080_000 as Weight).saturating_mul(c as Weight))
}
fn as_derivative() -> Weight {
(3_175_000 as Weight)
(3_994_000 as Weight)
}
fn batch_all(c: u32, ) -> Weight {
(14_561_000 as Weight)
// Standard Error: 0
.saturating_add((1_013_000 as Weight).saturating_mul(c as Weight))
(22_183_000 as Weight)
// Standard Error: 1_000
.saturating_add((1_506_000 as Weight).saturating_mul(c as Weight))
}
}