git.delta.rocks / unique-network / refs/commits / 2eecdab55d8c

difftreelog

source

pallets/common/src/weights.rs4.8 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_common4//!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-common16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/common/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_common.36pub trait WeightInfo {37	fn set_collection_properties(b: u32, ) -> Weight;38	fn delete_collection_properties(b: u32, ) -> Weight;39	fn check_accesslist() -> Weight;40}4142/// Weights for pallet_common using the Substrate node and recommended hardware.43pub struct SubstrateWeight<T>(PhantomData<T>);44impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {45	/// Storage: Common CollectionProperties (r:1 w:1)46	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)47	/// The range of component `b` is `[0, 64]`.48	fn set_collection_properties(b: u32, ) -> Weight {49		// Proof Size summary in bytes:50		//  Measured:  `265`51		//  Estimated: `43467`52		// Minimum execution time: 7_163_000 picoseconds.53		Weight::from_parts(586_898, 43467)54			// Standard Error: 23_78355			.saturating_add(Weight::from_parts(6_089_494, 0).saturating_mul(b.into()))56			.saturating_add(T::DbWeight::get().reads(1_u64))57			.saturating_add(T::DbWeight::get().writes(1_u64))58	}59	/// Storage: Common CollectionProperties (r:1 w:1)60	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)61	/// The range of component `b` is `[0, 64]`.62	fn delete_collection_properties(b: u32, ) -> Weight {63		// Proof Size summary in bytes:64		//  Measured:  `302 + b * (33030 ±0)`65		//  Estimated: `43467`66		// Minimum execution time: 6_540_000 picoseconds.67		Weight::from_parts(6_684_000, 43467)68			// Standard Error: 67_98469			.saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into()))70			.saturating_add(T::DbWeight::get().reads(1_u64))71			.saturating_add(T::DbWeight::get().writes(1_u64))72	}73	/// Storage: Common Allowlist (r:1 w:0)74	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)75	fn check_accesslist() -> Weight {76		// Proof Size summary in bytes:77		//  Measured:  `340`78		//  Estimated: `2545`79		// Minimum execution time: 2_887_000 picoseconds.80		Weight::from_parts(3_072_000, 2545)81			.saturating_add(T::DbWeight::get().reads(1_u64))82	}83}8485// For backwards compatibility and tests86impl WeightInfo for () {87	/// Storage: Common CollectionProperties (r:1 w:1)88	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)89	/// The range of component `b` is `[0, 64]`.90	fn set_collection_properties(b: u32, ) -> Weight {91		// Proof Size summary in bytes:92		//  Measured:  `265`93		//  Estimated: `43467`94		// Minimum execution time: 7_163_000 picoseconds.95		Weight::from_parts(586_898, 43467)96			// Standard Error: 23_78397			.saturating_add(Weight::from_parts(6_089_494, 0).saturating_mul(b.into()))98			.saturating_add(RocksDbWeight::get().reads(1_u64))99			.saturating_add(RocksDbWeight::get().writes(1_u64))100	}101	/// Storage: Common CollectionProperties (r:1 w:1)102	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)103	/// The range of component `b` is `[0, 64]`.104	fn delete_collection_properties(b: u32, ) -> Weight {105		// Proof Size summary in bytes:106		//  Measured:  `302 + b * (33030 ±0)`107		//  Estimated: `43467`108		// Minimum execution time: 6_540_000 picoseconds.109		Weight::from_parts(6_684_000, 43467)110			// Standard Error: 67_984111			.saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into()))112			.saturating_add(RocksDbWeight::get().reads(1_u64))113			.saturating_add(RocksDbWeight::get().writes(1_u64))114	}115	/// Storage: Common Allowlist (r:1 w:0)116	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)117	fn check_accesslist() -> Weight {118		// Proof Size summary in bytes:119		//  Measured:  `340`120		//  Estimated: `2545`121		// Minimum execution time: 2_887_000 picoseconds.122		Weight::from_parts(3_072_000, 2545)123			.saturating_add(RocksDbWeight::get().reads(1_u64))124	}125}126