From 6ff8ea937407d72fdf1750816d2ead87199592bf Mon Sep 17 00:00:00 2001 From: Edwin Wang Date: Mon, 23 Aug 2021 17:51:18 +0800 Subject: [PATCH] update benchmark --- .../src/weights/bifrost_flexible_fee.rs | 12 ++++---- runtime/bifrost/src/weights/frame_system.rs | 30 +++++++++---------- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/runtime/bifrost/src/weights/bifrost_flexible_fee.rs b/runtime/bifrost/src/weights/bifrost_flexible_fee.rs index 2da33f55b..af45ed31d 100644 --- a/runtime/bifrost/src/weights/bifrost_flexible_fee.rs +++ b/runtime/bifrost/src/weights/bifrost_flexible_fee.rs @@ -19,13 +19,13 @@ //! Autogenerated weights for bifrost_flexible_fee //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-08-11, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("asgard-local"), DB CACHE: 128 +//! DATE: 2021-08-23, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("bifrost-genesis"), DB CACHE: 128 // Executed Command: // target/release/bifrost // benchmark -// --chain=asgard-local +// --chain=bifrost-genesis // --steps=50 // --repeat=20 // --pallet=bifrost_flexible_fee @@ -34,7 +34,7 @@ // --wasm-execution=compiled // --heap-pages=4096 // --header=./HEADER-GPL3 -// --output=./runtime/asgard/src/weights/bifrost_flexible_fee.rs +// --output=./runtime/bifrost/src/weights/ #![allow(unused_parens)] #![allow(unused_imports)] @@ -46,8 +46,6 @@ use sp_std::marker::PhantomData; pub struct WeightInfo(PhantomData); impl bifrost_flexible_fee::WeightInfo for WeightInfo { fn set_user_fee_charge_order() -> Weight { - (6_081_000 as Weight) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) + (8_034_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight)) } } diff --git a/runtime/bifrost/src/weights/frame_system.rs b/runtime/bifrost/src/weights/frame_system.rs index 46923d8f4..9a34bf022 100644 --- a/runtime/bifrost/src/weights/frame_system.rs +++ b/runtime/bifrost/src/weights/frame_system.rs @@ -19,11 +19,11 @@ //! Autogenerated weights for frame_system //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-08-18, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2021-08-23, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("bifrost-genesis"), DB CACHE: 128 // Executed Command: -// target/debug/bifrost +// target/release/bifrost // benchmark // --chain=bifrost-genesis // --steps=50 @@ -46,39 +46,39 @@ use sp_std::marker::PhantomData; pub struct WeightInfo(PhantomData); impl frame_system::WeightInfo for WeightInfo { fn remark(_b: u32) -> Weight { - (51_052_000 as Weight) + (3_385_000 as Weight) } fn remark_with_event(b: u32) -> Weight { - (1_623_480_000 as Weight) + (68_651_000 as Weight) // Standard Error: 0 .saturating_add((2_000 as Weight).saturating_mul(b as Weight)) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } fn set_heap_pages() -> Weight { - (73_328_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight)) + (4_193_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight)) } fn set_changes_trie_config() -> Weight { - (373_044_000 as Weight) + (22_114_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } fn set_storage(i: u32) -> Weight { - (358_763_000 as Weight) - // Standard Error: 311_000 - .saturating_add((27_904_000 as Weight).saturating_mul(i as Weight)) + (0 as Weight) + // Standard Error: 0 + .saturating_add((971_000 as Weight).saturating_mul(i as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) } fn kill_storage(i: u32) -> Weight { - (0 as Weight) - // Standard Error: 242_000 - .saturating_add((24_201_000 as Weight).saturating_mul(i as Weight)) + (779_000 as Weight) + // Standard Error: 1_000 + .saturating_add((826_000 as Weight).saturating_mul(i as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) } fn kill_prefix(p: u32) -> Weight { - (1_234_472_000 as Weight) - // Standard Error: 531_000 - .saturating_add((45_655_000 as Weight).saturating_mul(p as Weight)) + (14_414_000 as Weight) + // Standard Error: 4_000 + .saturating_add((3_271_000 as Weight).saturating_mul(p as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight))) } }