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

difftreelog

source

pallets/evm-migration/src/weights.rs3.4 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: 2022-03-01, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// --pallet13// pallet-evm-migration14// --wasm-execution15// compiled16// --extrinsic17// *18// --template19// .maintain/frame-weight-template.hbs20// --steps=5021// --repeat=20022// --heap-pages=409623// --output=./pallets/evm-migration/src/weights.rs2425#![cfg_attr(rustfmt, rustfmt_skip)]26#![allow(unused_parens)]27#![allow(unused_imports)]28#![allow(clippy::unnecessary_cast)]2930use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};31use sp_std::marker::PhantomData;3233/// Weight functions needed for pallet_evm_migration.34pub trait WeightInfo {35	fn begin() -> Weight;36	fn set_data(b: u32, ) -> Weight;37	fn finish(b: u32, ) -> Weight;38}3940/// Weights for pallet_evm_migration using the Substrate node and recommended hardware.41pub struct SubstrateWeight<T>(PhantomData<T>);42impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {43	// Storage: EvmMigration MigrationPending (r:1 w:1)44	// Storage: System Account (r:1 w:0)45	// Storage: EVM AccountCodes (r:1 w:0)46	fn begin() -> Weight {47		(6_441_000 as Weight)48			.saturating_add(T::DbWeight::get().reads(3 as Weight))49			.saturating_add(T::DbWeight::get().writes(1 as Weight))50	}51	// Storage: EvmMigration MigrationPending (r:1 w:0)52	// Storage: EVM AccountStorages (r:0 w:1)53	fn set_data(b: u32, ) -> Weight {54		(3_424_000 as Weight)55			// Standard Error: 056			.saturating_add((973_000 as Weight).saturating_mul(b as Weight))57			.saturating_add(T::DbWeight::get().reads(1 as Weight))58			.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))59	}60	// Storage: EvmMigration MigrationPending (r:1 w:1)61	// Storage: EVM AccountCodes (r:0 w:1)62	fn finish(b: u32, ) -> Weight {63		(4_702_000 as Weight)64			// Standard Error: 065			.saturating_add((2_000 as Weight).saturating_mul(b as Weight))66			.saturating_add(T::DbWeight::get().reads(1 as Weight))67			.saturating_add(T::DbWeight::get().writes(2 as Weight))68	}69}7071// For backwards compatibility and tests72impl WeightInfo for () {73	// Storage: EvmMigration MigrationPending (r:1 w:1)74	// Storage: System Account (r:1 w:0)75	// Storage: EVM AccountCodes (r:1 w:0)76	fn begin() -> Weight {77		(6_441_000 as Weight)78			.saturating_add(RocksDbWeight::get().reads(3 as Weight))79			.saturating_add(RocksDbWeight::get().writes(1 as Weight))80	}81	// Storage: EvmMigration MigrationPending (r:1 w:0)82	// Storage: EVM AccountStorages (r:0 w:1)83	fn set_data(b: u32, ) -> Weight {84		(3_424_000 as Weight)85			// Standard Error: 086			.saturating_add((973_000 as Weight).saturating_mul(b as Weight))87			.saturating_add(RocksDbWeight::get().reads(1 as Weight))88			.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))89	}90	// Storage: EvmMigration MigrationPending (r:1 w:1)91	// Storage: EVM AccountCodes (r:0 w:1)92	fn finish(b: u32, ) -> Weight {93		(4_702_000 as Weight)94			// Standard Error: 095			.saturating_add((2_000 as Weight).saturating_mul(b as Weight))96			.saturating_add(RocksDbWeight::get().reads(1 as Weight))97			.saturating_add(RocksDbWeight::get().writes(2 as Weight))98	}99}