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

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// --output=./pallets/evm-migration/src/weights.rs2324#![cfg_attr(rustfmt, rustfmt_skip)]25#![allow(unused_parens)]26#![allow(unused_imports)]27#![allow(clippy::unnecessary_cast)]2829use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};30use sp_std::marker::PhantomData;3132/// Weight functions needed for pallet_evm_migration.33pub trait WeightInfo {34	fn begin() -> Weight;35	fn set_data(b: u32, ) -> Weight;36	fn finish(b: u32, ) -> Weight;37}3839/// Weights for pallet_evm_migration using the Substrate node and recommended hardware.40pub struct SubstrateWeight<T>(PhantomData<T>);41impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {42	// Storage: EvmMigration MigrationPending (r:1 w:1)43	// Storage: System Account (r:1 w:0)44	// Storage: EVM AccountCodes (r:1 w:0)45	fn begin() -> Weight {46		(7_230_000 as Weight)47			.saturating_add(T::DbWeight::get().reads(3 as Weight))48			.saturating_add(T::DbWeight::get().writes(1 as Weight))49	}50	// Storage: EvmMigration MigrationPending (r:1 w:0)51	// Storage: EVM AccountStorages (r:0 w:1)52	fn set_data(b: u32, ) -> Weight {53		(3_442_000 as Weight)54			// Standard Error: 5_00055			.saturating_add((1_038_000 as Weight).saturating_mul(b as Weight))56			.saturating_add(T::DbWeight::get().reads(1 as Weight))57			.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))58	}59	// Storage: EvmMigration MigrationPending (r:1 w:1)60	// Storage: EVM AccountCodes (r:0 w:1)61	fn finish(_b: u32, ) -> Weight {62		(5_282_000 as Weight)63			.saturating_add(T::DbWeight::get().reads(1 as Weight))64			.saturating_add(T::DbWeight::get().writes(2 as Weight))65	}66}6768// For backwards compatibility and tests69impl WeightInfo for () {70	// Storage: EvmMigration MigrationPending (r:1 w:1)71	// Storage: System Account (r:1 w:0)72	// Storage: EVM AccountCodes (r:1 w:0)73	fn begin() -> Weight {74		(7_230_000 as Weight)75			.saturating_add(RocksDbWeight::get().reads(3 as Weight))76			.saturating_add(RocksDbWeight::get().writes(1 as Weight))77	}78	// Storage: EvmMigration MigrationPending (r:1 w:0)79	// Storage: EVM AccountStorages (r:0 w:1)80	fn set_data(b: u32, ) -> Weight {81		(3_442_000 as Weight)82			// Standard Error: 5_00083			.saturating_add((1_038_000 as Weight).saturating_mul(b as Weight))84			.saturating_add(RocksDbWeight::get().reads(1 as Weight))85			.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))86	}87	// Storage: EvmMigration MigrationPending (r:1 w:1)88	// Storage: EVM AccountCodes (r:0 w:1)89	fn finish(_b: u32, ) -> Weight {90		(5_282_000 as Weight)91			.saturating_add(RocksDbWeight::get().reads(1 as Weight))92			.saturating_add(RocksDbWeight::get().writes(2 as Weight))93	}94}