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

difftreelog

source

pallets/data-management/src/weights.rs4.9 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_data_management4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-12-26, STEPS: `50`, REPEAT: 80, 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-data-management15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/data-management/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_data_management.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	fn set_identities(b: u32, ) -> Weight;43}4445/// Weights for pallet_data_management using the Substrate node and recommended hardware.46pub struct SubstrateWeight<T>(PhantomData<T>);47impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {48	// Storage: DataManagement MigrationPending (r:1 w:1)49	// Storage: System Account (r:1 w:0)50	// Storage: EVM AccountCodes (r:1 w:0)51	fn begin() -> Weight {52		Weight::from_ref_time(15_073_000 as u64)53			.saturating_add(T::DbWeight::get().reads(3 as u64))54			.saturating_add(T::DbWeight::get().writes(1 as u64))55	}56	// Storage: DataManagement MigrationPending (r:1 w:0)57	// Storage: EVM AccountStorages (r:0 w:1)58	fn set_data(b: u32, ) -> Weight {59		Weight::from_ref_time(7_943_438 as u64)60			// Standard Error: 1_79261			.saturating_add(Weight::from_ref_time(960_230 as u64).saturating_mul(b as u64))62			.saturating_add(T::DbWeight::get().reads(1 as u64))63			.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(b as u64)))64	}65	// Storage: DataManagement MigrationPending (r:1 w:1)66	// Storage: EVM AccountCodes (r:0 w:1)67	fn finish(b: u32, ) -> Weight {68		Weight::from_ref_time(9_316_585 as u64)69			// Standard Error: 59570			.saturating_add(Weight::from_ref_time(2_082 as u64).saturating_mul(b as u64))71			.saturating_add(T::DbWeight::get().reads(1 as u64))72			.saturating_add(T::DbWeight::get().writes(2 as u64))73	}74	fn insert_eth_logs(b: u32, ) -> Weight {75		Weight::from_ref_time(6_570_767 as u64)76			// Standard Error: 2_29277			.saturating_add(Weight::from_ref_time(722_345 as u64).saturating_mul(b as u64))78	}79	fn insert_events(b: u32, ) -> Weight {80		Weight::from_ref_time(10_936_376 as u64)81			// Standard Error: 1_22782			.saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))83	}84	fn set_identities(b: u32, ) -> Weight {85		Weight::from_ref_time(10_936_376 as u64)86			// Standard Error: 1_22787			.saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))88	}89}9091// For backwards compatibility and tests92impl WeightInfo for () {93	// Storage: DataManagement MigrationPending (r:1 w:1)94	// Storage: System Account (r:1 w:0)95	// Storage: EVM AccountCodes (r:1 w:0)96	fn begin() -> Weight {97		Weight::from_ref_time(15_073_000 as u64)98			.saturating_add(RocksDbWeight::get().reads(3 as u64))99			.saturating_add(RocksDbWeight::get().writes(1 as u64))100	}101	// Storage: DataManagement MigrationPending (r:1 w:0)102	// Storage: EVM AccountStorages (r:0 w:1)103	fn set_data(b: u32, ) -> Weight {104		Weight::from_ref_time(7_943_438 as u64)105			// Standard Error: 1_792106			.saturating_add(Weight::from_ref_time(960_230 as u64).saturating_mul(b as u64))107			.saturating_add(RocksDbWeight::get().reads(1 as u64))108			.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(b as u64)))109	}110	// Storage: DataManagement MigrationPending (r:1 w:1)111	// Storage: EVM AccountCodes (r:0 w:1)112	fn finish(b: u32, ) -> Weight {113		Weight::from_ref_time(9_316_585 as u64)114			// Standard Error: 595115			.saturating_add(Weight::from_ref_time(2_082 as u64).saturating_mul(b as u64))116			.saturating_add(RocksDbWeight::get().reads(1 as u64))117			.saturating_add(RocksDbWeight::get().writes(2 as u64))118	}119	fn insert_eth_logs(b: u32, ) -> Weight {120		Weight::from_ref_time(6_570_767 as u64)121			// Standard Error: 2_292122			.saturating_add(Weight::from_ref_time(722_345 as u64).saturating_mul(b as u64))123	}124	fn insert_events(b: u32, ) -> Weight {125		Weight::from_ref_time(10_936_376 as u64)126			// Standard Error: 1_227127			.saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))128	}129	fn set_identities(b: u32, ) -> Weight {130		Weight::from_ref_time(10_936_376 as u64)131			// Standard Error: 1_227132			.saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))133	}134}