1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_evm_migration4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-10-13, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`9//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// ./target/production/unique-collator13// benchmark14// pallet15// --pallet16// pallet-evm-migration17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=8024// --heap-pages=409625// --output=./pallets/evm-migration/src/weights.rs2627#![cfg_attr(rustfmt, rustfmt_skip)]28#![allow(unused_parens)]29#![allow(unused_imports)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_evm_migration.35pub trait WeightInfo {36 fn begin() -> Weight;37 fn set_data(b: u32, ) -> Weight;38 fn finish(b: u32, ) -> Weight;39 fn insert_eth_logs(b: u32, ) -> Weight;40 fn insert_events(b: u32, ) -> Weight;41}4243/// Weights for pallet_evm_migration using the Substrate node and recommended hardware.44pub struct SubstrateWeight<T>(PhantomData<T>);45impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {46 /// Storage: `EvmMigration::MigrationPending` (r:1 w:1)47 /// Proof: `EvmMigration::MigrationPending` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`)48 /// Storage: `System::Account` (r:1 w:0)49 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)50 /// Storage: `EVM::AccountCodes` (r:1 w:0)51 /// Proof: `EVM::AccountCodes` (`max_values`: None, `max_size`: None, mode: `Measured`)52 fn begin() -> Weight {53 // Proof Size summary in bytes:54 // Measured: `94`55 // Estimated: `3593`56 // Minimum execution time: 12_866_000 picoseconds.57 Weight::from_parts(13_129_000, 3593)58 .saturating_add(T::DbWeight::get().reads(3_u64))59 .saturating_add(T::DbWeight::get().writes(1_u64))60 }61 /// Storage: `EvmMigration::MigrationPending` (r:1 w:0)62 /// Proof: `EvmMigration::MigrationPending` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`)63 /// Storage: `EVM::AccountStorages` (r:0 w:80)64 /// Proof: `EVM::AccountStorages` (`max_values`: None, `max_size`: None, mode: `Measured`)65 /// The range of component `b` is `[0, 80]`.66 fn set_data(b: u32, ) -> Weight {67 // Proof Size summary in bytes:68 // Measured: `96`69 // Estimated: `3494`70 // Minimum execution time: 6_855_000 picoseconds.71 Weight::from_parts(7_515_980, 3494)72 // Standard Error: 56473 .saturating_add(Weight::from_parts(1_535_437, 0).saturating_mul(b.into()))74 .saturating_add(T::DbWeight::get().reads(1_u64))75 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(b.into())))76 }77 /// Storage: `EvmMigration::MigrationPending` (r:1 w:1)78 /// Proof: `EvmMigration::MigrationPending` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`)79 /// Storage: `EVM::AccountCodes` (r:0 w:1)80 /// Proof: `EVM::AccountCodes` (`max_values`: None, `max_size`: None, mode: `Measured`)81 /// The range of component `b` is `[0, 80]`.82 fn finish(b: u32, ) -> Weight {83 // Proof Size summary in bytes:84 // Measured: `96`85 // Estimated: `3494`86 // Minimum execution time: 9_414_000 picoseconds.87 Weight::from_parts(9_880_884, 3494)88 // Standard Error: 6389 .saturating_add(Weight::from_parts(3_067, 0).saturating_mul(b.into()))90 .saturating_add(T::DbWeight::get().reads(1_u64))91 .saturating_add(T::DbWeight::get().writes(2_u64))92 }93 /// The range of component `b` is `[0, 200]`.94 fn insert_eth_logs(b: u32, ) -> Weight {95 // Proof Size summary in bytes:96 // Measured: `0`97 // Estimated: `0`98 // Minimum execution time: 1_983_000 picoseconds.99 Weight::from_parts(4_354_523, 0)100 // Standard Error: 312101 .saturating_add(Weight::from_parts(1_329_536, 0).saturating_mul(b.into()))102 }103 /// The range of component `b` is `[0, 200]`.104 fn insert_events(b: u32, ) -> Weight {105 // Proof Size summary in bytes:106 // Measured: `0`107 // Estimated: `0`108 // Minimum execution time: 2_172_000 picoseconds.109 Weight::from_parts(4_622_224, 0)110 // Standard Error: 825111 .saturating_add(Weight::from_parts(3_311_216, 0).saturating_mul(b.into()))112 }113}114115// For backwards compatibility and tests116impl WeightInfo for () {117 /// Storage: `EvmMigration::MigrationPending` (r:1 w:1)118 /// Proof: `EvmMigration::MigrationPending` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`)119 /// Storage: `System::Account` (r:1 w:0)120 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)121 /// Storage: `EVM::AccountCodes` (r:1 w:0)122 /// Proof: `EVM::AccountCodes` (`max_values`: None, `max_size`: None, mode: `Measured`)123 fn begin() -> Weight {124 // Proof Size summary in bytes:125 // Measured: `94`126 // Estimated: `3593`127 // Minimum execution time: 12_866_000 picoseconds.128 Weight::from_parts(13_129_000, 3593)129 .saturating_add(RocksDbWeight::get().reads(3_u64))130 .saturating_add(RocksDbWeight::get().writes(1_u64))131 }132 /// Storage: `EvmMigration::MigrationPending` (r:1 w:0)133 /// Proof: `EvmMigration::MigrationPending` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`)134 /// Storage: `EVM::AccountStorages` (r:0 w:80)135 /// Proof: `EVM::AccountStorages` (`max_values`: None, `max_size`: None, mode: `Measured`)136 /// The range of component `b` is `[0, 80]`.137 fn set_data(b: u32, ) -> Weight {138 // Proof Size summary in bytes:139 // Measured: `96`140 // Estimated: `3494`141 // Minimum execution time: 6_855_000 picoseconds.142 Weight::from_parts(7_515_980, 3494)143 // Standard Error: 564144 .saturating_add(Weight::from_parts(1_535_437, 0).saturating_mul(b.into()))145 .saturating_add(RocksDbWeight::get().reads(1_u64))146 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(b.into())))147 }148 /// Storage: `EvmMigration::MigrationPending` (r:1 w:1)149 /// Proof: `EvmMigration::MigrationPending` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`)150 /// Storage: `EVM::AccountCodes` (r:0 w:1)151 /// Proof: `EVM::AccountCodes` (`max_values`: None, `max_size`: None, mode: `Measured`)152 /// The range of component `b` is `[0, 80]`.153 fn finish(b: u32, ) -> Weight {154 // Proof Size summary in bytes:155 // Measured: `96`156 // Estimated: `3494`157 // Minimum execution time: 9_414_000 picoseconds.158 Weight::from_parts(9_880_884, 3494)159 // Standard Error: 63160 .saturating_add(Weight::from_parts(3_067, 0).saturating_mul(b.into()))161 .saturating_add(RocksDbWeight::get().reads(1_u64))162 .saturating_add(RocksDbWeight::get().writes(2_u64))163 }164 /// The range of component `b` is `[0, 200]`.165 fn insert_eth_logs(b: u32, ) -> Weight {166 // Proof Size summary in bytes:167 // Measured: `0`168 // Estimated: `0`169 // Minimum execution time: 1_983_000 picoseconds.170 Weight::from_parts(4_354_523, 0)171 // Standard Error: 312172 .saturating_add(Weight::from_parts(1_329_536, 0).saturating_mul(b.into()))173 }174 /// The range of component `b` is `[0, 200]`.175 fn insert_events(b: u32, ) -> Weight {176 // Proof Size summary in bytes:177 // Measured: `0`178 // Estimated: `0`179 // Minimum execution time: 2_172_000 picoseconds.180 Weight::from_parts(4_622_224, 0)181 // Standard Error: 825182 .saturating_add(Weight::from_parts(3_311_216, 0).saturating_mul(b.into()))183 }184}185difftreelog
source
pallets/evm-migration/src/weights.rs7.5 KiBsourcehistory