Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
benchmark machine weights
  • Loading branch information
shawntabrizi committed Sep 17, 2020
commit 171ee7215ee1ff8541103d51456115e9531e9be5
6 changes: 3 additions & 3 deletions bin/node/runtime/src/weights/pallet_im_online.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ use frame_support::weights::{Weight, constants::RocksDbWeight as DbWeight};
pub struct WeightInfo;
impl pallet_im_online::WeightInfo for WeightInfo {
fn validate_unsigned_and_then_heartbeat(k: u32, e: u32, ) -> Weight {
(232729000 as Weight)
.saturating_add((231000 as Weight).saturating_mul(k as Weight))
.saturating_add((520000 as Weight).saturating_mul(e as Weight))
(139830000 as Weight)
.saturating_add((211000 as Weight).saturating_mul(k as Weight))
.saturating_add((654000 as Weight).saturating_mul(e as Weight))
.saturating_add(DbWeight::get().reads(4 as Weight))
.saturating_add(DbWeight::get().writes(1 as Weight))
}
Expand Down
6 changes: 3 additions & 3 deletions frame/im-online/src/default_weight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ use frame_support::weights::{Weight, constants::RocksDbWeight as DbWeight};

impl crate::WeightInfo for () {
fn validate_unsigned_and_then_heartbeat(k: u32, e: u32, ) -> Weight {
(232729000 as Weight)
.saturating_add((231000 as Weight).saturating_mul(k as Weight))
.saturating_add((520000 as Weight).saturating_mul(e as Weight))
(139830000 as Weight)
.saturating_add((211000 as Weight).saturating_mul(k as Weight))
.saturating_add((654000 as Weight).saturating_mul(e as Weight))
.saturating_add(DbWeight::get().reads(4 as Weight))
.saturating_add(DbWeight::get().writes(1 as Weight))
}
Expand Down