git.delta.rocks / unique-network / refs/commits / 504df77ef385

difftreelog

source

pallets/proxy-rmrk-core/src/weights.rs2.6 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_proxy_rmrk_core4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-06-09, STEPS: `50`, REPEAT: 200, 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-proxy-rmrk-core15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=20023// --heap-pages=409624// --output=./pallets/proxy-rmrk-core/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_proxy_rmrk_core.35pub trait WeightInfo {36	fn create_collection() -> Weight;37}3839/// Weights for pallet_proxy_rmrk_core using the Substrate node and recommended hardware.40pub struct SubstrateWeight<T>(PhantomData<T>);41impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {42	// Storage: Common CreatedCollectionCount (r:1 w:1)43	// Storage: Common DestroyedCollectionCount (r:1 w:0)44	// Storage: System Account (r:2 w:2)45	// Storage: RmrkCore CollectionIndex (r:1 w:1)46	// Storage: Common CollectionPropertyPermissions (r:0 w:1)47	// Storage: Common CollectionProperties (r:0 w:1)48	// Storage: Common CollectionById (r:0 w:1)49	// Storage: RmrkCore UniqueCollectionId (r:0 w:1)50	// Storage: RmrkCore RmrkInernalCollectionId (r:0 w:1)51	fn create_collection() -> Weight {52		(76_647_000 as Weight)53			.saturating_add(T::DbWeight::get().reads(5 as Weight))54			.saturating_add(T::DbWeight::get().writes(9 as Weight))55	}56}5758// For backwards compatibility and tests59impl WeightInfo for () {60	// Storage: Common CreatedCollectionCount (r:1 w:1)61	// Storage: Common DestroyedCollectionCount (r:1 w:0)62	// Storage: System Account (r:2 w:2)63	// Storage: RmrkCore CollectionIndex (r:1 w:1)64	// Storage: Common CollectionPropertyPermissions (r:0 w:1)65	// Storage: Common CollectionProperties (r:0 w:1)66	// Storage: Common CollectionById (r:0 w:1)67	// Storage: RmrkCore UniqueCollectionId (r:0 w:1)68	// Storage: RmrkCore RmrkInernalCollectionId (r:0 w:1)69	fn create_collection() -> Weight {70		(76_647_000 as Weight)71			.saturating_add(RocksDbWeight::get().reads(5 as Weight))72			.saturating_add(RocksDbWeight::get().writes(9 as Weight))73	}74}