git.delta.rocks / unique-network / refs/commits / 253e15bbcbb5

difftreelog

source

pallets/evm-migration/src/weights.rs2.6 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 3.0.06//! DATE: 2021-08-12, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 12889// 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.rs232425#![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	fn begin() -> Weight {44		(6_210_000 as Weight)45			.saturating_add(T::DbWeight::get().reads(3 as Weight))46			.saturating_add(T::DbWeight::get().writes(1 as Weight))47	}48	fn set_data(b: u32, ) -> Weight {49		(2_926_000 as Weight)50			// Standard Error: 4_00051			.saturating_add((649_000 as Weight).saturating_mul(b as Weight))52			.saturating_add(T::DbWeight::get().reads(1 as Weight))53			.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))54	}55	fn finish(_b: u32, ) -> Weight {56		(4_309_000 as Weight)57			.saturating_add(T::DbWeight::get().reads(1 as Weight))58			.saturating_add(T::DbWeight::get().writes(2 as Weight))59	}60}6162// For backwards compatibility and tests63impl WeightInfo for () {64	fn begin() -> Weight {65		(6_210_000 as Weight)66			.saturating_add(RocksDbWeight::get().reads(3 as Weight))67			.saturating_add(RocksDbWeight::get().writes(1 as Weight))68	}69	fn set_data(b: u32, ) -> Weight {70		(2_926_000 as Weight)71			// Standard Error: 4_00072			.saturating_add((649_000 as Weight).saturating_mul(b as Weight))73			.saturating_add(RocksDbWeight::get().reads(1 as Weight))74			.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))75	}76	fn finish(_b: u32, ) -> Weight {77		(4_309_000 as Weight)78			.saturating_add(RocksDbWeight::get().reads(1 as Weight))79			.saturating_add(RocksDbWeight::get().writes(2 as Weight))80	}81}