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

difftreelog

source

pallets/evm-migration/src/weights.rs3.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: 2022-03-01, STEPS: `50`, REPEAT: 20, 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=2022// --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_750_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_555_000 as Weight)55			// Standard Error: 3_00056			.saturating_add((1_071_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		(5_166_000 as Weight)64			.saturating_add(T::DbWeight::get().reads(1 as Weight))65			.saturating_add(T::DbWeight::get().writes(2 as Weight))66	}67}6869// For backwards compatibility and tests70impl WeightInfo for () {71	// Storage: EvmMigration MigrationPending (r:1 w:1)72	// Storage: System Account (r:1 w:0)73	// Storage: EVM AccountCodes (r:1 w:0)74	fn begin() -> Weight {75		(6_750_000 as Weight)76			.saturating_add(RocksDbWeight::get().reads(3 as Weight))77			.saturating_add(RocksDbWeight::get().writes(1 as Weight))78	}79	// Storage: EvmMigration MigrationPending (r:1 w:0)80	// Storage: EVM AccountStorages (r:0 w:1)81	fn set_data(b: u32, ) -> Weight {82		(3_555_000 as Weight)83			// Standard Error: 3_00084			.saturating_add((1_071_000 as Weight).saturating_mul(b as Weight))85			.saturating_add(RocksDbWeight::get().reads(1 as Weight))86			.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))87	}88	// Storage: EvmMigration MigrationPending (r:1 w:1)89	// Storage: EVM AccountCodes (r:0 w:1)90	fn finish(_b: u32, ) -> Weight {91		(5_166_000 as Weight)92			.saturating_add(RocksDbWeight::get().reads(1 as Weight))93			.saturating_add(RocksDbWeight::get().writes(2 as Weight))94	}95}