git.delta.rocks / unique-network / refs/commits / 6f5be65656d0

difftreelog

source

pallets/evm-migration/src/weights.rs4.3 KiBsourcehistory
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-01-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// pallet13// --pallet14// pallet-evm-migration15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/evm-migration/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_evm_migration.36pub trait WeightInfo {37	fn begin() -> Weight;38	fn set_data(b: u32, ) -> Weight;39	fn finish(b: u32, ) -> Weight;40	fn insert_eth_logs(b: u32, ) -> Weight;41	fn insert_events(b: u32, ) -> Weight;42}4344/// Weights for pallet_evm_migration using the Substrate node and recommended hardware.45pub struct SubstrateWeight<T>(PhantomData<T>);46impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {47	// Storage: EvmMigration MigrationPending (r:1 w:1)48	// Storage: System Account (r:1 w:0)49	// Storage: EVM AccountCodes (r:1 w:0)50	fn begin() -> Weight {51		Weight::from_ref_time(16_189_000 as u64)52			.saturating_add(T::DbWeight::get().reads(3 as u64))53			.saturating_add(T::DbWeight::get().writes(1 as u64))54	}55	// Storage: EvmMigration MigrationPending (r:1 w:0)56	// Storage: EVM AccountStorages (r:0 w:1)57	fn set_data(b: u32, ) -> Weight {58		Weight::from_ref_time(7_829_947 as u64)59			// Standard Error: 68760			.saturating_add(Weight::from_ref_time(968_768 as u64).saturating_mul(b as u64))61			.saturating_add(T::DbWeight::get().reads(1 as u64))62			.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(b as u64)))63	}64	// Storage: EvmMigration MigrationPending (r:1 w:1)65	// Storage: EVM AccountCodes (r:0 w:1)66	fn finish(_b: u32, ) -> Weight {67		Weight::from_ref_time(9_559_086 as u64)68			.saturating_add(T::DbWeight::get().reads(1 as u64))69			.saturating_add(T::DbWeight::get().writes(2 as u64))70	}71	fn insert_eth_logs(b: u32, ) -> Weight {72		Weight::from_ref_time(7_535_186 as u64)73			// Standard Error: 1_44074			.saturating_add(Weight::from_ref_time(699_517 as u64).saturating_mul(b as u64))75	}76	fn insert_events(b: u32, ) -> Weight {77		Weight::from_ref_time(10_612_317 as u64)78			// Standard Error: 99979			.saturating_add(Weight::from_ref_time(1_296_893 as u64).saturating_mul(b as u64))80	}81}8283// For backwards compatibility and tests84impl WeightInfo for () {85	// Storage: EvmMigration MigrationPending (r:1 w:1)86	// Storage: System Account (r:1 w:0)87	// Storage: EVM AccountCodes (r:1 w:0)88	fn begin() -> Weight {89		Weight::from_ref_time(16_189_000 as u64)90			.saturating_add(RocksDbWeight::get().reads(3 as u64))91			.saturating_add(RocksDbWeight::get().writes(1 as u64))92	}93	// Storage: EvmMigration MigrationPending (r:1 w:0)94	// Storage: EVM AccountStorages (r:0 w:1)95	fn set_data(b: u32, ) -> Weight {96		Weight::from_ref_time(7_829_947 as u64)97			// Standard Error: 68798			.saturating_add(Weight::from_ref_time(968_768 as u64).saturating_mul(b as u64))99			.saturating_add(RocksDbWeight::get().reads(1 as u64))100			.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(b as u64)))101	}102	// Storage: EvmMigration MigrationPending (r:1 w:1)103	// Storage: EVM AccountCodes (r:0 w:1)104	fn finish(_b: u32, ) -> Weight {105		Weight::from_ref_time(9_559_086 as u64)106			.saturating_add(RocksDbWeight::get().reads(1 as u64))107			.saturating_add(RocksDbWeight::get().writes(2 as u64))108	}109	fn insert_eth_logs(b: u32, ) -> Weight {110		Weight::from_ref_time(7_535_186 as u64)111			// Standard Error: 1_440112			.saturating_add(Weight::from_ref_time(699_517 as u64).saturating_mul(b as u64))113	}114	fn insert_events(b: u32, ) -> Weight {115		Weight::from_ref_time(10_612_317 as u64)116			// Standard Error: 999117			.saturating_add(Weight::from_ref_time(1_296_893 as u64).saturating_mul(b as u64))118	}119}