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

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/nft11// 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)]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	fn begin() -> Weight {43		(6_210_000 as Weight)44			.saturating_add(T::DbWeight::get().reads(3 as Weight))45			.saturating_add(T::DbWeight::get().writes(1 as Weight))46	}47	fn set_data(b: u32, ) -> Weight {48		(2_926_000 as Weight)49			// Standard Error: 4_00050			.saturating_add((649_000 as Weight).saturating_mul(b as Weight))51			.saturating_add(T::DbWeight::get().reads(1 as Weight))52			.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))53	}54	fn finish(_b: u32, ) -> Weight {55		(4_309_000 as Weight)56			.saturating_add(T::DbWeight::get().reads(1 as Weight))57			.saturating_add(T::DbWeight::get().writes(2 as Weight))58	}59}6061// For backwards compatibility and tests62impl WeightInfo for () {63	fn begin() -> Weight {64		(6_210_000 as Weight)65			.saturating_add(RocksDbWeight::get().reads(3 as Weight))66			.saturating_add(RocksDbWeight::get().writes(1 as Weight))67	}68	fn set_data(b: u32, ) -> Weight {69		(2_926_000 as Weight)70			// Standard Error: 4_00071			.saturating_add((649_000 as Weight).saturating_mul(b as Weight))72			.saturating_add(RocksDbWeight::get().reads(1 as Weight))73			.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))74	}75	fn finish(_b: u32, ) -> Weight {76		(4_309_000 as Weight)77			.saturating_add(RocksDbWeight::get().reads(1 as Weight))78			.saturating_add(RocksDbWeight::get().writes(2 as Weight))79	}80}