git.delta.rocks / unique-network / refs/commits / 71a39d07af30

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-08-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}4142/// Weights for pallet_evm_migration using the Substrate node and recommended hardware.43pub struct SubstrateWeight<T>(PhantomData<T>);44impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {45	// Storage: EvmMigration MigrationPending (r:1 w:1)46	// Storage: System Account (r:1 w:0)47	// Storage: EVM AccountCodes (r:1 w:0)48	fn begin() -> Weight {49		Weight::from_ref_time(8_035_000)50			.saturating_add(T::DbWeight::get().reads(3 as u64))51			.saturating_add(T::DbWeight::get().writes(1 as u64))52	}53	// Storage: EvmMigration MigrationPending (r:1 w:0)54	// Storage: EVM AccountStorages (r:0 w:1)55	fn set_data(b: u32, ) -> Weight {56		Weight::from_ref_time(3_076_000)57			// Standard Error: 058			.saturating_add(Weight::from_ref_time(828_000).saturating_mul(b as u64))59			.saturating_add(T::DbWeight::get().reads(1 as u64))60			.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(b as u64)))61	}62	// Storage: EvmMigration MigrationPending (r:1 w:1)63	// Storage: EVM AccountCodes (r:0 w:1)64	fn finish(_b: u32, ) -> Weight {65		Weight::from_ref_time(6_591_000)66			.saturating_add(T::DbWeight::get().reads(1 as u64))67			.saturating_add(T::DbWeight::get().writes(2 as u64))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		Weight::from_ref_time(8_035_000)78			.saturating_add(RocksDbWeight::get().reads(3 as u64))79			.saturating_add(RocksDbWeight::get().writes(1 as u64))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		Weight::from_ref_time(3_076_000)85			// Standard Error: 086			.saturating_add(Weight::from_ref_time(828_000).saturating_mul(b as u64))87			.saturating_add(RocksDbWeight::get().reads(1 as u64))88			.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(b as u64)))89	}90	// Storage: EvmMigration MigrationPending (r:1 w:1)91	// Storage: EVM AccountCodes (r:0 w:1)92	fn finish(_b: u32, ) -> Weight {93		Weight::from_ref_time(6_591_000)94			.saturating_add(RocksDbWeight::get().reads(1 as u64))95			.saturating_add(RocksDbWeight::get().writes(2 as u64))96	}97}