Skip to content

Commit

Permalink
update benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ark930 committed Aug 23, 2021
1 parent 7402d4c commit 6ff8ea9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
12 changes: 5 additions & 7 deletions runtime/bifrost/src/weights/bifrost_flexible_fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)]
Expand All @@ -46,8 +46,6 @@ use sp_std::marker::PhantomData;
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> bifrost_flexible_fee::WeightInfo for WeightInfo<T> {
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))
}
}
30 changes: 15 additions & 15 deletions runtime/bifrost/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -46,39 +46,39 @@ use sp_std::marker::PhantomData;
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
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)))
}
}

0 comments on commit 6ff8ea9

Please sign in to comment.