From f95f5af1ee08faaebdd716b7283957ef1c35330a Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Tue, 9 Aug 2022 01:19:35 +0200 Subject: [PATCH] run real benchmarks for pallet oneshot --- .../src/weights/pallet_oneshot_account.rs | 17 +++++++++-------- runtime/gdev/Cargo.toml | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/runtime/common/src/weights/pallet_oneshot_account.rs b/runtime/common/src/weights/pallet_oneshot_account.rs index c10f189ad..8a50c7664 100644 --- a/runtime/common/src/weights/pallet_oneshot_account.rs +++ b/runtime/common/src/weights/pallet_oneshot_account.rs @@ -17,19 +17,20 @@ //! Autogenerated weights for `pallet_oneshot_account` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-06-28, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! DATE: 2022-08-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Interpreted, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/release/duniter +// ./duniter // benchmark +// pallet // --chain=dev // --steps=50 // --repeat=20 -// --pallet=pallet_oneshot-account +// --pallet=pallet_oneshot_account // --extrinsic=* // --execution=wasm -// --wasm-execution=compiled +// --wasm-execution=interpreted-i-know-what-i-do // --heap-pages=4096 // --header=./file_header.txt // --output=. @@ -47,7 +48,7 @@ pub struct WeightInfo<T>(PhantomData<T>); impl<T: frame_system::Config> pallet_oneshot_account::WeightInfo for WeightInfo<T> { // Storage: OneshotAccount OneshotAccounts (r:1 w:1) fn create_oneshot_account() -> Weight { - (45_690_000 as Weight) + (941_602_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } @@ -55,7 +56,7 @@ impl<T: frame_system::Config> pallet_oneshot_account::WeightInfo for WeightInfo< // Storage: System BlockHash (r:1 w:0) // Storage: System Account (r:1 w:1) fn consume_oneshot_account() -> Weight { - (50_060_000 as Weight) + (971_453_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } @@ -63,7 +64,7 @@ impl<T: frame_system::Config> pallet_oneshot_account::WeightInfo for WeightInfo< // Storage: System BlockHash (r:1 w:0) // Storage: System Account (r:2 w:2) fn consume_oneshot_account_with_remaining() -> Weight { - (69_346_000 as Weight) + (1_500_781_000 as Weight) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } diff --git a/runtime/gdev/Cargo.toml b/runtime/gdev/Cargo.toml index c28e43875..77ff1f259 100644 --- a/runtime/gdev/Cargo.toml +++ b/runtime/gdev/Cargo.toml @@ -36,6 +36,7 @@ runtime-benchmarks = [ 'pallet-provide-randomness/runtime-benchmarks', 'pallet-im-online/runtime-benchmarks', 'pallet-multisig/runtime-benchmarks', + 'pallet-oneshot-account/runtime-benchmarks', 'pallet-preimage/runtime-benchmarks', 'pallet-proxy/runtime-benchmarks', 'pallet-scheduler/runtime-benchmarks', -- GitLab