git.delta.rocks / unique-network / refs/commits / b21eff001206

difftreelog

bench rmrk

Daniel Shiposha2022-06-30parent: #27f22a5.patch.diff
in: master

2 files changed

modifiedpallets/proxy-rmrk-core/src/weights.rsdiffbeforeafterboth
--- a/pallets/proxy-rmrk-core/src/weights.rs
+++ b/pallets/proxy-rmrk-core/src/weights.rs
@@ -3,7 +3,7 @@
 //! Autogenerated weights for pallet_proxy_rmrk_core
 //!
 //! 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:
@@ -64,7 +64,7 @@
 	// Storage: Common CollectionById (r:0 w:1)
 	// Storage: RmrkCore UniqueCollectionId (r:0 w:1)
 	fn create_collection() -> Weight {
-		(49_986_000 as Weight)
+		(42_500_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(5 as Weight))
 			.saturating_add(T::DbWeight::get().writes(8 as Weight))
 	}
@@ -77,7 +77,7 @@
 	// Storage: Nonfungible TokensBurnt (r:0 w:1)
 	// Storage: Common AdminAmount (r:0 w:1)
 	fn destroy_collection() -> Weight {
-		(50_177_000 as Weight)
+		(44_263_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(5 as Weight))
 			.saturating_add(T::DbWeight::get().writes(6 as Weight))
 	}
