Created
December 3, 2020 19:27
-
-
Save conectado/d63ca35bb27d2a9bb5906b44488a255b to your computer and use it in GitHub Desktop.
Result of benchmarking the same pallets with 2 different instances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 | |
#![allow(unused_parens)] | |
#![allow(unused_imports)] | |
use frame_support::weights::{Weight, constants::RocksDbWeight as DbWeight}; | |
pub struct WeightInfo; | |
impl pallet::WeightInfo for WeightInfo { | |
fn on_initialize_first(i: u32, ) -> Weight { | |
(462_552_000 as Weight) | |
.saturating_add((523_572_000 as Weight).saturating_mul(i as Weight)) | |
.saturating_add(DbWeight::get().reads(4 as Weight)) | |
.saturating_add(DbWeight::get().reads((3 as Weight).saturating_mul(i as Weight))) | |
.saturating_add(DbWeight::get().writes(3 as Weight)) | |
.saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(i as Weight))) | |
} | |
fn on_initialize_second(i: u32, ) -> Weight { | |
(0 as Weight) | |
.saturating_add((410_204_000 as Weight).saturating_mul(i as Weight)) | |
.saturating_add(DbWeight::get().reads(2 as Weight)) | |
.saturating_add(DbWeight::get().reads((2 as Weight).saturating_mul(i as Weight))) | |
.saturating_add(DbWeight::get().writes(1 as Weight)) | |
.saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | |
} | |
fn on_initialize_first(i: u32, ) -> Weight { | |
(0 as Weight) | |
.saturating_add((546_453_000 as Weight).saturating_mul(i as Weight)) | |
.saturating_add(DbWeight::get().reads(4 as Weight)) | |
.saturating_add(DbWeight::get().reads((3 as Weight).saturating_mul(i as Weight))) | |
.saturating_add(DbWeight::get().writes(3 as Weight)) | |
.saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(i as Weight))) | |
} | |
fn on_initialize_second(i: u32, ) -> Weight { | |
(39_289_000 as Weight) | |
.saturating_add((416_858_000 as Weight).saturating_mul(i as Weight)) | |
.saturating_add(DbWeight::get().reads(2 as Weight)) | |
.saturating_add(DbWeight::get().reads((2 as Weight).saturating_mul(i as Weight))) | |
.saturating_add(DbWeight::get().writes(1 as Weight)) | |
.saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment