git.delta.rocks / unique-network / refs/commits / 5d01a90d47f4

difftreelog

source

pallets/structure/src/weights.rs1.7 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_structure4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-03-24, 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// pallet-structure14// --wasm-execution15// compiled16// --extrinsic17// *18// --template19// .maintain/frame-weight-template.hbs20// --steps=5021// --repeat=20022// --heap-pages=409623// --output=./pallets/structure/src/weights.rs2425#![cfg_attr(rustfmt, rustfmt_skip)]26#![allow(unused_parens)]27#![allow(unused_imports)]28#![allow(clippy::unnecessary_cast)]2930use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};31use sp_std::marker::PhantomData;3233/// Weight functions needed for pallet_structure.34pub trait WeightInfo {35	fn find_parent() -> Weight;36}3738/// Weights for pallet_structure using the Substrate node and recommended hardware.39pub struct SubstrateWeight<T>(PhantomData<T>);40impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {41	// Storage: Common CollectionById (r:1 w:0)42	// Storage: Nonfungible TokenData (r:1 w:0)43	fn find_parent() -> Weight {44		(6_302_000 as Weight)45			.saturating_add(T::DbWeight::get().reads(2 as Weight))46	}47}4849// For backwards compatibility and tests50impl WeightInfo for () {51	// Storage: Common CollectionById (r:1 w:0)52	// Storage: Nonfungible TokenData (r:1 w:0)53	fn find_parent() -> Weight {54		(6_302_000 as Weight)55			.saturating_add(RocksDbWeight::get().reads(2 as Weight))56	}57}