difftreelog
bench rmrk
in: master
2 files changed
pallets/proxy-rmrk-core/src/weights.rsdiffbeforeafterboth1// 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-21, 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-core15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --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 fn destroy_collection() -> Weight;38 fn change_collection_issuer() -> Weight;39 fn lock_collection() -> Weight;40 fn mint_nft(b: u32, ) -> Weight;41 fn burn_nft(b: u32, ) -> Weight;42 fn send() -> Weight;43 fn accept_nft() -> Weight;44 fn reject_nft() -> Weight;45 fn set_property() -> Weight;46 fn set_priority() -> Weight;47 fn add_basic_resource() -> Weight;48 fn add_composable_resource() -> Weight;49 fn add_slot_resource() -> Weight;50 fn remove_resource() -> Weight;51 fn accept_resource() -> Weight;52 fn accept_resource_removal() -> Weight;53}5455/// Weights for pallet_proxy_rmrk_core using the Substrate node and recommended hardware.56pub struct SubstrateWeight<T>(PhantomData<T>);57impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {58 // Storage: Common CreatedCollectionCount (r:1 w:1)59 // Storage: Common DestroyedCollectionCount (r:1 w:0)60 // Storage: System Account (r:2 w:2)61 // Storage: RmrkCore CollectionIndex (r:1 w:1)62 // Storage: Common CollectionPropertyPermissions (r:0 w:1)63 // Storage: Common CollectionProperties (r:0 w:1)64 // Storage: Common CollectionById (r:0 w:1)65 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)66 fn create_collection() -> Weight {67 (49_986_000 as Weight)68 .saturating_add(T::DbWeight::get().reads(5 as Weight))69 .saturating_add(T::DbWeight::get().writes(8 as Weight))70 }71 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)72 // Storage: Common CollectionProperties (r:1 w:1)73 // Storage: Common CollectionById (r:1 w:1)74 // Storage: Nonfungible TokenData (r:1 w:0)75 // Storage: Common DestroyedCollectionCount (r:1 w:1)76 // Storage: Nonfungible TokensMinted (r:0 w:1)77 // Storage: Nonfungible TokensBurnt (r:0 w:1)78 // Storage: Common AdminAmount (r:0 w:1)79 fn destroy_collection() -> Weight {80 (50_177_000 as Weight)81 .saturating_add(T::DbWeight::get().reads(5 as Weight))82 .saturating_add(T::DbWeight::get().writes(6 as Weight))83 }84 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)85 // Storage: Common CollectionById (r:1 w:1)86 // Storage: Common CollectionProperties (r:1 w:0)87 fn change_collection_issuer() -> Weight {88 (25_949_000 as Weight)89 .saturating_add(T::DbWeight::get().reads(3 as Weight))90 .saturating_add(T::DbWeight::get().writes(1 as Weight))91 }92 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)93 // Storage: Common CollectionProperties (r:1 w:0)94 // Storage: Common CollectionById (r:1 w:1)95 // Storage: Nonfungible TokensMinted (r:1 w:0)96 // Storage: Nonfungible TokensBurnt (r:1 w:0)97 fn lock_collection() -> Weight {98 (27_183_000 as Weight)99 .saturating_add(T::DbWeight::get().reads(5 as Weight))100 .saturating_add(T::DbWeight::get().writes(1 as Weight))101 }102 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)103 // Storage: Common CollectionProperties (r:1 w:0)104 // Storage: Common CollectionById (r:1 w:0)105 // Storage: Nonfungible TokensMinted (r:1 w:1)106 // Storage: Nonfungible AccountBalance (r:1 w:1)107 // Storage: Nonfungible TokenProperties (r:1 w:1)108 // Storage: Nonfungible TokenData (r:0 w:1)109 // Storage: Nonfungible Owned (r:0 w:1)110 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)111 fn mint_nft(b: u32, ) -> Weight {112 (65_512_000 as Weight)113 // Standard Error: 12_000114 .saturating_add((11_525_000 as Weight).saturating_mul(b as Weight))115 .saturating_add(T::DbWeight::get().reads(6 as Weight))116 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))117 .saturating_add(T::DbWeight::get().writes(5 as Weight))118 .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))119 }120 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)121 // Storage: Common CollectionProperties (r:1 w:0)122 // Storage: Common CollectionById (r:1 w:0)123 // Storage: Nonfungible TokenData (r:1 w:1)124 // Storage: Nonfungible TokenChildren (r:1 w:0)125 // Storage: Nonfungible TokensBurnt (r:1 w:1)126 // Storage: Nonfungible AccountBalance (r:1 w:1)127 // Storage: Nonfungible Allowance (r:1 w:0)128 // Storage: Nonfungible Owned (r:0 w:1)129 // Storage: Nonfungible TokenProperties (r:0 w:1)130 fn burn_nft(b: u32, ) -> Weight {131 (0 as Weight)132 // Standard Error: 1_472_000133 .saturating_add((296_221_000 as Weight).saturating_mul(b as Weight))134 .saturating_add(T::DbWeight::get().reads(9 as Weight))135 .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))136 .saturating_add(T::DbWeight::get().writes(6 as Weight))137 .saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))138 }139 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)140 // Storage: Common CollectionProperties (r:1 w:0)141 // Storage: Common CollectionById (r:1 w:0)142 // Storage: Nonfungible TokenData (r:5 w:1)143 // Storage: Nonfungible TokenProperties (r:1 w:0)144 // Storage: Nonfungible AccountBalance (r:2 w:2)145 // Storage: Nonfungible Allowance (r:1 w:0)146 // Storage: Nonfungible TokenChildren (r:0 w:1)147 // Storage: Nonfungible Owned (r:0 w:2)148 fn send() -> Weight {149 (82_778_000 as Weight)150 .saturating_add(T::DbWeight::get().reads(12 as Weight))151 .saturating_add(T::DbWeight::get().writes(6 as Weight))152 }153 // Storage: RmrkCore UniqueCollectionId (r:2 w:0)154 // Storage: Common CollectionProperties (r:1 w:0)155 // Storage: Common CollectionById (r:2 w:0)156 // Storage: Nonfungible TokenData (r:6 w:1)157 // Storage: Nonfungible AccountBalance (r:2 w:2)158 // Storage: Nonfungible Allowance (r:1 w:0)159 // Storage: Nonfungible TokenProperties (r:1 w:1)160 // Storage: Nonfungible TokenChildren (r:0 w:1)161 // Storage: Nonfungible Owned (r:0 w:2)162 fn accept_nft() -> Weight {163 (90_190_000 as Weight)164 .saturating_add(T::DbWeight::get().reads(15 as Weight))165 .saturating_add(T::DbWeight::get().writes(7 as Weight))166 }167 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)168 // Storage: Common CollectionProperties (r:1 w:0)169 // Storage: Common CollectionById (r:1 w:0)170 // Storage: Nonfungible TokenData (r:5 w:5)171 // Storage: Nonfungible TokenProperties (r:1 w:5)172 // Storage: Nonfungible TokenChildren (r:9 w:4)173 // Storage: Nonfungible TokensBurnt (r:1 w:1)174 // Storage: Nonfungible AccountBalance (r:5 w:5)175 // Storage: Nonfungible Allowance (r:5 w:0)176 // Storage: Nonfungible Owned (r:0 w:5)177 fn reject_nft() -> Weight {178 (262_238_000 as Weight)179 .saturating_add(T::DbWeight::get().reads(29 as Weight))180 .saturating_add(T::DbWeight::get().writes(25 as Weight))181 }182 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)183 // Storage: Common CollectionProperties (r:1 w:0)184 // Storage: Common CollectionById (r:1 w:0)185 // Storage: Nonfungible TokenProperties (r:1 w:1)186 // Storage: Nonfungible TokenData (r:5 w:0)187 fn set_property() -> Weight {188 (55_187_000 as Weight)189 .saturating_add(T::DbWeight::get().reads(9 as Weight))190 .saturating_add(T::DbWeight::get().writes(1 as Weight))191 }192 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)193 // Storage: Common CollectionProperties (r:1 w:0)194 // Storage: Common CollectionById (r:1 w:0)195 // Storage: Nonfungible TokenProperties (r:1 w:1)196 // Storage: Nonfungible TokenData (r:5 w:0)197 fn set_priority() -> Weight {198 (54_092_000 as Weight)199 .saturating_add(T::DbWeight::get().reads(9 as Weight))200 .saturating_add(T::DbWeight::get().writes(1 as Weight))201 }202 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)203 // Storage: Common CollectionProperties (r:1 w:0)204 // Storage: Common CollectionById (r:1 w:0)205 // Storage: Nonfungible TokenData (r:5 w:0)206 // Storage: Nonfungible TokenProperties (r:1 w:1)207 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)208 fn add_basic_resource() -> Weight {209 (62_551_000 as Weight)210 .saturating_add(T::DbWeight::get().reads(10 as Weight))211 .saturating_add(T::DbWeight::get().writes(2 as Weight))212 }213 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)214 // Storage: Common CollectionProperties (r:1 w:0)215 // Storage: Common CollectionById (r:1 w:0)216 // Storage: Nonfungible TokenData (r:5 w:0)217 // Storage: Nonfungible TokenProperties (r:1 w:1)218 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)219 fn add_composable_resource() -> Weight {220 (61_778_000 as Weight)221 .saturating_add(T::DbWeight::get().reads(10 as Weight))222 .saturating_add(T::DbWeight::get().writes(2 as Weight))223 }224 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)225 // Storage: Common CollectionProperties (r:1 w:0)226 // Storage: Common CollectionById (r:1 w:0)227 // Storage: Nonfungible TokenData (r:5 w:0)228 // Storage: Nonfungible TokenProperties (r:1 w:1)229 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)230 fn add_slot_resource() -> Weight {231 (62_700_000 as Weight)232 .saturating_add(T::DbWeight::get().reads(10 as Weight))233 .saturating_add(T::DbWeight::get().writes(2 as Weight))234 }235 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)236 // Storage: Common CollectionProperties (r:1 w:0)237 // Storage: Common CollectionById (r:1 w:0)238 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)239 // Storage: Nonfungible TokenData (r:5 w:0)240 fn remove_resource() -> Weight {241 (52_920_000 as Weight)242 .saturating_add(T::DbWeight::get().reads(9 as Weight))243 .saturating_add(T::DbWeight::get().writes(1 as Weight))244 }245 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)246 // Storage: Common CollectionProperties (r:1 w:0)247 // Storage: Common CollectionById (r:1 w:0)248 // Storage: Nonfungible TokenData (r:5 w:0)249 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)250 fn accept_resource() -> Weight {251 (52_450_000 as Weight)252 .saturating_add(T::DbWeight::get().reads(9 as Weight))253 .saturating_add(T::DbWeight::get().writes(1 as Weight))254 }255 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)256 // Storage: Common CollectionProperties (r:1 w:0)257 // Storage: Common CollectionById (r:1 w:0)258 // Storage: Nonfungible TokenData (r:5 w:0)259 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)260 fn accept_resource_removal() -> Weight {261 (50_901_000 as Weight)262 .saturating_add(T::DbWeight::get().reads(9 as Weight))263 .saturating_add(T::DbWeight::get().writes(1 as Weight))264 }265}266267// For backwards compatibility and tests268impl WeightInfo for () {269 // Storage: Common CreatedCollectionCount (r:1 w:1)270 // Storage: Common DestroyedCollectionCount (r:1 w:0)271 // Storage: System Account (r:2 w:2)272 // Storage: RmrkCore CollectionIndex (r:1 w:1)273 // Storage: Common CollectionPropertyPermissions (r:0 w:1)274 // Storage: Common CollectionProperties (r:0 w:1)275 // Storage: Common CollectionById (r:0 w:1)276 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)277 fn create_collection() -> Weight {278 (49_986_000 as Weight)279 .saturating_add(RocksDbWeight::get().reads(5 as Weight))280 .saturating_add(RocksDbWeight::get().writes(8 as Weight))281 }282 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)283 // Storage: Common CollectionProperties (r:1 w:1)284 // Storage: Common CollectionById (r:1 w:1)285 // Storage: Nonfungible TokenData (r:1 w:0)286 // Storage: Common DestroyedCollectionCount (r:1 w:1)287 // Storage: Nonfungible TokensMinted (r:0 w:1)288 // Storage: Nonfungible TokensBurnt (r:0 w:1)289 // Storage: Common AdminAmount (r:0 w:1)290 fn destroy_collection() -> Weight {291 (50_177_000 as Weight)292 .saturating_add(RocksDbWeight::get().reads(5 as Weight))293 .saturating_add(RocksDbWeight::get().writes(6 as Weight))294 }295 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)296 // Storage: Common CollectionById (r:1 w:1)297 // Storage: Common CollectionProperties (r:1 w:0)298 fn change_collection_issuer() -> Weight {299 (25_949_000 as Weight)300 .saturating_add(RocksDbWeight::get().reads(3 as Weight))301 .saturating_add(RocksDbWeight::get().writes(1 as Weight))302 }303 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)304 // Storage: Common CollectionProperties (r:1 w:0)305 // Storage: Common CollectionById (r:1 w:1)306 // Storage: Nonfungible TokensMinted (r:1 w:0)307 // Storage: Nonfungible TokensBurnt (r:1 w:0)308 fn lock_collection() -> Weight {309 (27_183_000 as Weight)310 .saturating_add(RocksDbWeight::get().reads(5 as Weight))311 .saturating_add(RocksDbWeight::get().writes(1 as Weight))312 }313 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)314 // Storage: Common CollectionProperties (r:1 w:0)315 // Storage: Common CollectionById (r:1 w:0)316 // Storage: Nonfungible TokensMinted (r:1 w:1)317 // Storage: Nonfungible AccountBalance (r:1 w:1)318 // Storage: Nonfungible TokenProperties (r:1 w:1)319 // Storage: Nonfungible TokenData (r:0 w:1)320 // Storage: Nonfungible Owned (r:0 w:1)321 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)322 fn mint_nft(b: u32, ) -> Weight {323 (65_512_000 as Weight)324 // Standard Error: 12_000325 .saturating_add((11_525_000 as Weight).saturating_mul(b as Weight))326 .saturating_add(RocksDbWeight::get().reads(6 as Weight))327 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))328 .saturating_add(RocksDbWeight::get().writes(5 as Weight))329 .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))330 }331 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)332 // Storage: Common CollectionProperties (r:1 w:0)333 // Storage: Common CollectionById (r:1 w:0)334 // Storage: Nonfungible TokenData (r:1 w:1)335 // Storage: Nonfungible TokenChildren (r:1 w:0)336 // Storage: Nonfungible TokensBurnt (r:1 w:1)337 // Storage: Nonfungible AccountBalance (r:1 w:1)338 // Storage: Nonfungible Allowance (r:1 w:0)339 // Storage: Nonfungible Owned (r:0 w:1)340 // Storage: Nonfungible TokenProperties (r:0 w:1)341 fn burn_nft(b: u32, ) -> Weight {342 (0 as Weight)343 // Standard Error: 1_472_000344 .saturating_add((296_221_000 as Weight).saturating_mul(b as Weight))345 .saturating_add(RocksDbWeight::get().reads(9 as Weight))346 .saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))347 .saturating_add(RocksDbWeight::get().writes(6 as Weight))348 .saturating_add(RocksDbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))349 }350 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)351 // Storage: Common CollectionProperties (r:1 w:0)352 // Storage: Common CollectionById (r:1 w:0)353 // Storage: Nonfungible TokenData (r:5 w:1)354 // Storage: Nonfungible TokenProperties (r:1 w:0)355 // Storage: Nonfungible AccountBalance (r:2 w:2)356 // Storage: Nonfungible Allowance (r:1 w:0)357 // Storage: Nonfungible TokenChildren (r:0 w:1)358 // Storage: Nonfungible Owned (r:0 w:2)359 fn send() -> Weight {360 (82_778_000 as Weight)361 .saturating_add(RocksDbWeight::get().reads(12 as Weight))362 .saturating_add(RocksDbWeight::get().writes(6 as Weight))363 }364 // Storage: RmrkCore UniqueCollectionId (r:2 w:0)365 // Storage: Common CollectionProperties (r:1 w:0)366 // Storage: Common CollectionById (r:2 w:0)367 // Storage: Nonfungible TokenData (r:6 w:1)368 // Storage: Nonfungible AccountBalance (r:2 w:2)369 // Storage: Nonfungible Allowance (r:1 w:0)370 // Storage: Nonfungible TokenProperties (r:1 w:1)371 // Storage: Nonfungible TokenChildren (r:0 w:1)372 // Storage: Nonfungible Owned (r:0 w:2)373 fn accept_nft() -> Weight {374 (90_190_000 as Weight)375 .saturating_add(RocksDbWeight::get().reads(15 as Weight))376 .saturating_add(RocksDbWeight::get().writes(7 as Weight))377 }378 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)379 // Storage: Common CollectionProperties (r:1 w:0)380 // Storage: Common CollectionById (r:1 w:0)381 // Storage: Nonfungible TokenData (r:5 w:5)382 // Storage: Nonfungible TokenProperties (r:1 w:5)383 // Storage: Nonfungible TokenChildren (r:9 w:4)384 // Storage: Nonfungible TokensBurnt (r:1 w:1)385 // Storage: Nonfungible AccountBalance (r:5 w:5)386 // Storage: Nonfungible Allowance (r:5 w:0)387 // Storage: Nonfungible Owned (r:0 w:5)388 fn reject_nft() -> Weight {389 (262_238_000 as Weight)390 .saturating_add(RocksDbWeight::get().reads(29 as Weight))391 .saturating_add(RocksDbWeight::get().writes(25 as Weight))392 }393 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)394 // Storage: Common CollectionProperties (r:1 w:0)395 // Storage: Common CollectionById (r:1 w:0)396 // Storage: Nonfungible TokenProperties (r:1 w:1)397 // Storage: Nonfungible TokenData (r:5 w:0)398 fn set_property() -> Weight {399 (55_187_000 as Weight)400 .saturating_add(RocksDbWeight::get().reads(9 as Weight))401 .saturating_add(RocksDbWeight::get().writes(1 as Weight))402 }403 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)404 // Storage: Common CollectionProperties (r:1 w:0)405 // Storage: Common CollectionById (r:1 w:0)406 // Storage: Nonfungible TokenProperties (r:1 w:1)407 // Storage: Nonfungible TokenData (r:5 w:0)408 fn set_priority() -> Weight {409 (54_092_000 as Weight)410 .saturating_add(RocksDbWeight::get().reads(9 as Weight))411 .saturating_add(RocksDbWeight::get().writes(1 as Weight))412 }413 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)414 // Storage: Common CollectionProperties (r:1 w:0)415 // Storage: Common CollectionById (r:1 w:0)416 // Storage: Nonfungible TokenData (r:5 w:0)417 // Storage: Nonfungible TokenProperties (r:1 w:1)418 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)419 fn add_basic_resource() -> Weight {420 (62_551_000 as Weight)421 .saturating_add(RocksDbWeight::get().reads(10 as Weight))422 .saturating_add(RocksDbWeight::get().writes(2 as Weight))423 }424 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)425 // Storage: Common CollectionProperties (r:1 w:0)426 // Storage: Common CollectionById (r:1 w:0)427 // Storage: Nonfungible TokenData (r:5 w:0)428 // Storage: Nonfungible TokenProperties (r:1 w:1)429 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)430 fn add_composable_resource() -> Weight {431 (61_778_000 as Weight)432 .saturating_add(RocksDbWeight::get().reads(10 as Weight))433 .saturating_add(RocksDbWeight::get().writes(2 as Weight))434 }435 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)436 // Storage: Common CollectionProperties (r:1 w:0)437 // Storage: Common CollectionById (r:1 w:0)438 // Storage: Nonfungible TokenData (r:5 w:0)439 // Storage: Nonfungible TokenProperties (r:1 w:1)440 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)441 fn add_slot_resource() -> Weight {442 (62_700_000 as Weight)443 .saturating_add(RocksDbWeight::get().reads(10 as Weight))444 .saturating_add(RocksDbWeight::get().writes(2 as Weight))445 }446 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)447 // Storage: Common CollectionProperties (r:1 w:0)448 // Storage: Common CollectionById (r:1 w:0)449 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)450 // Storage: Nonfungible TokenData (r:5 w:0)451 fn remove_resource() -> Weight {452 (52_920_000 as Weight)453 .saturating_add(RocksDbWeight::get().reads(9 as Weight))454 .saturating_add(RocksDbWeight::get().writes(1 as Weight))455 }456 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)457 // Storage: Common CollectionProperties (r:1 w:0)458 // Storage: Common CollectionById (r:1 w:0)459 // Storage: Nonfungible TokenData (r:5 w:0)460 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)461 fn accept_resource() -> Weight {462 (52_450_000 as Weight)463 .saturating_add(RocksDbWeight::get().reads(9 as Weight))464 .saturating_add(RocksDbWeight::get().writes(1 as Weight))465 }466 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)467 // Storage: Common CollectionProperties (r:1 w:0)468 // Storage: Common CollectionById (r:1 w:0)469 // Storage: Nonfungible TokenData (r:5 w:0)470 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)471 fn accept_resource_removal() -> Weight {472 (50_901_000 as Weight)473 .saturating_add(RocksDbWeight::get().reads(9 as Weight))474 .saturating_add(RocksDbWeight::get().writes(1 as Weight))475 }476}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-30, 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-core15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --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 fn destroy_collection() -> Weight;38 fn change_collection_issuer() -> Weight;39 fn lock_collection() -> Weight;40 fn mint_nft(b: u32, ) -> Weight;41 fn burn_nft(b: u32, ) -> Weight;42 fn send() -> Weight;43 fn accept_nft() -> Weight;44 fn reject_nft() -> Weight;45 fn set_property() -> Weight;46 fn set_priority() -> Weight;47 fn add_basic_resource() -> Weight;48 fn add_composable_resource() -> Weight;49 fn add_slot_resource() -> Weight;50 fn remove_resource() -> Weight;51 fn accept_resource() -> Weight;52 fn accept_resource_removal() -> Weight;53}5455/// Weights for pallet_proxy_rmrk_core using the Substrate node and recommended hardware.56pub struct SubstrateWeight<T>(PhantomData<T>);57impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {58 // Storage: Common CreatedCollectionCount (r:1 w:1)59 // Storage: Common DestroyedCollectionCount (r:1 w:0)60 // Storage: System Account (r:2 w:2)61 // Storage: RmrkCore CollectionIndex (r:1 w:1)62 // Storage: Common CollectionPropertyPermissions (r:0 w:1)63 // Storage: Common CollectionProperties (r:0 w:1)64 // Storage: Common CollectionById (r:0 w:1)65 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)66 fn create_collection() -> Weight {67 (42_500_000 as Weight)68 .saturating_add(T::DbWeight::get().reads(5 as Weight))69 .saturating_add(T::DbWeight::get().writes(8 as Weight))70 }71 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)72 // Storage: Common CollectionProperties (r:1 w:1)73 // Storage: Common CollectionById (r:1 w:1)74 // Storage: Nonfungible TokenData (r:1 w:0)75 // Storage: Common DestroyedCollectionCount (r:1 w:1)76 // Storage: Nonfungible TokensMinted (r:0 w:1)77 // Storage: Nonfungible TokensBurnt (r:0 w:1)78 // Storage: Common AdminAmount (r:0 w:1)79 fn destroy_collection() -> Weight {80 (44_263_000 as Weight)81 .saturating_add(T::DbWeight::get().reads(5 as Weight))82 .saturating_add(T::DbWeight::get().writes(6 as Weight))83 }84 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)85 // Storage: Common CollectionById (r:1 w:1)86 // Storage: Common CollectionProperties (r:1 w:0)87 fn change_collection_issuer() -> Weight {88 (22_572_000 as Weight)89 .saturating_add(T::DbWeight::get().reads(3 as Weight))90 .saturating_add(T::DbWeight::get().writes(1 as Weight))91 }92 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)93 // Storage: Common CollectionProperties (r:1 w:0)94 // Storage: Common CollectionById (r:1 w:1)95 // Storage: Nonfungible TokensMinted (r:1 w:0)96 // Storage: Nonfungible TokensBurnt (r:1 w:0)97 fn lock_collection() -> Weight {98 (23_795_000 as Weight)99 .saturating_add(T::DbWeight::get().reads(5 as Weight))100 .saturating_add(T::DbWeight::get().writes(1 as Weight))101 }102 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)103 // Storage: Common CollectionProperties (r:1 w:0)104 // Storage: Common CollectionById (r:1 w:0)105 // Storage: Nonfungible TokensMinted (r:1 w:1)106 // Storage: Nonfungible AccountBalance (r:1 w:1)107 // Storage: Nonfungible TokenProperties (r:1 w:1)108 // Storage: Nonfungible TokenData (r:0 w:1)109 // Storage: Nonfungible Owned (r:0 w:1)110 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)111 fn mint_nft(b: u32, ) -> Weight {112 (48_582_000 as Weight)113 // Standard Error: 6_000114 .saturating_add((11_768_000 as Weight).saturating_mul(b as Weight))115 .saturating_add(T::DbWeight::get().reads(6 as Weight))116 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))117 .saturating_add(T::DbWeight::get().writes(5 as Weight))118 .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))119 }120 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)121 // Storage: Common CollectionProperties (r:1 w:0)122 // Storage: Common CollectionById (r:1 w:0)123 // Storage: Nonfungible TokenData (r:1 w:1)124 // Storage: Nonfungible TokenChildren (r:1 w:0)125 // Storage: Nonfungible TokensBurnt (r:1 w:1)126 // Storage: Nonfungible AccountBalance (r:1 w:1)127 // Storage: Nonfungible Allowance (r:1 w:0)128 // Storage: Nonfungible Owned (r:0 w:1)129 // Storage: Nonfungible TokenProperties (r:0 w:1)130 fn burn_nft(b: u32, ) -> Weight {131 (0 as Weight)132 // Standard Error: 1_682_000133 .saturating_add((328_103_000 as Weight).saturating_mul(b as Weight))134 .saturating_add(T::DbWeight::get().reads(9 as Weight))135 .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))136 .saturating_add(T::DbWeight::get().writes(6 as Weight))137 .saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))138 }139 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)140 // Storage: Common CollectionProperties (r:1 w:0)141 // Storage: Common CollectionById (r:1 w:0)142 // Storage: Nonfungible TokenData (r:5 w:1)143 // Storage: Nonfungible TokenProperties (r:1 w:0)144 // Storage: Nonfungible AccountBalance (r:2 w:2)145 // Storage: Nonfungible Allowance (r:1 w:0)146 // Storage: Nonfungible TokenChildren (r:0 w:1)147 // Storage: Nonfungible Owned (r:0 w:2)148 fn send() -> Weight {149 (75_080_000 as Weight)150 .saturating_add(T::DbWeight::get().reads(12 as Weight))151 .saturating_add(T::DbWeight::get().writes(6 as Weight))152 }153 // Storage: RmrkCore UniqueCollectionId (r:2 w:0)154 // Storage: Common CollectionProperties (r:1 w:0)155 // Storage: Common CollectionById (r:2 w:0)156 // Storage: Nonfungible TokenData (r:6 w:1)157 // Storage: Nonfungible AccountBalance (r:2 w:2)158 // Storage: Nonfungible Allowance (r:1 w:0)159 // Storage: Nonfungible TokenProperties (r:1 w:1)160 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)161 // Storage: Nonfungible TokenChildren (r:0 w:1)162 // Storage: Nonfungible Owned (r:0 w:2)163 fn accept_nft() -> Weight {164 (89_187_000 as Weight)165 .saturating_add(T::DbWeight::get().reads(16 as Weight))166 .saturating_add(T::DbWeight::get().writes(8 as Weight))167 }168 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)169 // Storage: Common CollectionProperties (r:1 w:0)170 // Storage: Common CollectionById (r:1 w:0)171 // Storage: Nonfungible TokenData (r:5 w:5)172 // Storage: Nonfungible TokenProperties (r:1 w:5)173 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)174 // Storage: Nonfungible TokenChildren (r:9 w:4)175 // Storage: Nonfungible TokensBurnt (r:1 w:1)176 // Storage: Nonfungible AccountBalance (r:5 w:5)177 // Storage: Nonfungible Allowance (r:5 w:0)178 // Storage: Nonfungible Owned (r:0 w:5)179 fn reject_nft() -> Weight {180 (265_500_000 as Weight)181 .saturating_add(T::DbWeight::get().reads(30 as Weight))182 .saturating_add(T::DbWeight::get().writes(26 as Weight))183 }184 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)185 // Storage: Common CollectionProperties (r:1 w:0)186 // Storage: Common CollectionById (r:1 w:0)187 // Storage: Nonfungible TokenProperties (r:1 w:1)188 // Storage: Nonfungible TokenData (r:5 w:0)189 fn set_property() -> Weight {190 (50_424_000 as Weight)191 .saturating_add(T::DbWeight::get().reads(9 as Weight))192 .saturating_add(T::DbWeight::get().writes(1 as Weight))193 }194 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)195 // Storage: Common CollectionProperties (r:1 w:0)196 // Storage: Common CollectionById (r:1 w:0)197 // Storage: Nonfungible TokenProperties (r:1 w:1)198 // Storage: Nonfungible TokenData (r:5 w:0)199 fn set_priority() -> Weight {200 (49_783_000 as Weight)201 .saturating_add(T::DbWeight::get().reads(9 as Weight))202 .saturating_add(T::DbWeight::get().writes(1 as Weight))203 }204 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)205 // Storage: Common CollectionProperties (r:1 w:0)206 // Storage: Common CollectionById (r:1 w:0)207 // Storage: Nonfungible TokenData (r:5 w:0)208 // Storage: Nonfungible TokenProperties (r:1 w:1)209 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)210 fn add_basic_resource() -> Weight {211 (57_497_000 as Weight)212 .saturating_add(T::DbWeight::get().reads(10 as Weight))213 .saturating_add(T::DbWeight::get().writes(2 as Weight))214 }215 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)216 // Storage: Common CollectionProperties (r:1 w:0)217 // Storage: Common CollectionById (r:1 w:0)218 // Storage: Nonfungible TokenData (r:5 w:0)219 // Storage: Nonfungible TokenProperties (r:1 w:1)220 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)221 fn add_composable_resource() -> Weight {222 (60_684_000 as Weight)223 .saturating_add(T::DbWeight::get().reads(11 as Weight))224 .saturating_add(T::DbWeight::get().writes(3 as Weight))225 }226 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)227 // Storage: Common CollectionProperties (r:1 w:0)228 // Storage: Common CollectionById (r:1 w:0)229 // Storage: Nonfungible TokenData (r:5 w:0)230 // Storage: Nonfungible TokenProperties (r:1 w:1)231 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)232 fn add_slot_resource() -> Weight {233 (57_107_000 as Weight)234 .saturating_add(T::DbWeight::get().reads(10 as Weight))235 .saturating_add(T::DbWeight::get().writes(2 as Weight))236 }237 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)238 // Storage: Common CollectionProperties (r:1 w:0)239 // Storage: Common CollectionById (r:1 w:0)240 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)241 // Storage: Nonfungible TokenData (r:5 w:0)242 fn remove_resource() -> Weight {243 (48_252_000 as Weight)244 .saturating_add(T::DbWeight::get().reads(9 as Weight))245 .saturating_add(T::DbWeight::get().writes(1 as Weight))246 }247 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)248 // Storage: Common CollectionProperties (r:1 w:0)249 // Storage: Common CollectionById (r:1 w:0)250 // Storage: Nonfungible TokenData (r:5 w:0)251 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)252 fn accept_resource() -> Weight {253 (46_547_000 as Weight)254 .saturating_add(T::DbWeight::get().reads(9 as Weight))255 .saturating_add(T::DbWeight::get().writes(1 as Weight))256 }257 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)258 // Storage: Common CollectionProperties (r:1 w:0)259 // Storage: Common CollectionById (r:1 w:0)260 // Storage: Nonfungible TokenData (r:5 w:0)261 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)262 fn accept_resource_removal() -> Weight {263 (46_317_000 as Weight)264 .saturating_add(T::DbWeight::get().reads(9 as Weight))265 .saturating_add(T::DbWeight::get().writes(1 as Weight))266 }267}268269// For backwards compatibility and tests270impl WeightInfo for () {271 // Storage: Common CreatedCollectionCount (r:1 w:1)272 // Storage: Common DestroyedCollectionCount (r:1 w:0)273 // Storage: System Account (r:2 w:2)274 // Storage: RmrkCore CollectionIndex (r:1 w:1)275 // Storage: Common CollectionPropertyPermissions (r:0 w:1)276 // Storage: Common CollectionProperties (r:0 w:1)277 // Storage: Common CollectionById (r:0 w:1)278 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)279 fn create_collection() -> Weight {280 (42_500_000 as Weight)281 .saturating_add(RocksDbWeight::get().reads(5 as Weight))282 .saturating_add(RocksDbWeight::get().writes(8 as Weight))283 }284 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)285 // Storage: Common CollectionProperties (r:1 w:1)286 // Storage: Common CollectionById (r:1 w:1)287 // Storage: Nonfungible TokenData (r:1 w:0)288 // Storage: Common DestroyedCollectionCount (r:1 w:1)289 // Storage: Nonfungible TokensMinted (r:0 w:1)290 // Storage: Nonfungible TokensBurnt (r:0 w:1)291 // Storage: Common AdminAmount (r:0 w:1)292 fn destroy_collection() -> Weight {293 (44_263_000 as Weight)294 .saturating_add(RocksDbWeight::get().reads(5 as Weight))295 .saturating_add(RocksDbWeight::get().writes(6 as Weight))296 }297 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)298 // Storage: Common CollectionById (r:1 w:1)299 // Storage: Common CollectionProperties (r:1 w:0)300 fn change_collection_issuer() -> Weight {301 (22_572_000 as Weight)302 .saturating_add(RocksDbWeight::get().reads(3 as Weight))303 .saturating_add(RocksDbWeight::get().writes(1 as Weight))304 }305 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)306 // Storage: Common CollectionProperties (r:1 w:0)307 // Storage: Common CollectionById (r:1 w:1)308 // Storage: Nonfungible TokensMinted (r:1 w:0)309 // Storage: Nonfungible TokensBurnt (r:1 w:0)310 fn lock_collection() -> Weight {311 (23_795_000 as Weight)312 .saturating_add(RocksDbWeight::get().reads(5 as Weight))313 .saturating_add(RocksDbWeight::get().writes(1 as Weight))314 }315 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)316 // Storage: Common CollectionProperties (r:1 w:0)317 // Storage: Common CollectionById (r:1 w:0)318 // Storage: Nonfungible TokensMinted (r:1 w:1)319 // Storage: Nonfungible AccountBalance (r:1 w:1)320 // Storage: Nonfungible TokenProperties (r:1 w:1)321 // Storage: Nonfungible TokenData (r:0 w:1)322 // Storage: Nonfungible Owned (r:0 w:1)323 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)324 fn mint_nft(b: u32, ) -> Weight {325 (48_582_000 as Weight)326 // Standard Error: 6_000327 .saturating_add((11_768_000 as Weight).saturating_mul(b as Weight))328 .saturating_add(RocksDbWeight::get().reads(6 as Weight))329 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))330 .saturating_add(RocksDbWeight::get().writes(5 as Weight))331 .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))332 }333 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)334 // Storage: Common CollectionProperties (r:1 w:0)335 // Storage: Common CollectionById (r:1 w:0)336 // Storage: Nonfungible TokenData (r:1 w:1)337 // Storage: Nonfungible TokenChildren (r:1 w:0)338 // Storage: Nonfungible TokensBurnt (r:1 w:1)339 // Storage: Nonfungible AccountBalance (r:1 w:1)340 // Storage: Nonfungible Allowance (r:1 w:0)341 // Storage: Nonfungible Owned (r:0 w:1)342 // Storage: Nonfungible TokenProperties (r:0 w:1)343 fn burn_nft(b: u32, ) -> Weight {344 (0 as Weight)345 // Standard Error: 1_682_000346 .saturating_add((328_103_000 as Weight).saturating_mul(b as Weight))347 .saturating_add(RocksDbWeight::get().reads(9 as Weight))348 .saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))349 .saturating_add(RocksDbWeight::get().writes(6 as Weight))350 .saturating_add(RocksDbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))351 }352 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)353 // Storage: Common CollectionProperties (r:1 w:0)354 // Storage: Common CollectionById (r:1 w:0)355 // Storage: Nonfungible TokenData (r:5 w:1)356 // Storage: Nonfungible TokenProperties (r:1 w:0)357 // Storage: Nonfungible AccountBalance (r:2 w:2)358 // Storage: Nonfungible Allowance (r:1 w:0)359 // Storage: Nonfungible TokenChildren (r:0 w:1)360 // Storage: Nonfungible Owned (r:0 w:2)361 fn send() -> Weight {362 (75_080_000 as Weight)363 .saturating_add(RocksDbWeight::get().reads(12 as Weight))364 .saturating_add(RocksDbWeight::get().writes(6 as Weight))365 }366 // Storage: RmrkCore UniqueCollectionId (r:2 w:0)367 // Storage: Common CollectionProperties (r:1 w:0)368 // Storage: Common CollectionById (r:2 w:0)369 // Storage: Nonfungible TokenData (r:6 w:1)370 // Storage: Nonfungible AccountBalance (r:2 w:2)371 // Storage: Nonfungible Allowance (r:1 w:0)372 // Storage: Nonfungible TokenProperties (r:1 w:1)373 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)374 // Storage: Nonfungible TokenChildren (r:0 w:1)375 // Storage: Nonfungible Owned (r:0 w:2)376 fn accept_nft() -> Weight {377 (89_187_000 as Weight)378 .saturating_add(RocksDbWeight::get().reads(16 as Weight))379 .saturating_add(RocksDbWeight::get().writes(8 as Weight))380 }381 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)382 // Storage: Common CollectionProperties (r:1 w:0)383 // Storage: Common CollectionById (r:1 w:0)384 // Storage: Nonfungible TokenData (r:5 w:5)385 // Storage: Nonfungible TokenProperties (r:1 w:5)386 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)387 // Storage: Nonfungible TokenChildren (r:9 w:4)388 // Storage: Nonfungible TokensBurnt (r:1 w:1)389 // Storage: Nonfungible AccountBalance (r:5 w:5)390 // Storage: Nonfungible Allowance (r:5 w:0)391 // Storage: Nonfungible Owned (r:0 w:5)392 fn reject_nft() -> Weight {393 (265_500_000 as Weight)394 .saturating_add(RocksDbWeight::get().reads(30 as Weight))395 .saturating_add(RocksDbWeight::get().writes(26 as Weight))396 }397 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)398 // Storage: Common CollectionProperties (r:1 w:0)399 // Storage: Common CollectionById (r:1 w:0)400 // Storage: Nonfungible TokenProperties (r:1 w:1)401 // Storage: Nonfungible TokenData (r:5 w:0)402 fn set_property() -> Weight {403 (50_424_000 as Weight)404 .saturating_add(RocksDbWeight::get().reads(9 as Weight))405 .saturating_add(RocksDbWeight::get().writes(1 as Weight))406 }407 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)408 // Storage: Common CollectionProperties (r:1 w:0)409 // Storage: Common CollectionById (r:1 w:0)410 // Storage: Nonfungible TokenProperties (r:1 w:1)411 // Storage: Nonfungible TokenData (r:5 w:0)412 fn set_priority() -> Weight {413 (49_783_000 as Weight)414 .saturating_add(RocksDbWeight::get().reads(9 as Weight))415 .saturating_add(RocksDbWeight::get().writes(1 as Weight))416 }417 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)418 // Storage: Common CollectionProperties (r:1 w:0)419 // Storage: Common CollectionById (r:1 w:0)420 // Storage: Nonfungible TokenData (r:5 w:0)421 // Storage: Nonfungible TokenProperties (r:1 w:1)422 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)423 fn add_basic_resource() -> Weight {424 (57_497_000 as Weight)425 .saturating_add(RocksDbWeight::get().reads(10 as Weight))426 .saturating_add(RocksDbWeight::get().writes(2 as Weight))427 }428 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)429 // Storage: Common CollectionProperties (r:1 w:0)430 // Storage: Common CollectionById (r:1 w:0)431 // Storage: Nonfungible TokenData (r:5 w:0)432 // Storage: Nonfungible TokenProperties (r:1 w:1)433 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)434 fn add_composable_resource() -> Weight {435 (60_684_000 as Weight)436 .saturating_add(RocksDbWeight::get().reads(11 as Weight))437 .saturating_add(RocksDbWeight::get().writes(3 as Weight))438 }439 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)440 // Storage: Common CollectionProperties (r:1 w:0)441 // Storage: Common CollectionById (r:1 w:0)442 // Storage: Nonfungible TokenData (r:5 w:0)443 // Storage: Nonfungible TokenProperties (r:1 w:1)444 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)445 fn add_slot_resource() -> Weight {446 (57_107_000 as Weight)447 .saturating_add(RocksDbWeight::get().reads(10 as Weight))448 .saturating_add(RocksDbWeight::get().writes(2 as Weight))449 }450 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)451 // Storage: Common CollectionProperties (r:1 w:0)452 // Storage: Common CollectionById (r:1 w:0)453 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)454 // Storage: Nonfungible TokenData (r:5 w:0)455 fn remove_resource() -> Weight {456 (48_252_000 as Weight)457 .saturating_add(RocksDbWeight::get().reads(9 as Weight))458 .saturating_add(RocksDbWeight::get().writes(1 as Weight))459 }460 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)461 // Storage: Common CollectionProperties (r:1 w:0)462 // Storage: Common CollectionById (r:1 w:0)463 // Storage: Nonfungible TokenData (r:5 w:0)464 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)465 fn accept_resource() -> Weight {466 (46_547_000 as Weight)467 .saturating_add(RocksDbWeight::get().reads(9 as Weight))468 .saturating_add(RocksDbWeight::get().writes(1 as Weight))469 }470 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)471 // Storage: Common CollectionProperties (r:1 w:0)472 // Storage: Common CollectionById (r:1 w:0)473 // Storage: Nonfungible TokenData (r:5 w:0)474 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)475 fn accept_resource_removal() -> Weight {476 (46_317_000 as Weight)477 .saturating_add(RocksDbWeight::get().reads(9 as Weight))478 .saturating_add(RocksDbWeight::get().writes(1 as Weight))479 }480}pallets/proxy-rmrk-equip/src/weights.rsdiffbeforeafterboth--- a/pallets/proxy-rmrk-equip/src/weights.rs
+++ b/pallets/proxy-rmrk-equip/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_proxy_rmrk_equip
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-06-21, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2022-06-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -54,9 +54,9 @@
// Storage: Nonfungible TokenData (r:0 w:1)
// Storage: Nonfungible Owned (r:0 w:1)
fn create_base(b: u32, ) -> Weight {
- (62_832_000 as Weight)
- // Standard Error: 22_000
- .saturating_add((20_106_000 as Weight).saturating_mul(b as Weight))
+ (43_173_000 as Weight)
+ // Standard Error: 8_000
+ .saturating_add((18_984_000 as Weight).saturating_mul(b as Weight))
.saturating_add(T::DbWeight::get().reads(6 as Weight))
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(b as Weight)))
.saturating_add(T::DbWeight::get().writes(8 as Weight))
@@ -71,9 +71,9 @@
// Storage: Nonfungible TokenData (r:0 w:1)
// Storage: Nonfungible Owned (r:0 w:1)
fn theme_add(b: u32, ) -> Weight {
- (46_793_000 as Weight)
- // Standard Error: 61_000
- .saturating_add((3_061_000 as Weight).saturating_mul(b as Weight))
+ (40_174_000 as Weight)
+ // Standard Error: 13_000
+ .saturating_add((2_353_000 as Weight).saturating_mul(b as Weight))
.saturating_add(T::DbWeight::get().reads(6 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
@@ -82,7 +82,7 @@
// Storage: RmrkEquip InernalPartId (r:1 w:0)
// Storage: Nonfungible TokenProperties (r:1 w:1)
fn equippable() -> Weight {
- (32_495_000 as Weight)
+ (27_602_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
@@ -103,9 +103,9 @@
// Storage: Nonfungible TokenData (r:0 w:1)
// Storage: Nonfungible Owned (r:0 w:1)
fn create_base(b: u32, ) -> Weight {
- (62_832_000 as Weight)
- // Standard Error: 22_000
- .saturating_add((20_106_000 as Weight).saturating_mul(b as Weight))
+ (43_173_000 as Weight)
+ // Standard Error: 8_000
+ .saturating_add((18_984_000 as Weight).saturating_mul(b as Weight))
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(b as Weight)))
.saturating_add(RocksDbWeight::get().writes(8 as Weight))
@@ -120,9 +120,9 @@
// Storage: Nonfungible TokenData (r:0 w:1)
// Storage: Nonfungible Owned (r:0 w:1)
fn theme_add(b: u32, ) -> Weight {
- (46_793_000 as Weight)
- // Standard Error: 61_000
- .saturating_add((3_061_000 as Weight).saturating_mul(b as Weight))
+ (40_174_000 as Weight)
+ // Standard Error: 13_000
+ .saturating_add((2_353_000 as Weight).saturating_mul(b as Weight))
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
}
@@ -131,7 +131,7 @@
// Storage: RmrkEquip InernalPartId (r:1 w:0)
// Storage: Nonfungible TokenProperties (r:1 w:1)
fn equippable() -> Weight {
- (32_495_000 as Weight)
+ (27_602_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}