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

difftreelog

source

pallets/evm-migration/src/weights.rs7.2 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: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`9//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// target/release/unique-collator13// benchmark14// pallet15// --pallet16// pallet-evm-migration17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=8024// --heap-pages=409625// --output=./pallets/evm-migration/src/weights.rs2627#![cfg_attr(rustfmt, rustfmt_skip)]28#![allow(unused_parens)]29#![allow(unused_imports)]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	fn insert_eth_logs(b: u32, ) -> Weight;40	fn insert_events(b: u32, ) -> Weight;41}4243/// Weights for pallet_evm_migration using the Substrate node and recommended hardware.44pub struct SubstrateWeight<T>(PhantomData<T>);45impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {46	/// Storage: EvmMigration MigrationPending (r:1 w:1)47	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)48	/// Storage: System Account (r:1 w:0)49	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)50	/// Storage: EVM AccountCodes (r:1 w:0)51	/// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)52	fn begin() -> Weight {53		// Proof Size summary in bytes:54		//  Measured:  `94`55		//  Estimated: `10646`56		// Minimum execution time: 8_519_000 picoseconds.57		Weight::from_parts(8_729_000, 10646)58			.saturating_add(T::DbWeight::get().reads(3_u64))59			.saturating_add(T::DbWeight::get().writes(1_u64))60	}61	/// Storage: EvmMigration MigrationPending (r:1 w:0)62	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)63	/// Storage: EVM AccountStorages (r:0 w:80)64	/// Proof Skipped: EVM AccountStorages (max_values: None, max_size: None, mode: Measured)65	/// The range of component `b` is `[0, 80]`.66	fn set_data(b: u32, ) -> Weight {67		// Proof Size summary in bytes:68		//  Measured:  `96`69		//  Estimated: `3590`70		// Minimum execution time: 6_062_000 picoseconds.71		Weight::from_parts(7_193_727, 3590)72			// Standard Error: 1_84473			.saturating_add(Weight::from_parts(876_826, 0).saturating_mul(b.into()))74			.saturating_add(T::DbWeight::get().reads(1_u64))75			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(b.into())))76	}77	/// Storage: EvmMigration MigrationPending (r:1 w:1)78	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)79	/// Storage: EVM AccountCodes (r:0 w:1)80	/// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)81	/// The range of component `b` is `[0, 80]`.82	fn finish(_b: u32, ) -> Weight {83		// Proof Size summary in bytes:84		//  Measured:  `96`85		//  Estimated: `3590`86		// Minimum execution time: 7_452_000 picoseconds.87		Weight::from_parts(8_531_888, 3590)88			.saturating_add(T::DbWeight::get().reads(1_u64))89			.saturating_add(T::DbWeight::get().writes(2_u64))90	}91	/// The range of component `b` is `[0, 200]`.92	fn insert_eth_logs(b: u32, ) -> Weight {93		// Proof Size summary in bytes:94		//  Measured:  `0`95		//  Estimated: `0`96		// Minimum execution time: 1_377_000 picoseconds.97		Weight::from_parts(3_388_877, 0)98			// Standard Error: 1_20599			.saturating_add(Weight::from_parts(696_701, 0).saturating_mul(b.into()))100	}101	/// The range of component `b` is `[0, 200]`.102	fn insert_events(b: u32, ) -> Weight {103		// Proof Size summary in bytes:104		//  Measured:  `0`105		//  Estimated: `0`106		// Minimum execution time: 1_671_000 picoseconds.107		Weight::from_parts(4_402_497, 0)108			// Standard Error: 723109			.saturating_add(Weight::from_parts(1_338_678, 0).saturating_mul(b.into()))110	}111}112113// For backwards compatibility and tests114impl WeightInfo for () {115	/// Storage: EvmMigration MigrationPending (r:1 w:1)116	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)117	/// Storage: System Account (r:1 w:0)118	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)119	/// Storage: EVM AccountCodes (r:1 w:0)120	/// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)121	fn begin() -> Weight {122		// Proof Size summary in bytes:123		//  Measured:  `94`124		//  Estimated: `10646`125		// Minimum execution time: 8_519_000 picoseconds.126		Weight::from_parts(8_729_000, 10646)127			.saturating_add(RocksDbWeight::get().reads(3_u64))128			.saturating_add(RocksDbWeight::get().writes(1_u64))129	}130	/// Storage: EvmMigration MigrationPending (r:1 w:0)131	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)132	/// Storage: EVM AccountStorages (r:0 w:80)133	/// Proof Skipped: EVM AccountStorages (max_values: None, max_size: None, mode: Measured)134	/// The range of component `b` is `[0, 80]`.135	fn set_data(b: u32, ) -> Weight {136		// Proof Size summary in bytes:137		//  Measured:  `96`138		//  Estimated: `3590`139		// Minimum execution time: 6_062_000 picoseconds.140		Weight::from_parts(7_193_727, 3590)141			// Standard Error: 1_844142			.saturating_add(Weight::from_parts(876_826, 0).saturating_mul(b.into()))143			.saturating_add(RocksDbWeight::get().reads(1_u64))144			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(b.into())))145	}146	/// Storage: EvmMigration MigrationPending (r:1 w:1)147	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)148	/// Storage: EVM AccountCodes (r:0 w:1)149	/// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)150	/// The range of component `b` is `[0, 80]`.151	fn finish(_b: u32, ) -> Weight {152		// Proof Size summary in bytes:153		//  Measured:  `96`154		//  Estimated: `3590`155		// Minimum execution time: 7_452_000 picoseconds.156		Weight::from_parts(8_531_888, 3590)157			.saturating_add(RocksDbWeight::get().reads(1_u64))158			.saturating_add(RocksDbWeight::get().writes(2_u64))159	}160	/// The range of component `b` is `[0, 200]`.161	fn insert_eth_logs(b: u32, ) -> Weight {162		// Proof Size summary in bytes:163		//  Measured:  `0`164		//  Estimated: `0`165		// Minimum execution time: 1_377_000 picoseconds.166		Weight::from_parts(3_388_877, 0)167			// Standard Error: 1_205168			.saturating_add(Weight::from_parts(696_701, 0).saturating_mul(b.into()))169	}170	/// The range of component `b` is `[0, 200]`.171	fn insert_events(b: u32, ) -> Weight {172		// Proof Size summary in bytes:173		//  Measured:  `0`174		//  Estimated: `0`175		// Minimum execution time: 1_671_000 picoseconds.176		Weight::from_parts(4_402_497, 0)177			// Standard Error: 723178			.saturating_add(Weight::from_parts(1_338_678, 0).saturating_mul(b.into()))179	}180}181