git.delta.rocks / unique-network / refs/commits / c91aad487ca4

difftreelog

source

pallets/evm-migration/src/weights.rs4.5 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-02-15, 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_052_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(9_257_564 as u64)59			// Standard Error: 1_38460			.saturating_add(Weight::from_ref_time(939_454 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_832_338 as u64)68			// Standard Error: 35169			.saturating_add(Weight::from_ref_time(415 as u64).saturating_mul(b as u64))70			.saturating_add(T::DbWeight::get().reads(1 as u64))71			.saturating_add(T::DbWeight::get().writes(2 as u64))72	}73	fn insert_eth_logs(b: u32, ) -> Weight {74		Weight::from_ref_time(7_589_210 as u64)75			// Standard Error: 86476			.saturating_add(Weight::from_ref_time(688_444 as u64).saturating_mul(b as u64))77	}78	fn insert_events(b: u32, ) -> Weight {79		Weight::from_ref_time(11_531_726 as u64)80			// Standard Error: 58081			.saturating_add(Weight::from_ref_time(1_271_608 as u64).saturating_mul(b as u64))82	}83}8485// For backwards compatibility and tests86impl WeightInfo for () {87	// Storage: EvmMigration MigrationPending (r:1 w:1)88	// Storage: System Account (r:1 w:0)89	// Storage: EVM AccountCodes (r:1 w:0)90	fn begin() -> Weight {91		Weight::from_ref_time(16_052_000 as u64)92			.saturating_add(RocksDbWeight::get().reads(3 as u64))93			.saturating_add(RocksDbWeight::get().writes(1 as u64))94	}95	// Storage: EvmMigration MigrationPending (r:1 w:0)96	// Storage: EVM AccountStorages (r:0 w:1)97	fn set_data(b: u32, ) -> Weight {98		Weight::from_ref_time(9_257_564 as u64)99			// Standard Error: 1_384100			.saturating_add(Weight::from_ref_time(939_454 as u64).saturating_mul(b as u64))101			.saturating_add(RocksDbWeight::get().reads(1 as u64))102			.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(b as u64)))103	}104	// Storage: EvmMigration MigrationPending (r:1 w:1)105	// Storage: EVM AccountCodes (r:0 w:1)106	fn finish(b: u32, ) -> Weight {107		Weight::from_ref_time(9_832_338 as u64)108			// Standard Error: 351109			.saturating_add(Weight::from_ref_time(415 as u64).saturating_mul(b as u64))110			.saturating_add(RocksDbWeight::get().reads(1 as u64))111			.saturating_add(RocksDbWeight::get().writes(2 as u64))112	}113	fn insert_eth_logs(b: u32, ) -> Weight {114		Weight::from_ref_time(7_589_210 as u64)115			// Standard Error: 864116			.saturating_add(Weight::from_ref_time(688_444 as u64).saturating_mul(b as u64))117	}118	fn insert_events(b: u32, ) -> Weight {119		Weight::from_ref_time(11_531_726 as u64)120			// Standard Error: 580121			.saturating_add(Weight::from_ref_time(1_271_608 as u64).saturating_mul(b as u64))122	}123}