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

difftreelog

source

pallets/evm-migration/src/weights.rs3.5 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-06-15, 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// --pallet14// pallet-evm-migration15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=20023// --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(clippy::unnecessary_cast)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_evm_migration.35pub trait WeightInfo {36	fn begin() -> Weight;37	fn set_data(b: u32, ) -> Weight;38	fn finish(b: u32, ) -> Weight;39}4041/// Weights for pallet_evm_migration using the Substrate node and recommended hardware.42pub struct SubstrateWeight<T>(PhantomData<T>);43impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {44	// Storage: EvmMigration MigrationPending (r:1 w:1)45	// Storage: System Account (r:1 w:0)46	// Storage: EVM AccountCodes (r:1 w:0)47	fn begin() -> Weight {48		(6_914_000 as Weight)49			.saturating_add(T::DbWeight::get().reads(3 as Weight))50			.saturating_add(T::DbWeight::get().writes(1 as Weight))51	}52	// Storage: EvmMigration MigrationPending (r:1 w:0)53	// Storage: EVM AccountStorages (r:0 w:1)54	fn set_data(b: u32, ) -> Weight {55		(2_875_000 as Weight)56			// Standard Error: 057			.saturating_add((794_000 as Weight).saturating_mul(b as Weight))58			.saturating_add(T::DbWeight::get().reads(1 as Weight))59			.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))60	}61	// Storage: EvmMigration MigrationPending (r:1 w:1)62	// Storage: EVM AccountCodes (r:0 w:1)63	fn finish(b: u32, ) -> Weight {64		(6_320_000 as Weight)65			// Standard Error: 066			.saturating_add((2_000 as Weight).saturating_mul(b as Weight))67			.saturating_add(T::DbWeight::get().reads(1 as Weight))68			.saturating_add(T::DbWeight::get().writes(2 as Weight))69	}70}7172// For backwards compatibility and tests73impl WeightInfo for () {74	// Storage: EvmMigration MigrationPending (r:1 w:1)75	// Storage: System Account (r:1 w:0)76	// Storage: EVM AccountCodes (r:1 w:0)77	fn begin() -> Weight {78		(6_914_000 as Weight)79			.saturating_add(RocksDbWeight::get().reads(3 as Weight))80			.saturating_add(RocksDbWeight::get().writes(1 as Weight))81	}82	// Storage: EvmMigration MigrationPending (r:1 w:0)83	// Storage: EVM AccountStorages (r:0 w:1)84	fn set_data(b: u32, ) -> Weight {85		(2_875_000 as Weight)86			// Standard Error: 087			.saturating_add((794_000 as Weight).saturating_mul(b as Weight))88			.saturating_add(RocksDbWeight::get().reads(1 as Weight))89			.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))90	}91	// Storage: EvmMigration MigrationPending (r:1 w:1)92	// Storage: EVM AccountCodes (r:0 w:1)93	fn finish(b: u32, ) -> Weight {94		(6_320_000 as Weight)95			// Standard Error: 096			.saturating_add((2_000 as Weight).saturating_mul(b as Weight))97			.saturating_add(RocksDbWeight::get().reads(1 as Weight))98			.saturating_add(RocksDbWeight::get().writes(2 as Weight))99	}100}