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

difftreelog

source

pallets/evm-migration/src/weights.rs7.4 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-03-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024910// Executed Command:11// target/release/unique-collator12// benchmark13// pallet14// --pallet15// pallet-evm-migration16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.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	fn insert_eth_logs(b: u32, ) -> Weight;41	fn insert_events(b: u32, ) -> Weight;42}4344/// Weights for pallet_evm_migration using the Substrate node and recommended hardware.45pub struct SubstrateWeight<T>(PhantomData<T>);46impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {47	/// Storage: EvmMigration MigrationPending (r:1 w:1)48	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)49	/// Storage: System Account (r:1 w:0)50	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)51	/// Storage: EVM AccountCodes (r:1 w:0)52	/// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)53	fn begin() -> Weight {54		// Proof Size summary in bytes:55		//  Measured:  `94`56		//  Estimated: `7676`57		// Minimum execution time: 12_699_000 picoseconds.58		Weight::from_parts(12_989_000, 7676)59			.saturating_add(T::DbWeight::get().reads(3_u64))60			.saturating_add(T::DbWeight::get().writes(1_u64))61	}62	/// Storage: EvmMigration MigrationPending (r:1 w:0)63	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)64	/// Storage: EVM AccountStorages (r:0 w:80)65	/// Proof Skipped: EVM AccountStorages (max_values: None, max_size: None, mode: Measured)66	/// The range of component `b` is `[0, 80]`.67	fn set_data(b: u32, ) -> Weight {68		// Proof Size summary in bytes:69		//  Measured:  `96`70		//  Estimated: `2600`71		// Minimum execution time: 9_157_000 picoseconds.72		Weight::from_parts(7_442_065, 2600)73			// Standard Error: 1_13874			.saturating_add(Weight::from_parts(934_789, 0).saturating_mul(b.into()))75			.saturating_add(T::DbWeight::get().reads(1_u64))76			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(b.into())))77	}78	/// Storage: EvmMigration MigrationPending (r:1 w:1)79	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)80	/// Storage: EVM AccountCodes (r:0 w:1)81	/// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)82	/// The range of component `b` is `[0, 80]`.83	fn finish(b: u32, ) -> Weight {84		// Proof Size summary in bytes:85		//  Measured:  `96`86		//  Estimated: `2600`87		// Minimum execution time: 7_719_000 picoseconds.88		Weight::from_parts(8_237_929, 2600)89			// Standard Error: 26690			.saturating_add(Weight::from_parts(3_473, 0).saturating_mul(b.into()))91			.saturating_add(T::DbWeight::get().reads(1_u64))92			.saturating_add(T::DbWeight::get().writes(2_u64))93	}94	/// The range of component `b` is `[0, 200]`.95	fn insert_eth_logs(b: u32, ) -> Weight {96		// Proof Size summary in bytes:97		//  Measured:  `0`98		//  Estimated: `0`99		// Minimum execution time: 1_193_000 picoseconds.100		Weight::from_parts(2_667_314, 0)101			// Standard Error: 583102			.saturating_add(Weight::from_parts(690_704, 0).saturating_mul(b.into()))103	}104	/// The range of component `b` is `[0, 200]`.105	fn insert_events(b: u32, ) -> Weight {106		// Proof Size summary in bytes:107		//  Measured:  `0`108		//  Estimated: `0`109		// Minimum execution time: 1_253_000 picoseconds.110		Weight::from_parts(4_685_069, 0)111			// Standard Error: 1_036112			.saturating_add(Weight::from_parts(1_322_329, 0).saturating_mul(b.into()))113	}114}115116// For backwards compatibility and tests117impl WeightInfo for () {118	/// Storage: EvmMigration MigrationPending (r:1 w:1)119	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)120	/// Storage: System Account (r:1 w:0)121	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)122	/// Storage: EVM AccountCodes (r:1 w:0)123	/// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)124	fn begin() -> Weight {125		// Proof Size summary in bytes:126		//  Measured:  `94`127		//  Estimated: `7676`128		// Minimum execution time: 12_699_000 picoseconds.129		Weight::from_parts(12_989_000, 7676)130			.saturating_add(RocksDbWeight::get().reads(3_u64))131			.saturating_add(RocksDbWeight::get().writes(1_u64))132	}133	/// Storage: EvmMigration MigrationPending (r:1 w:0)134	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)135	/// Storage: EVM AccountStorages (r:0 w:80)136	/// Proof Skipped: EVM AccountStorages (max_values: None, max_size: None, mode: Measured)137	/// The range of component `b` is `[0, 80]`.138	fn set_data(b: u32, ) -> Weight {139		// Proof Size summary in bytes:140		//  Measured:  `96`141		//  Estimated: `2600`142		// Minimum execution time: 9_157_000 picoseconds.143		Weight::from_parts(7_442_065, 2600)144			// Standard Error: 1_138145			.saturating_add(Weight::from_parts(934_789, 0).saturating_mul(b.into()))146			.saturating_add(RocksDbWeight::get().reads(1_u64))147			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(b.into())))148	}149	/// Storage: EvmMigration MigrationPending (r:1 w:1)150	/// Proof: EvmMigration MigrationPending (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)151	/// Storage: EVM AccountCodes (r:0 w:1)152	/// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)153	/// The range of component `b` is `[0, 80]`.154	fn finish(b: u32, ) -> Weight {155		// Proof Size summary in bytes:156		//  Measured:  `96`157		//  Estimated: `2600`158		// Minimum execution time: 7_719_000 picoseconds.159		Weight::from_parts(8_237_929, 2600)160			// Standard Error: 266161			.saturating_add(Weight::from_parts(3_473, 0).saturating_mul(b.into()))162			.saturating_add(RocksDbWeight::get().reads(1_u64))163			.saturating_add(RocksDbWeight::get().writes(2_u64))164	}165	/// The range of component `b` is `[0, 200]`.166	fn insert_eth_logs(b: u32, ) -> Weight {167		// Proof Size summary in bytes:168		//  Measured:  `0`169		//  Estimated: `0`170		// Minimum execution time: 1_193_000 picoseconds.171		Weight::from_parts(2_667_314, 0)172			// Standard Error: 583173			.saturating_add(Weight::from_parts(690_704, 0).saturating_mul(b.into()))174	}175	/// The range of component `b` is `[0, 200]`.176	fn insert_events(b: u32, ) -> Weight {177		// Proof Size summary in bytes:178		//  Measured:  `0`179		//  Estimated: `0`180		// Minimum execution time: 1_253_000 picoseconds.181		Weight::from_parts(4_685_069, 0)182			// Standard Error: 1_036183			.saturating_add(Weight::from_parts(1_322_329, 0).saturating_mul(b.into()))184	}185}186