@@ -85,7 +85,7 @@
 	// Storage: Common CollectionById (r:1 w:1)
 	// Storage: Common CollectionProperties (r:1 w:0)
 	fn change_collection_issuer() -> Weight {
-		(25_949_000 as Weight)
+		(22_572_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(3 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
@@ -95,7 +95,7 @@
 	// Storage: Nonfungible TokensMinted (r:1 w:0)
 	// Storage: Nonfungible TokensBurnt (r:1 w:0)
 	fn lock_collection() -> Weight {
-		(27_183_000 as Weight)
+		(23_795_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(5 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
@@ -109,9 +109,9 @@
 	// Storage: Nonfungible Owned (r:0 w:1)
 	// Storage: Nonfungible TokenAuxProperties (r:2 w:2)
 	fn mint_nft(b: u32, ) -> Weight {
-		(65_512_000 as Weight)
-			// Standard Error: 12_000
-			.saturating_add((11_525_000 as Weight).saturating_mul(b as Weight))
+		(48_582_000 as Weight)
+			// Standard Error: 6_000
+			.saturating_add((11_768_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(T::DbWeight::get().reads(6 as Weight))
 			.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))
 			.saturating_add(T::DbWeight::get().writes(5 as Weight))
@@ -129,8 +129,8 @@
 	// Storage: Nonfungible TokenProperties (r:0 w:1)
 	fn burn_nft(b: u32, ) -> Weight {
 		(0 as Weight)
-			// Standard Error: 1_472_000
-			.saturating_add((296_221_000 as Weight).saturating_mul(b as Weight))
+			// Standard Error: 1_682_000
+			.saturating_add((328_103_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(T::DbWeight::get().reads(9 as Weight))
 			.saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))
 			.saturating_add(T::DbWeight::get().writes(6 as Weight))
@@ -146,7 +146,7 @@
 	// Storage: Nonfungible TokenChildren (r:0 w:1)
 	// Storage: Nonfungible Owned (r:0 w:2)
 	fn send() -> Weight {
-		(82_778_000 as Weight)
+		(75_080_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(12 as Weight))
 			.saturating_add(T::DbWeight::get().writes(6 as Weight))
 	}
@@ -157,27 +157,29 @@
 	// Storage: Nonfungible AccountBalance (r:2 w:2)
 	// Storage: Nonfungible Allowance (r:1 w:0)
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
+	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	// Storage: Nonfungible TokenChildren (r:0 w:1)
 	// Storage: Nonfungible Owned (r:0 w:2)
 	fn accept_nft() -> Weight {
-		(90_190_000 as Weight)
-			.saturating_add(T::DbWeight::get().reads(15 as Weight))
-			.saturating_add(T::DbWeight::get().writes(7 as Weight))
+		(89_187_000 as Weight)
+			.saturating_add(T::DbWeight::get().reads(16 as Weight))
+			.saturating_add(T::DbWeight::get().writes(8 as Weight))
 	}
 	// Storage: RmrkCore UniqueCollectionId (r:1 w:0)
 	// Storage: Common CollectionProperties (r:1 w:0)
 	// Storage: Common CollectionById (r:1 w:0)
 	// Storage: Nonfungible TokenData (r:5 w:5)
 	// Storage: Nonfungible TokenProperties (r:1 w:5)
+	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	// Storage: Nonfungible TokenChildren (r:9 w:4)
 	// Storage: Nonfungible TokensBurnt (r:1 w:1)
 	// Storage: Nonfungible AccountBalance (r:5 w:5)
 	// Storage: Nonfungible Allowance (r:5 w:0)
 	// Storage: Nonfungible Owned (r:0 w:5)
 	fn reject_nft() -> Weight {
-		(262_238_000 as Weight)
-			.saturating_add(T::DbWeight::get().reads(29 as Weight))
-			.saturating_add(T::DbWeight::get().writes(25 as Weight))
+		(265_500_000 as Weight)
+			.saturating_add(T::DbWeight::get().reads(30 as Weight))
+			.saturating_add(T::DbWeight::get().writes(26 as Weight))
 	}
 	// Storage: RmrkCore UniqueCollectionId (r:1 w:0)
 	// Storage: Common CollectionProperties (r:1 w:0)
@@ -185,7 +187,7 @@
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	fn set_property() -> Weight {
-		(55_187_000 as Weight)
+		(50_424_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(9 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
@@ -195,7 +197,7 @@
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	fn set_priority() -> Weight {
-		(54_092_000 as Weight)
+		(49_783_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(9 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
@@ -206,7 +208,7 @@
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
 	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	fn add_basic_resource() -> Weight {
-		(62_551_000 as Weight)
+		(57_497_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(10 as Weight))
 			.saturating_add(T::DbWeight::get().writes(2 as Weight))
 	}
@@ -215,11 +217,11 @@
 	// Storage: Common CollectionById (r:1 w:0)
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
-	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
+	// Storage: Nonfungible TokenAuxProperties (r:2 w:2)
 	fn add_composable_resource() -> Weight {
-		(61_778_000 as Weight)
-			.saturating_add(T::DbWeight::get().reads(10 as Weight))
-			.saturating_add(T::DbWeight::get().writes(2 as Weight))
+		(60_684_000 as Weight)
+			.saturating_add(T::DbWeight::get().reads(11 as Weight))
+			.saturating_add(T::DbWeight::get().writes(3 as Weight))
 	}
 	// Storage: RmrkCore UniqueCollectionId (r:1 w:0)
 	// Storage: Common CollectionProperties (r:1 w:0)
@@ -228,7 +230,7 @@
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
 	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	fn add_slot_resource() -> Weight {
-		(62_700_000 as Weight)
+		(57_107_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(10 as Weight))
 			.saturating_add(T::DbWeight::get().writes(2 as Weight))
 	}
@@ -238,7 +240,7 @@
 	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	fn remove_resource() -> Weight {
-		(52_920_000 as Weight)
+		(48_252_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(9 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
@@ -248,7 +250,7 @@
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	fn accept_resource() -> Weight {
-		(52_450_000 as Weight)
+		(46_547_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(9 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
@@ -258,7 +260,7 @@
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	fn accept_resource_removal() -> Weight {
-		(50_901_000 as Weight)
+		(46_317_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(9 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
@@ -275,7 +277,7 @@
 	// Storage: Common CollectionById (r:0 w:1)
 	// Storage: RmrkCore UniqueCollectionId (r:0 w:1)
 	fn create_collection() -> Weight {
-		(49_986_000 as Weight)
+		(42_500_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(5 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(8 as Weight))
 	}
@@ -288,7 +290,7 @@
 	// Storage: Nonfungible TokensBurnt (r:0 w:1)
 	// Storage: Common AdminAmount (r:0 w:1)
 	fn destroy_collection() -> Weight {
-		(50_177_000 as Weight)
+		(44_263_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(5 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(6 as Weight))
 	}
@@ -296,7 +298,7 @@
 	// Storage: Common CollectionById (r:1 w:1)
 	// Storage: Common CollectionProperties (r:1 w:0)
 	fn change_collection_issuer() -> Weight {
-		(25_949_000 as Weight)
+		(22_572_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(3 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
@@ -306,7 +308,7 @@
 	// Storage: Nonfungible TokensMinted (r:1 w:0)
 	// Storage: Nonfungible TokensBurnt (r:1 w:0)
 	fn lock_collection() -> Weight {
-		(27_183_000 as Weight)
+		(23_795_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(5 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
@@ -320,9 +322,9 @@
 	// Storage: Nonfungible Owned (r:0 w:1)
 	// Storage: Nonfungible TokenAuxProperties (r:2 w:2)
 	fn mint_nft(b: u32, ) -> Weight {
-		(65_512_000 as Weight)
-			// Standard Error: 12_000
-			.saturating_add((11_525_000 as Weight).saturating_mul(b as Weight))
+		(48_582_000 as Weight)
+			// Standard Error: 6_000
+			.saturating_add((11_768_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(RocksDbWeight::get().reads(6 as Weight))
 			.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))
 			.saturating_add(RocksDbWeight::get().writes(5 as Weight))
@@ -340,8 +342,8 @@
 	// Storage: Nonfungible TokenProperties (r:0 w:1)
 	fn burn_nft(b: u32, ) -> Weight {
 		(0 as Weight)
-			// Standard Error: 1_472_000
-			.saturating_add((296_221_000 as Weight).saturating_mul(b as Weight))
+			// Standard Error: 1_682_000
+			.saturating_add((328_103_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(RocksDbWeight::get().reads(9 as Weight))
 			.saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))
 			.saturating_add(RocksDbWeight::get().writes(6 as Weight))
@@ -357,7 +359,7 @@
 	// Storage: Nonfungible TokenChildren (r:0 w:1)
 	// Storage: Nonfungible Owned (r:0 w:2)
 	fn send() -> Weight {
-		(82_778_000 as Weight)
+		(75_080_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(12 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(6 as Weight))
 	}
@@ -368,27 +370,29 @@
 	// Storage: Nonfungible AccountBalance (r:2 w:2)
 	// Storage: Nonfungible Allowance (r:1 w:0)
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
+	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	// Storage: Nonfungible TokenChildren (r:0 w:1)
 	// Storage: Nonfungible Owned (r:0 w:2)
 	fn accept_nft() -> Weight {
-		(90_190_000 as Weight)
-			.saturating_add(RocksDbWeight::get().reads(15 as Weight))
-			.saturating_add(RocksDbWeight::get().writes(7 as Weight))
+		(89_187_000 as Weight)
+			.saturating_add(RocksDbWeight::get().reads(16 as Weight))
+			.saturating_add(RocksDbWeight::get().writes(8 as Weight))
 	}
 	// Storage: RmrkCore UniqueCollectionId (r:1 w:0)
 	// Storage: Common CollectionProperties (r:1 w:0)
 	// Storage: Common CollectionById (r:1 w:0)
 	// Storage: Nonfungible TokenData (r:5 w:5)
 	// Storage: Nonfungible TokenProperties (r:1 w:5)
+	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	// Storage: Nonfungible TokenChildren (r:9 w:4)
 	// Storage: Nonfungible TokensBurnt (r:1 w:1)
 	// Storage: Nonfungible AccountBalance (r:5 w:5)
 	// Storage: Nonfungible Allowance (r:5 w:0)
 	// Storage: Nonfungible Owned (r:0 w:5)
 	fn reject_nft() -> Weight {
-		(262_238_000 as Weight)
-			.saturating_add(RocksDbWeight::get().reads(29 as Weight))
-			.saturating_add(RocksDbWeight::get().writes(25 as Weight))
+		(265_500_000 as Weight)
+			.saturating_add(RocksDbWeight::get().reads(30 as Weight))
+			.saturating_add(RocksDbWeight::get().writes(26 as Weight))
 	}
 	// Storage: RmrkCore UniqueCollectionId (r:1 w:0)
 	// Storage: Common CollectionProperties (r:1 w:0)
@@ -396,7 +400,7 @@
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	fn set_property() -> Weight {
-		(55_187_000 as Weight)
+		(50_424_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(9 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
@@ -406,7 +410,7 @@
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	fn set_priority() -> Weight {
-		(54_092_000 as Weight)
+		(49_783_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(9 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
@@ -417,7 +421,7 @@
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
 	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	fn add_basic_resource() -> Weight {
-		(62_551_000 as Weight)
+		(57_497_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(10 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(2 as Weight))
 	}
@@ -426,11 +430,11 @@
 	// Storage: Common CollectionById (r:1 w:0)
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
-	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
+	// Storage: Nonfungible TokenAuxProperties (r:2 w:2)
 	fn add_composable_resource() -> Weight {
-		(61_778_000 as Weight)
-			.saturating_add(RocksDbWeight::get().reads(10 as Weight))
-			.saturating_add(RocksDbWeight::get().writes(2 as Weight))
+		(60_684_000 as Weight)
+			.saturating_add(RocksDbWeight::get().reads(11 as Weight))
+			.saturating_add(RocksDbWeight::get().writes(3 as Weight))
 	}
 	// Storage: RmrkCore UniqueCollectionId (r:1 w:0)
 	// Storage: Common CollectionProperties (r:1 w:0)
@@ -439,7 +443,7 @@
 	// Storage: Nonfungible TokenProperties (r:1 w:1)
 	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	fn add_slot_resource() -> Weight {
-		(62_700_000 as Weight)
+		(57_107_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(10 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(2 as Weight))
 	}
@@ -449,7 +453,7 @@
 	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	fn remove_resource() -> Weight {
-		(52_920_000 as Weight)
+		(48_252_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(9 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
@@ -459,7 +463,7 @@
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	fn accept_resource() -> Weight {
-		(52_450_000 as Weight)
+		(46_547_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(9 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
@@ -469,7 +473,7 @@
 	// Storage: Nonfungible TokenData (r:5 w:0)
 	// Storage: Nonfungible TokenAuxProperties (r:1 w:1)
 	fn accept_resource_removal() -> Weight {
-		(50_901_000 as Weight)
+		(46_317_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(9 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
modifiedpallets/proxy-rmrk-equip/src/weights.rsdiffbeforeafterboth
before · pallets/proxy-rmrk-equip/src/weights.rs
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-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-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		(62_832_000 as Weight)58			// Standard Error: 22_00059			.saturating_add((20_106_000 as Weight).saturating_mul(b as Weight))60			.saturating_add(T::DbWeight::get().reads(6 as Weight))61			.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(b as Weight)))62			.saturating_add(T::DbWeight::get().writes(8 as Weight))63			.saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))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		(46_793_000 as Weight)75			// Standard Error: 61_00076			.saturating_add((3_061_000 as Weight).saturating_mul(b as Weight))77			.saturating_add(T::DbWeight::get().reads(6 as Weight))78			.saturating_add(T::DbWeight::get().writes(5 as Weight))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		(32_495_000 as Weight)86			.saturating_add(T::DbWeight::get().reads(4 as Weight))87			.saturating_add(T::DbWeight::get().writes(1 as Weight))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		(62_832_000 as Weight)107			// Standard Error: 22_000108			.saturating_add((20_106_000 as Weight).saturating_mul(b as Weight))109			.saturating_add(RocksDbWeight::get().reads(6 as Weight))110			.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(b as Weight)))111			.saturating_add(RocksDbWeight::get().writes(8 as Weight))112			.saturating_add(RocksDbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))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		(46_793_000 as Weight)124			// Standard Error: 61_000125			.saturating_add((3_061_000 as Weight).saturating_mul(b as Weight))126			.saturating_add(RocksDbWeight::get().reads(6 as Weight))127			.saturating_add(RocksDbWeight::get().writes(5 as Weight))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		(32_495_000 as Weight)135			.saturating_add(RocksDbWeight::get().reads(4 as Weight))136			.saturating_add(RocksDbWeight::get().writes(1 as Weight))137	}138}
after · pallets/proxy-rmrk-equip/src/weights.rs
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-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-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		(43_173_000 as Weight)58			// Standard Error: 8_00059			.saturating_add((18_984_000 as Weight).saturating_mul(b as Weight))60			.saturating_add(T::DbWeight::get().reads(6 as Weight))61			.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(b as Weight)))62			.saturating_add(T::DbWeight::get().writes(8 as Weight))63			.saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))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		(40_174_000 as Weight)75			// Standard Error: 13_00076			.saturating_add((2_353_000 as Weight).saturating_mul(b as Weight))77			.saturating_add(T::DbWeight::get().reads(6 as Weight))78			.saturating_add(T::DbWeight::get().writes(5 as Weight))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		(27_602_000 as Weight)86			.saturating_add(T::DbWeight::get().reads(4 as Weight))87			.saturating_add(T::DbWeight::get().writes(1 as Weight))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		(43_173_000 as Weight)107			// Standard Error: 8_000108			.saturating_add((18_984_000 as Weight).saturating_mul(b as Weight))109			.saturating_add(RocksDbWeight::get().reads(6 as Weight))110			.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(b as Weight)))111			.saturating_add(RocksDbWeight::get().writes(8 as Weight))112			.saturating_add(RocksDbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))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		(40_174_000 as Weight)124			// Standard Error: 13_000125			.saturating_add((2_353_000 as Weight).saturating_mul(b as Weight))126			.saturating_add(RocksDbWeight::get().reads(6 as Weight))127			.saturating_add(RocksDbWeight::get().writes(5 as Weight))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		(27_602_000 as Weight)135			.saturating_add(RocksDbWeight::get().reads(4 as Weight))136			.saturating_add(RocksDbWeight::get().writes(1 as Weight))137	}138}