git.delta.rocks / unique-network / refs/commits / 6a6247b0174f

difftreelog

source

pallets/common/src/weights.rs3.0 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: 2022-05-23, STEPS: `50`, REPEAT: 1, 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-common15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=123// --heap-pages=409624// --output=./pallets/common/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(clippy::unnecessary_cast)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_common.35pub trait WeightInfo {36	/// Weight for [`set_collection_properties`](pallet_common::set_collection_properties)37	fn set_collection_properties(b: u32, ) -> Weight;38	/// Weight for [`delete_collection_properties`](pallet_common::delete_collection_properties)39	fn delete_collection_properties(b: u32, ) -> 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	fn set_collection_properties(b: u32, ) -> Weight {47		(Weight::from_ref_time(0))48			// Standard Error: 142_818_00049			.saturating_add(Weight::from_ref_time(2_786_252_000).saturating_mul(b as u64))50			.saturating_add(T::DbWeight::get().reads(1 as u64))51			.saturating_add(T::DbWeight::get().writes(1 as u64))52	}53	// Storage: Common CollectionProperties (r:1 w:1)54	fn delete_collection_properties(b: u32, ) -> Weight {55		(Weight::from_ref_time(0))56			// Standard Error: 101_087_00057			.saturating_add(Weight::from_ref_time(2_739_521_000).saturating_mul(b as u64))58			.saturating_add(T::DbWeight::get().reads(1 as u64))59			.saturating_add(T::DbWeight::get().writes(1 as u64))60	}61}6263// For backwards compatibility and tests64impl WeightInfo for () {65	// Storage: Common CollectionProperties (r:1 w:1)66	fn set_collection_properties(b: u32, ) -> Weight {67		(Weight::from_ref_time(0))68			// Standard Error: 142_818_00069			.saturating_add(Weight::from_ref_time(2_786_252_000).saturating_mul(b as u64))70			.saturating_add(RocksDbWeight::get().reads(1 as u64))71			.saturating_add(RocksDbWeight::get().writes(1 as u64))72	}73	// Storage: Common CollectionProperties (r:1 w:1)74	fn delete_collection_properties(b: u32, ) -> Weight {75		(Weight::from_ref_time(0))76			// Standard Error: 101_087_00077			.saturating_add(Weight::from_ref_time(2_739_521_000).saturating_mul(b as u64))78			.saturating_add(RocksDbWeight::get().reads(1 as u64))79			.saturating_add(RocksDbWeight::get().writes(1 as u64))80	}81}