git.delta.rocks / unique-network / refs/commits / 8aca5b544b64

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: 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		(6_918_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_048_000 as Weight)54			// Standard Error: 3_00055			.saturating_add((1_047_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		(4_921_000 as Weight)63			// Standard Error: 064			.saturating_add((1_000 as Weight).saturating_mul(b as Weight))65			.saturating_add(T::DbWeight::get().reads(1 as Weight))66			.saturating_add(T::DbWeight::get().writes(2 as Weight))67	}68}6970// For backwards compatibility and tests71impl WeightInfo for () {72	// Storage: EvmMigration MigrationPending (r:1 w:1)73	// Storage: System Account (r:1 w:0)74	// Storage: EVM AccountCodes (r:1 w:0)75	fn begin() -> Weight {76		(6_918_000 as Weight)77			.saturating_add(RocksDbWeight::get().reads(3 as Weight))78			.saturating_add(RocksDbWeight::get().writes(1 as Weight))79	}80	// Storage: EvmMigration MigrationPending (r:1 w:0)81	// Storage: EVM AccountStorages (r:0 w:1)82	fn set_data(b: u32, ) -> Weight {83		(3_048_000 as Weight)84			// Standard Error: 3_00085			.saturating_add((1_047_000 as Weight).saturating_mul(b as Weight))86			.saturating_add(RocksDbWeight::get().reads(1 as Weight))87			.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))88	}89	// Storage: EvmMigration MigrationPending (r:1 w:1)90	// Storage: EVM AccountCodes (r:0 w:1)91	fn finish(b: u32, ) -> Weight {92		(4_921_000 as Weight)93			// Standard Error: 094			.saturating_add((1_000 as Weight).saturating_mul(b as Weight))95			.saturating_add(RocksDbWeight::get().reads(1 as Weight))96			.saturating_add(RocksDbWeight::get().writes(2 as Weight))97	}98}