1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_proxy_rmrk_equip4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-08-15, 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-proxy-rmrk-equip15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/proxy-rmrk-equip/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_equip.35pub trait WeightInfo {36 fn create_base(b: u32, ) -> Weight;37 fn theme_add(b: u32, ) -> Weight;38 fn equippable() -> Weight;39}4041/// Weights for pallet_proxy_rmrk_equip using the Substrate node and recommended hardware.42pub struct SubstrateWeight<T>(PhantomData<T>);43impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {44 // Storage: Common CreatedCollectionCount (r:1 w:1)45 // Storage: Common DestroyedCollectionCount (r:1 w:0)46 // Storage: System Account (r:2 w:2)47 // Storage: Common CollectionPropertyPermissions (r:0 w:1)48 // Storage: Common CollectionProperties (r:0 w:1)49 // Storage: Common CollectionById (r:0 w:1)50 // Storage: RmrkEquip InernalPartId (r:1 w:1)51 // Storage: Nonfungible TokensMinted (r:1 w:1)52 // Storage: Nonfungible AccountBalance (r:1 w:1)53 // Storage: Nonfungible TokenProperties (r:1 w:1)54 // Storage: Nonfungible TokenData (r:0 w:1)55 // Storage: Nonfungible Owned (r:0 w:1)56 fn create_base(b: u32, ) -> Weight {57 Weight::from_ref_time(58_417_000)58 // Standard Error: 27_00059 .saturating_add(Weight::from_ref_time(20_439_000).saturating_mul(b as u64))60 .saturating_add(T::DbWeight::get().reads(6 as u64))61 .saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(b as u64)))62 .saturating_add(T::DbWeight::get().writes(8 as u64))63 .saturating_add(T::DbWeight::get().writes((4 as u64).saturating_mul(b as u64)))64 }65 // Storage: Common CollectionProperties (r:1 w:0)66 // Storage: Common CollectionById (r:1 w:0)67 // Storage: RmrkEquip BaseHasDefaultTheme (r:1 w:0)68 // Storage: Nonfungible TokensMinted (r:1 w:1)69 // Storage: Nonfungible AccountBalance (r:1 w:1)70 // Storage: Nonfungible TokenProperties (r:1 w:1)71 // Storage: Nonfungible TokenData (r:0 w:1)72 // Storage: Nonfungible Owned (r:0 w:1)73 fn theme_add(b: u32, ) -> Weight {74 Weight::from_ref_time(46_005_000)75 // Standard Error: 42_00076 .saturating_add(Weight::from_ref_time(2_922_000).saturating_mul(b as u64))77 .saturating_add(T::DbWeight::get().reads(6 as u64))78 .saturating_add(T::DbWeight::get().writes(5 as u64))79 }80 // Storage: Common CollectionProperties (r:1 w:0)81 // Storage: Common CollectionById (r:1 w:0)82 // Storage: RmrkEquip InernalPartId (r:1 w:0)83 // Storage: Nonfungible TokenProperties (r:1 w:1)84 fn equippable() -> Weight {85 Weight::from_ref_time(32_526_000)86 .saturating_add(T::DbWeight::get().reads(4 as u64))87 .saturating_add(T::DbWeight::get().writes(1 as u64))88 }89}9091// For backwards compatibility and tests92impl WeightInfo for () {93 // Storage: Common CreatedCollectionCount (r:1 w:1)94 // Storage: Common DestroyedCollectionCount (r:1 w:0)95 // Storage: System Account (r:2 w:2)96 // Storage: Common CollectionPropertyPermissions (r:0 w:1)97 // Storage: Common CollectionProperties (r:0 w:1)98 // Storage: Common CollectionById (r:0 w:1)99 // Storage: RmrkEquip InernalPartId (r:1 w:1)100 // Storage: Nonfungible TokensMinted (r:1 w:1)101 // Storage: Nonfungible AccountBalance (r:1 w:1)102 // Storage: Nonfungible TokenProperties (r:1 w:1)103 // Storage: Nonfungible TokenData (r:0 w:1)104 // Storage: Nonfungible Owned (r:0 w:1)105 fn create_base(b: u32, ) -> Weight {106 Weight::from_ref_time(58_417_000)107 // Standard Error: 27_000108 .saturating_add(Weight::from_ref_time(20_439_000).saturating_mul(b as u64))109 .saturating_add(RocksDbWeight::get().reads(6 as u64))110 .saturating_add(RocksDbWeight::get().reads((2 as u64).saturating_mul(b as u64)))111 .saturating_add(RocksDbWeight::get().writes(8 as u64))112 .saturating_add(RocksDbWeight::get().writes((4 as u64).saturating_mul(b as u64)))113 }114 // Storage: Common CollectionProperties (r:1 w:0)115 // Storage: Common CollectionById (r:1 w:0)116 // Storage: RmrkEquip BaseHasDefaultTheme (r:1 w:0)117 // Storage: Nonfungible TokensMinted (r:1 w:1)118 // Storage: Nonfungible AccountBalance (r:1 w:1)119 // Storage: Nonfungible TokenProperties (r:1 w:1)120 // Storage: Nonfungible TokenData (r:0 w:1)121 // Storage: Nonfungible Owned (r:0 w:1)122 fn theme_add(b: u32, ) -> Weight {123 Weight::from_ref_time(46_005_000)124 // Standard Error: 42_000125 .saturating_add(Weight::from_ref_time(2_922_000).saturating_mul(b as u64))126 .saturating_add(RocksDbWeight::get().reads(6 as u64))127 .saturating_add(RocksDbWeight::get().writes(5 as u64))128 }129 // Storage: Common CollectionProperties (r:1 w:0)130 // Storage: Common CollectionById (r:1 w:0)131 // Storage: RmrkEquip InernalPartId (r:1 w:0)132 // Storage: Nonfungible TokenProperties (r:1 w:1)133 fn equippable() -> Weight {134 Weight::from_ref_time(32_526_000)135 .saturating_add(RocksDbWeight::get().reads(4 as u64))136 .saturating_add(RocksDbWeight::get().writes(1 as u64))137 }138}difftreelog
source
pallets/proxy-rmrk-equip/src/weights.rs5.5 KiBsourcehistory