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

difftreelog

bench weights #2

Igor Kozyrev2022-03-01parent: #8aca5b5.patch.diff
in: master

5 files changed

modifiedpallets/evm-migration/src/weights.rsdiffbeforeafterboth
--- a/pallets/evm-migration/src/weights.rs
+++ b/pallets/evm-migration/src/weights.rs
@@ -43,25 +43,23 @@
 	// Storage: System Account (r:1 w:0)
 	// Storage: EVM AccountCodes (r:1 w:0)
 	fn begin() -> Weight {
-		(6_918_000 as Weight)
+		(7_230_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(3 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: EvmMigration MigrationPending (r:1 w:0)
 	// Storage: EVM AccountStorages (r:0 w:1)
 	fn set_data(b: u32, ) -> Weight {
-		(3_048_000 as Weight)
-			// Standard Error: 3_000
-			.saturating_add((1_047_000 as Weight).saturating_mul(b as Weight))
+		(3_442_000 as Weight)
+			// Standard Error: 5_000
+			.saturating_add((1_038_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))
 	}
 	// Storage: EvmMigration MigrationPending (r:1 w:1)
 	// Storage: EVM AccountCodes (r:0 w:1)
-	fn finish(b: u32, ) -> Weight {
-		(4_921_000 as Weight)
-			// Standard Error: 0
-			.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
+	fn finish(_b: u32, ) -> Weight {
+		(5_282_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(2 as Weight))
 	}
@@ -73,25 +71,23 @@
 	// Storage: System Account (r:1 w:0)
 	// Storage: EVM AccountCodes (r:1 w:0)
 	fn begin() -> Weight {
-		(6_918_000 as Weight)
+		(7_230_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(3 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: EvmMigration MigrationPending (r:1 w:0)
 	// Storage: EVM AccountStorages (r:0 w:1)
 	fn set_data(b: u32, ) -> Weight {
-		(3_048_000 as Weight)
-			// Standard Error: 3_000
-			.saturating_add((1_047_000 as Weight).saturating_mul(b as Weight))
+		(3_442_000 as Weight)
+			// Standard Error: 5_000
+			.saturating_add((1_038_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))
 	}
 	// Storage: EvmMigration MigrationPending (r:1 w:1)
 	// Storage: EVM AccountCodes (r:0 w:1)
-	fn finish(b: u32, ) -> Weight {
-		(4_921_000 as Weight)
-			// Standard Error: 0
-			.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
+	fn finish(_b: u32, ) -> Weight {
+		(5_282_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(2 as Weight))
 	}
modifiedpallets/fungible/src/weights.rsdiffbeforeafterboth
--- a/pallets/fungible/src/weights.rs
+++ b/pallets/fungible/src/weights.rs
@@ -46,16 +46,16 @@
 	// Storage: Fungible TotalSupply (r:1 w:1)
 	// Storage: Fungible Balance (r:1 w:1)
 	fn create_item() -> Weight {
-		(15_284_000 as Weight)
+		(15_015_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(2 as Weight))
 			.saturating_add(T::DbWeight::get().writes(2 as Weight))
 	}
 	// Storage: Fungible TotalSupply (r:1 w:1)
 	// Storage: Fungible Balance (r:4 w:4)
 	fn create_multiple_items_ex(b: u32, ) -> Weight {
-		(15_044_000 as Weight)
+		(15_984_000 as Weight)
 			// Standard Error: 5_000
-			.saturating_add((4_005_000 as Weight).saturating_mul(b as Weight))
+			.saturating_add((3_986_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
@@ -64,27 +64,27 @@
 	// Storage: Fungible TotalSupply (r:1 w:1)
 	// Storage: Fungible Balance (r:1 w:1)
 	fn burn_item() -> Weight {
-		(16_814_000 as Weight)
+		(16_679_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(2 as Weight))
 			.saturating_add(T::DbWeight::get().writes(2 as Weight))
 	}
 	// Storage: Fungible Balance (r:2 w:2)
 	fn transfer() -> Weight {
-		(18_463_000 as Weight)
+		(18_498_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(2 as Weight))
 			.saturating_add(T::DbWeight::get().writes(2 as Weight))
 	}
 	// Storage: Fungible Balance (r:1 w:0)
 	// Storage: Fungible Allowance (r:0 w:1)
 	fn approve() -> Weight {
-		(15_445_000 as Weight)
+		(15_347_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Fungible Allowance (r:1 w:1)
 	// Storage: Fungible Balance (r:2 w:2)
 	fn transfer_from() -> Weight {
-		(26_265_000 as Weight)
+		(25_956_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(3 as Weight))
 			.saturating_add(T::DbWeight::get().writes(3 as Weight))
 	}
@@ -92,7 +92,7 @@
 	// Storage: Fungible TotalSupply (r:1 w:1)
 	// Storage: Fungible Balance (r:1 w:1)
 	fn burn_from() -> Weight {
-		(25_053_000 as Weight)
+		(24_472_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(3 as Weight))
 			.saturating_add(T::DbWeight::get().writes(3 as Weight))
 	}
@@ -103,16 +103,16 @@
 	// Storage: Fungible TotalSupply (r:1 w:1)
 	// Storage: Fungible Balance (r:1 w:1)
 	fn create_item() -> Weight {
-		(15_284_000 as Weight)
+		(15_015_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(2 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(2 as Weight))
 	}
 	// Storage: Fungible TotalSupply (r:1 w:1)
 	// Storage: Fungible Balance (r:4 w:4)
 	fn create_multiple_items_ex(b: u32, ) -> Weight {
-		(15_044_000 as Weight)
+		(15_984_000 as Weight)
 			// Standard Error: 5_000
-			.saturating_add((4_005_000 as Weight).saturating_mul(b as Weight))
+			.saturating_add((3_986_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
@@ -121,27 +121,27 @@
 	// Storage: Fungible TotalSupply (r:1 w:1)
 	// Storage: Fungible Balance (r:1 w:1)
 	fn burn_item() -> Weight {
-		(16_814_000 as Weight)
+		(16_679_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(2 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(2 as Weight))
 	}
 	// Storage: Fungible Balance (r:2 w:2)
 	fn transfer() -> Weight {
-		(18_463_000 as Weight)
+		(18_498_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(2 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(2 as Weight))
 	}
 	// Storage: Fungible Balance (r:1 w:0)
 	// Storage: Fungible Allowance (r:0 w:1)
 	fn approve() -> Weight {
-		(15_445_000 as Weight)
+		(15_347_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Fungible Allowance (r:1 w:1)
 	// Storage: Fungible Balance (r:2 w:2)
 	fn transfer_from() -> Weight {
-		(26_265_000 as Weight)
+		(25_956_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(3 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(3 as Weight))
 	}
@@ -149,7 +149,7 @@
 	// Storage: Fungible TotalSupply (r:1 w:1)
 	// Storage: Fungible Balance (r:1 w:1)
 	fn burn_from() -> Weight {
-		(25_053_000 as Weight)
+		(24_472_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(3 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(3 as Weight))
 	}
modifiedpallets/nonfungible/src/weights.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/weights.rs
+++ b/pallets/nonfungible/src/weights.rs
@@ -50,7 +50,7 @@
 	// Storage: Nonfungible TokenData (r:0 w:1)
 	// Storage: Nonfungible Owned (r:0 w:1)
 	fn create_item() -> Weight {
-		(18_527_000 as Weight)
+		(18_709_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(2 as Weight))
 			.saturating_add(T::DbWeight::get().writes(4 as Weight))
 	}
@@ -59,9 +59,9 @@
 	// Storage: Nonfungible TokenData (r:0 w:4)
 	// Storage: Nonfungible Owned (r:0 w:4)
 	fn create_multiple_items(b: u32, ) -> Weight {
-		(18_877_000 as Weight)
-			// Standard Error: 6_000
-			.saturating_add((4_471_000 as Weight).saturating_mul(b as Weight))
+		(22_235_000 as Weight)
+			// Standard Error: 8_000
+			.saturating_add((4_515_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(T::DbWeight::get().reads(2 as Weight))
 			.saturating_add(T::DbWeight::get().writes(2 as Weight))
 			.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(b as Weight)))
@@ -71,9 +71,9 @@
 	// Storage: Nonfungible TokenData (r:0 w:4)
 	// Storage: Nonfungible Owned (r:0 w:4)
 	fn create_multiple_items_ex(b: u32, ) -> Weight {
-		(10_556_000 as Weight)
+		(14_436_000 as Weight)
 			// Standard Error: 14_000
-			.saturating_add((7_291_000 as Weight).saturating_mul(b as Weight))
+			.saturating_add((7_376_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
@@ -85,7 +85,7 @@
 	// Storage: Nonfungible Allowance (r:1 w:0)
 	// Storage: Nonfungible Owned (r:0 w:1)
 	fn burn_item() -> Weight {
-		(24_402_000 as Weight)
+		(24_609_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(4 as Weight))
 			.saturating_add(T::DbWeight::get().writes(4 as Weight))
 	}
@@ -94,14 +94,14 @@
 	// Storage: Nonfungible Allowance (r:1 w:0)
 	// Storage: Nonfungible Owned (r:0 w:2)
 	fn transfer() -> Weight {
-		(27_992_000 as Weight)
+		(28_283_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(4 as Weight))
 			.saturating_add(T::DbWeight::get().writes(5 as Weight))
 	}
 	// Storage: Nonfungible TokenData (r:1 w:0)
 	// Storage: Nonfungible Allowance (r:1 w:1)
 	fn approve() -> Weight {
-		(17_838_000 as Weight)
+		(17_514_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(2 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
@@ -110,7 +110,7 @@
 	// Storage: Nonfungible AccountBalance (r:2 w:2)
 	// Storage: Nonfungible Owned (r:0 w:2)
 	fn transfer_from() -> Weight {
-		(32_410_000 as Weight)
+		(32_523_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(4 as Weight))
 			.saturating_add(T::DbWeight::get().writes(6 as Weight))
 	}
@@ -120,13 +120,13 @@
 	// Storage: Nonfungible AccountBalance (r:1 w:1)
 	// Storage: Nonfungible Owned (r:0 w:1)
 	fn burn_from() -> Weight {
-		(28_496_000 as Weight)
+		(28_459_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(4 as Weight))
 			.saturating_add(T::DbWeight::get().writes(5 as Weight))
 	}
 	// Storage: Nonfungible TokenData (r:1 w:1)
 	fn set_variable_metadata(_b: u32, ) -> Weight {
-		(8_272_000 as Weight)
+		(8_212_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
@@ -139,7 +139,7 @@
 	// Storage: Nonfungible TokenData (r:0 w:1)
 	// Storage: Nonfungible Owned (r:0 w:1)
 	fn create_item() -> Weight {
-		(18_527_000 as Weight)
+		(18_709_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(2 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(4 as Weight))
 	}
@@ -148,9 +148,9 @@
 	// Storage: Nonfungible TokenData (r:0 w:4)
 	// Storage: Nonfungible Owned (r:0 w:4)
 	fn create_multiple_items(b: u32, ) -> Weight {
-		(18_877_000 as Weight)
-			// Standard Error: 6_000
-			.saturating_add((4_471_000 as Weight).saturating_mul(b as Weight))
+		(22_235_000 as Weight)
+			// Standard Error: 8_000
+			.saturating_add((4_515_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(RocksDbWeight::get().reads(2 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(2 as Weight))
 			.saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(b as Weight)))
@@ -160,9 +160,9 @@
 	// Storage: Nonfungible TokenData (r:0 w:4)
 	// Storage: Nonfungible Owned (r:0 w:4)
 	fn create_multiple_items_ex(b: u32, ) -> Weight {
-		(10_556_000 as Weight)
+		(14_436_000 as Weight)
 			// Standard Error: 14_000
-			.saturating_add((7_291_000 as Weight).saturating_mul(b as Weight))
+			.saturating_add((7_376_000 as Weight).saturating_mul(b as Weight))
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
@@ -174,7 +174,7 @@
 	// Storage: Nonfungible Allowance (r:1 w:0)
 	// Storage: Nonfungible Owned (r:0 w:1)
 	fn burn_item() -> Weight {
-		(24_402_000 as Weight)
+		(24_609_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(4 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(4 as Weight))
 	}
@@ -183,14 +183,14 @@
 	// Storage: Nonfungible Allowance (r:1 w:0)
 	// Storage: Nonfungible Owned (r:0 w:2)
 	fn transfer() -> Weight {
-		(27_992_000 as Weight)
+		(28_283_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(4 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(5 as Weight))
 	}
 	// Storage: Nonfungible TokenData (r:1 w:0)
 	// Storage: Nonfungible Allowance (r:1 w:1)
 	fn approve() -> Weight {
-		(17_838_000 as Weight)
+		(17_514_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(2 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
@@ -199,7 +199,7 @@
 	// Storage: Nonfungible AccountBalance (r:2 w:2)
 	// Storage: Nonfungible Owned (r:0 w:2)
 	fn transfer_from() -> Weight {
-		(32_410_000 as Weight)
+		(32_523_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(4 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(6 as Weight))
 	}
@@ -209,13 +209,13 @@
 	// Storage: Nonfungible AccountBalance (r:1 w:1)
 	// Storage: Nonfungible Owned (r:0 w:1)
 	fn burn_from() -> Weight {
-		(28_496_000 as Weight)
+		(28_459_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(4 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(5 as Weight))
 	}
 	// Storage: Nonfungible TokenData (r:1 w:1)
 	fn set_variable_metadata(_b: u32, ) -> Weight {
-		(8_272_000 as Weight)
+		(8_212_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
modifiedpallets/refungible/src/weights.rsdiffbeforeafterboth
before · pallets/refungible/src/weights.rs
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_refungible4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-03-01, STEPS: `50`, REPEAT: 20, 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-refungible14// --wasm-execution15// compiled16// --extrinsic17// *18// --template19// .maintain/frame-weight-template.hbs20// --steps=5021// --repeat=2022// --output=./pallets/refungible/src/weights.rs2324#![cfg_attr(rustfmt, rustfmt_skip)]25#![allow(unused_parens)]26#![allow(unused_imports)]27#![allow(clippy::unnecessary_cast)]2829use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};30use sp_std::marker::PhantomData;3132/// Weight functions needed for pallet_refungible.33pub trait WeightInfo {34	fn create_item() -> Weight;35	fn create_multiple_items(b: u32, ) -> Weight;36	fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight;37	fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight;38	fn burn_item_partial() -> Weight;39	fn burn_item_fully() -> Weight;40	fn transfer_normal() -> Weight;41	fn transfer_creating() -> Weight;42	fn transfer_removing() -> Weight;43	fn transfer_creating_removing() -> Weight;44	fn approve() -> Weight;45	fn transfer_from_normal() -> Weight;46	fn transfer_from_creating() -> Weight;47	fn transfer_from_removing() -> Weight;48	fn transfer_from_creating_removing() -> Weight;49	fn burn_from() -> Weight;50	fn set_variable_metadata(b: u32, ) -> Weight;51}5253/// Weights for pallet_refungible using the Substrate node and recommended hardware.54pub struct SubstrateWeight<T>(PhantomData<T>);55impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {56	// Storage: Refungible TokensMinted (r:1 w:1)57	// Storage: Refungible AccountBalance (r:1 w:1)58	// Storage: Refungible Balance (r:0 w:1)59	// Storage: Refungible TotalSupply (r:0 w:1)60	// Storage: Refungible TokenData (r:0 w:1)61	// Storage: Refungible Owned (r:0 w:1)62	fn create_item() -> Weight {63		(21_227_000 as Weight)64			.saturating_add(T::DbWeight::get().reads(2 as Weight))65			.saturating_add(T::DbWeight::get().writes(6 as Weight))66	}67	// Storage: Refungible TokensMinted (r:1 w:1)68	// Storage: Refungible AccountBalance (r:1 w:1)69	// Storage: Refungible Balance (r:0 w:4)70	// Storage: Refungible TotalSupply (r:0 w:4)71	// Storage: Refungible TokenData (r:0 w:4)72	// Storage: Refungible Owned (r:0 w:4)73	fn create_multiple_items(b: u32, ) -> Weight {74		(25_932_000 as Weight)75			// Standard Error: 11_00076			.saturating_add((5_730_000 as Weight).saturating_mul(b as Weight))77			.saturating_add(T::DbWeight::get().reads(2 as Weight))78			.saturating_add(T::DbWeight::get().writes(2 as Weight))79			.saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))80	}81	// Storage: Refungible TokensMinted (r:1 w:1)82	// Storage: Refungible AccountBalance (r:4 w:4)83	// Storage: Refungible Balance (r:0 w:4)84	// Storage: Refungible TotalSupply (r:0 w:4)85	// Storage: Refungible TokenData (r:0 w:4)86	// Storage: Refungible Owned (r:0 w:4)87	fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {88		(18_884_000 as Weight)89			// Standard Error: 11_00090			.saturating_add((8_489_000 as Weight).saturating_mul(b as Weight))91			.saturating_add(T::DbWeight::get().reads(1 as Weight))92			.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))93			.saturating_add(T::DbWeight::get().writes(1 as Weight))94			.saturating_add(T::DbWeight::get().writes((5 as Weight).saturating_mul(b as Weight)))95	}96	// Storage: Refungible TokensMinted (r:1 w:1)97	// Storage: Refungible TotalSupply (r:0 w:1)98	// Storage: Refungible TokenData (r:0 w:1)99	// Storage: Refungible AccountBalance (r:4 w:4)100	// Storage: Refungible Balance (r:0 w:4)101	// Storage: Refungible Owned (r:0 w:4)102	fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {103		(16_515_000 as Weight)104			// Standard Error: 9_000105			.saturating_add((6_428_000 as Weight).saturating_mul(b as Weight))106			.saturating_add(T::DbWeight::get().reads(1 as Weight))107			.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))108			.saturating_add(T::DbWeight::get().writes(3 as Weight))109			.saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))110	}111	// Storage: Refungible TotalSupply (r:1 w:1)112	// Storage: Refungible Balance (r:1 w:1)113	// Storage: Refungible AccountBalance (r:1 w:1)114	// Storage: Refungible Owned (r:0 w:1)115	fn burn_item_partial() -> Weight {116		(23_855_000 as Weight)117			.saturating_add(T::DbWeight::get().reads(3 as Weight))118			.saturating_add(T::DbWeight::get().writes(4 as Weight))119	}120	// Storage: Refungible TotalSupply (r:1 w:1)121	// Storage: Refungible Balance (r:1 w:1)122	// Storage: Refungible AccountBalance (r:1 w:1)123	// Storage: Refungible TokensBurnt (r:1 w:1)124	// Storage: Refungible TokenData (r:0 w:1)125	// Storage: Refungible Owned (r:0 w:1)126	fn burn_item_fully() -> Weight {127		(32_709_000 as Weight)128			.saturating_add(T::DbWeight::get().reads(4 as Weight))129			.saturating_add(T::DbWeight::get().writes(6 as Weight))130	}131	// Storage: Refungible Balance (r:2 w:2)132	fn transfer_normal() -> Weight {133		(20_001_000 as Weight)134			.saturating_add(T::DbWeight::get().reads(2 as Weight))135			.saturating_add(T::DbWeight::get().writes(2 as Weight))136	}137	// Storage: Refungible Balance (r:2 w:2)138	// Storage: Refungible AccountBalance (r:1 w:1)139	// Storage: Refungible Owned (r:0 w:1)140	fn transfer_creating() -> Weight {141		(23_807_000 as Weight)142			.saturating_add(T::DbWeight::get().reads(3 as Weight))143			.saturating_add(T::DbWeight::get().writes(4 as Weight))144	}145	// Storage: Refungible Balance (r:2 w:2)146	// Storage: Refungible AccountBalance (r:1 w:1)147	// Storage: Refungible Owned (r:0 w:1)148	fn transfer_removing() -> Weight {149		(25_250_000 as Weight)150			.saturating_add(T::DbWeight::get().reads(3 as Weight))151			.saturating_add(T::DbWeight::get().writes(4 as Weight))152	}153	// Storage: Refungible Balance (r:2 w:2)154	// Storage: Refungible AccountBalance (r:2 w:2)155	// Storage: Refungible Owned (r:0 w:2)156	fn transfer_creating_removing() -> Weight {157		(29_423_000 as Weight)158			.saturating_add(T::DbWeight::get().reads(4 as Weight))159			.saturating_add(T::DbWeight::get().writes(6 as Weight))160	}161	// Storage: Refungible Balance (r:1 w:0)162	// Storage: Refungible Allowance (r:0 w:1)163	fn approve() -> Weight {164		(16_546_000 as Weight)165			.saturating_add(T::DbWeight::get().reads(1 as Weight))166			.saturating_add(T::DbWeight::get().writes(1 as Weight))167	}168	// Storage: Refungible Allowance (r:1 w:1)169	// Storage: Refungible Balance (r:2 w:2)170	fn transfer_from_normal() -> Weight {171		(29_661_000 as Weight)172			.saturating_add(T::DbWeight::get().reads(3 as Weight))173			.saturating_add(T::DbWeight::get().writes(3 as Weight))174	}175	// Storage: Refungible Allowance (r:1 w:1)176	// Storage: Refungible Balance (r:2 w:2)177	// Storage: Refungible AccountBalance (r:1 w:1)178	// Storage: Refungible Owned (r:0 w:1)179	fn transfer_from_creating() -> Weight {180		(33_972_000 as Weight)181			.saturating_add(T::DbWeight::get().reads(4 as Weight))182			.saturating_add(T::DbWeight::get().writes(5 as Weight))183	}184	// Storage: Refungible Allowance (r:1 w:1)185	// Storage: Refungible Balance (r:2 w:2)186	// Storage: Refungible AccountBalance (r:1 w:1)187	// Storage: Refungible Owned (r:0 w:1)188	fn transfer_from_removing() -> Weight {189		(35_767_000 as Weight)190			.saturating_add(T::DbWeight::get().reads(4 as Weight))191			.saturating_add(T::DbWeight::get().writes(5 as Weight))192	}193	// Storage: Refungible Allowance (r:1 w:1)194	// Storage: Refungible Balance (r:2 w:2)195	// Storage: Refungible AccountBalance (r:2 w:2)196	// Storage: Refungible Owned (r:0 w:2)197	fn transfer_from_creating_removing() -> Weight {198		(38_449_000 as Weight)199			.saturating_add(T::DbWeight::get().reads(5 as Weight))200			.saturating_add(T::DbWeight::get().writes(7 as Weight))201	}202	// Storage: Refungible Allowance (r:1 w:1)203	// Storage: Refungible TotalSupply (r:1 w:1)204	// Storage: Refungible Balance (r:1 w:1)205	// Storage: Refungible AccountBalance (r:1 w:1)206	// Storage: Refungible TokensBurnt (r:1 w:1)207	// Storage: Refungible TokenData (r:0 w:1)208	// Storage: Refungible Owned (r:0 w:1)209	fn burn_from() -> Weight {210		(43_547_000 as Weight)211			.saturating_add(T::DbWeight::get().reads(5 as Weight))212			.saturating_add(T::DbWeight::get().writes(7 as Weight))213	}214	// Storage: Refungible TokenData (r:1 w:1)215	fn set_variable_metadata(_b: u32, ) -> Weight {216		(7_790_000 as Weight)217			.saturating_add(T::DbWeight::get().reads(1 as Weight))218			.saturating_add(T::DbWeight::get().writes(1 as Weight))219	}220}221222// For backwards compatibility and tests223impl WeightInfo for () {224	// Storage: Refungible TokensMinted (r:1 w:1)225	// Storage: Refungible AccountBalance (r:1 w:1)226	// Storage: Refungible Balance (r:0 w:1)227	// Storage: Refungible TotalSupply (r:0 w:1)228	// Storage: Refungible TokenData (r:0 w:1)229	// Storage: Refungible Owned (r:0 w:1)230	fn create_item() -> Weight {231		(21_227_000 as Weight)232			.saturating_add(RocksDbWeight::get().reads(2 as Weight))233			.saturating_add(RocksDbWeight::get().writes(6 as Weight))234	}235	// Storage: Refungible TokensMinted (r:1 w:1)236	// Storage: Refungible AccountBalance (r:1 w:1)237	// Storage: Refungible Balance (r:0 w:4)238	// Storage: Refungible TotalSupply (r:0 w:4)239	// Storage: Refungible TokenData (r:0 w:4)240	// Storage: Refungible Owned (r:0 w:4)241	fn create_multiple_items(b: u32, ) -> Weight {242		(25_932_000 as Weight)243			// Standard Error: 11_000244			.saturating_add((5_730_000 as Weight).saturating_mul(b as Weight))245			.saturating_add(RocksDbWeight::get().reads(2 as Weight))246			.saturating_add(RocksDbWeight::get().writes(2 as Weight))247			.saturating_add(RocksDbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))248	}249	// Storage: Refungible TokensMinted (r:1 w:1)250	// Storage: Refungible AccountBalance (r:4 w:4)251	// Storage: Refungible Balance (r:0 w:4)252	// Storage: Refungible TotalSupply (r:0 w:4)253	// Storage: Refungible TokenData (r:0 w:4)254	// Storage: Refungible Owned (r:0 w:4)255	fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {256		(18_884_000 as Weight)257			// Standard Error: 11_000258			.saturating_add((8_489_000 as Weight).saturating_mul(b as Weight))259			.saturating_add(RocksDbWeight::get().reads(1 as Weight))260			.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))261			.saturating_add(RocksDbWeight::get().writes(1 as Weight))262			.saturating_add(RocksDbWeight::get().writes((5 as Weight).saturating_mul(b as Weight)))263	}264	// Storage: Refungible TokensMinted (r:1 w:1)265	// Storage: Refungible TotalSupply (r:0 w:1)266	// Storage: Refungible TokenData (r:0 w:1)267	// Storage: Refungible AccountBalance (r:4 w:4)268	// Storage: Refungible Balance (r:0 w:4)269	// Storage: Refungible Owned (r:0 w:4)270	fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {271		(16_515_000 as Weight)272			// Standard Error: 9_000273			.saturating_add((6_428_000 as Weight).saturating_mul(b as Weight))274			.saturating_add(RocksDbWeight::get().reads(1 as Weight))275			.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))276			.saturating_add(RocksDbWeight::get().writes(3 as Weight))277			.saturating_add(RocksDbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))278	}279	// Storage: Refungible TotalSupply (r:1 w:1)280	// Storage: Refungible Balance (r:1 w:1)281	// Storage: Refungible AccountBalance (r:1 w:1)282	// Storage: Refungible Owned (r:0 w:1)283	fn burn_item_partial() -> Weight {284		(23_855_000 as Weight)285			.saturating_add(RocksDbWeight::get().reads(3 as Weight))286			.saturating_add(RocksDbWeight::get().writes(4 as Weight))287	}288	// Storage: Refungible TotalSupply (r:1 w:1)289	// Storage: Refungible Balance (r:1 w:1)290	// Storage: Refungible AccountBalance (r:1 w:1)291	// Storage: Refungible TokensBurnt (r:1 w:1)292	// Storage: Refungible TokenData (r:0 w:1)293	// Storage: Refungible Owned (r:0 w:1)294	fn burn_item_fully() -> Weight {295		(32_709_000 as Weight)296			.saturating_add(RocksDbWeight::get().reads(4 as Weight))297			.saturating_add(RocksDbWeight::get().writes(6 as Weight))298	}299	// Storage: Refungible Balance (r:2 w:2)300	fn transfer_normal() -> Weight {301		(20_001_000 as Weight)302			.saturating_add(RocksDbWeight::get().reads(2 as Weight))303			.saturating_add(RocksDbWeight::get().writes(2 as Weight))304	}305	// Storage: Refungible Balance (r:2 w:2)306	// Storage: Refungible AccountBalance (r:1 w:1)307	// Storage: Refungible Owned (r:0 w:1)308	fn transfer_creating() -> Weight {309		(23_807_000 as Weight)310			.saturating_add(RocksDbWeight::get().reads(3 as Weight))311			.saturating_add(RocksDbWeight::get().writes(4 as Weight))312	}313	// Storage: Refungible Balance (r:2 w:2)314	// Storage: Refungible AccountBalance (r:1 w:1)315	// Storage: Refungible Owned (r:0 w:1)316	fn transfer_removing() -> Weight {317		(25_250_000 as Weight)318			.saturating_add(RocksDbWeight::get().reads(3 as Weight))319			.saturating_add(RocksDbWeight::get().writes(4 as Weight))320	}321	// Storage: Refungible Balance (r:2 w:2)322	// Storage: Refungible AccountBalance (r:2 w:2)323	// Storage: Refungible Owned (r:0 w:2)324	fn transfer_creating_removing() -> Weight {325		(29_423_000 as Weight)326			.saturating_add(RocksDbWeight::get().reads(4 as Weight))327			.saturating_add(RocksDbWeight::get().writes(6 as Weight))328	}329	// Storage: Refungible Balance (r:1 w:0)330	// Storage: Refungible Allowance (r:0 w:1)331	fn approve() -> Weight {332		(16_546_000 as Weight)333			.saturating_add(RocksDbWeight::get().reads(1 as Weight))334			.saturating_add(RocksDbWeight::get().writes(1 as Weight))335	}336	// Storage: Refungible Allowance (r:1 w:1)337	// Storage: Refungible Balance (r:2 w:2)338	fn transfer_from_normal() -> Weight {339		(29_661_000 as Weight)340			.saturating_add(RocksDbWeight::get().reads(3 as Weight))341			.saturating_add(RocksDbWeight::get().writes(3 as Weight))342	}343	// Storage: Refungible Allowance (r:1 w:1)344	// Storage: Refungible Balance (r:2 w:2)345	// Storage: Refungible AccountBalance (r:1 w:1)346	// Storage: Refungible Owned (r:0 w:1)347	fn transfer_from_creating() -> Weight {348		(33_972_000 as Weight)349			.saturating_add(RocksDbWeight::get().reads(4 as Weight))350			.saturating_add(RocksDbWeight::get().writes(5 as Weight))351	}352	// Storage: Refungible Allowance (r:1 w:1)353	// Storage: Refungible Balance (r:2 w:2)354	// Storage: Refungible AccountBalance (r:1 w:1)355	// Storage: Refungible Owned (r:0 w:1)356	fn transfer_from_removing() -> Weight {357		(35_767_000 as Weight)358			.saturating_add(RocksDbWeight::get().reads(4 as Weight))359			.saturating_add(RocksDbWeight::get().writes(5 as Weight))360	}361	// Storage: Refungible Allowance (r:1 w:1)362	// Storage: Refungible Balance (r:2 w:2)363	// Storage: Refungible AccountBalance (r:2 w:2)364	// Storage: Refungible Owned (r:0 w:2)365	fn transfer_from_creating_removing() -> Weight {366		(38_449_000 as Weight)367			.saturating_add(RocksDbWeight::get().reads(5 as Weight))368			.saturating_add(RocksDbWeight::get().writes(7 as Weight))369	}370	// Storage: Refungible Allowance (r:1 w:1)371	// Storage: Refungible TotalSupply (r:1 w:1)372	// Storage: Refungible Balance (r:1 w:1)373	// Storage: Refungible AccountBalance (r:1 w:1)374	// Storage: Refungible TokensBurnt (r:1 w:1)375	// Storage: Refungible TokenData (r:0 w:1)376	// Storage: Refungible Owned (r:0 w:1)377	fn burn_from() -> Weight {378		(43_547_000 as Weight)379			.saturating_add(RocksDbWeight::get().reads(5 as Weight))380			.saturating_add(RocksDbWeight::get().writes(7 as Weight))381	}382	// Storage: Refungible TokenData (r:1 w:1)383	fn set_variable_metadata(_b: u32, ) -> Weight {384		(7_790_000 as Weight)385			.saturating_add(RocksDbWeight::get().reads(1 as Weight))386			.saturating_add(RocksDbWeight::get().writes(1 as Weight))387	}388}
after · pallets/refungible/src/weights.rs
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_refungible4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-03-01, STEPS: `50`, REPEAT: 20, 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-refungible14// --wasm-execution15// compiled16// --extrinsic17// *18// --template19// .maintain/frame-weight-template.hbs20// --steps=5021// --repeat=2022// --output=./pallets/refungible/src/weights.rs2324#![cfg_attr(rustfmt, rustfmt_skip)]25#![allow(unused_parens)]26#![allow(unused_imports)]27#![allow(clippy::unnecessary_cast)]2829use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};30use sp_std::marker::PhantomData;3132/// Weight functions needed for pallet_refungible.33pub trait WeightInfo {34	fn create_item() -> Weight;35	fn create_multiple_items(b: u32, ) -> Weight;36	fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight;37	fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight;38	fn burn_item_partial() -> Weight;39	fn burn_item_fully() -> Weight;40	fn transfer_normal() -> Weight;41	fn transfer_creating() -> Weight;42	fn transfer_removing() -> Weight;43	fn transfer_creating_removing() -> Weight;44	fn approve() -> Weight;45	fn transfer_from_normal() -> Weight;46	fn transfer_from_creating() -> Weight;47	fn transfer_from_removing() -> Weight;48	fn transfer_from_creating_removing() -> Weight;49	fn burn_from() -> Weight;50	fn set_variable_metadata(b: u32, ) -> Weight;51}5253/// Weights for pallet_refungible using the Substrate node and recommended hardware.54pub struct SubstrateWeight<T>(PhantomData<T>);55impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {56	// Storage: Refungible TokensMinted (r:1 w:1)57	// Storage: Refungible AccountBalance (r:1 w:1)58	// Storage: Refungible Balance (r:0 w:1)59	// Storage: Refungible TotalSupply (r:0 w:1)60	// Storage: Refungible TokenData (r:0 w:1)61	// Storage: Refungible Owned (r:0 w:1)62	fn create_item() -> Weight {63		(21_122_000 as Weight)64			.saturating_add(T::DbWeight::get().reads(2 as Weight))65			.saturating_add(T::DbWeight::get().writes(6 as Weight))66	}67	// Storage: Refungible TokensMinted (r:1 w:1)68	// Storage: Refungible AccountBalance (r:1 w:1)69	// Storage: Refungible Balance (r:0 w:4)70	// Storage: Refungible TotalSupply (r:0 w:4)71	// Storage: Refungible TokenData (r:0 w:4)72	// Storage: Refungible Owned (r:0 w:4)73	fn create_multiple_items(b: u32, ) -> Weight {74		(21_553_000 as Weight)75			// Standard Error: 10_00076			.saturating_add((5_768_000 as Weight).saturating_mul(b as Weight))77			.saturating_add(T::DbWeight::get().reads(2 as Weight))78			.saturating_add(T::DbWeight::get().writes(2 as Weight))79			.saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))80	}81	// Storage: Refungible TokensMinted (r:1 w:1)82	// Storage: Refungible AccountBalance (r:4 w:4)83	// Storage: Refungible Balance (r:0 w:4)84	// Storage: Refungible TotalSupply (r:0 w:4)85	// Storage: Refungible TokenData (r:0 w:4)86	// Storage: Refungible Owned (r:0 w:4)87	fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {88		(24_715_000 as Weight)89			// Standard Error: 15_00090			.saturating_add((8_456_000 as Weight).saturating_mul(b as Weight))91			.saturating_add(T::DbWeight::get().reads(1 as Weight))92			.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))93			.saturating_add(T::DbWeight::get().writes(1 as Weight))94			.saturating_add(T::DbWeight::get().writes((5 as Weight).saturating_mul(b as Weight)))95	}96	// Storage: Refungible TokensMinted (r:1 w:1)97	// Storage: Refungible TotalSupply (r:0 w:1)98	// Storage: Refungible TokenData (r:0 w:1)99	// Storage: Refungible AccountBalance (r:4 w:4)100	// Storage: Refungible Balance (r:0 w:4)101	// Storage: Refungible Owned (r:0 w:4)102	fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {103		(14_998_000 as Weight)104			// Standard Error: 6_000105			.saturating_add((6_380_000 as Weight).saturating_mul(b as Weight))106			.saturating_add(T::DbWeight::get().reads(1 as Weight))107			.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))108			.saturating_add(T::DbWeight::get().writes(3 as Weight))109			.saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))110	}111	// Storage: Refungible TotalSupply (r:1 w:1)112	// Storage: Refungible Balance (r:1 w:1)113	// Storage: Refungible AccountBalance (r:1 w:1)114	// Storage: Refungible Owned (r:0 w:1)115	fn burn_item_partial() -> Weight {116		(23_945_000 as Weight)117			.saturating_add(T::DbWeight::get().reads(3 as Weight))118			.saturating_add(T::DbWeight::get().writes(4 as Weight))119	}120	// Storage: Refungible TotalSupply (r:1 w:1)121	// Storage: Refungible Balance (r:1 w:1)122	// Storage: Refungible AccountBalance (r:1 w:1)123	// Storage: Refungible TokensBurnt (r:1 w:1)124	// Storage: Refungible TokenData (r:0 w:1)125	// Storage: Refungible Owned (r:0 w:1)126	fn burn_item_fully() -> Weight {127		(33_347_000 as Weight)128			.saturating_add(T::DbWeight::get().reads(4 as Weight))129			.saturating_add(T::DbWeight::get().writes(6 as Weight))130	}131	// Storage: Refungible Balance (r:2 w:2)132	fn transfer_normal() -> Weight {133		(20_780_000 as Weight)134			.saturating_add(T::DbWeight::get().reads(2 as Weight))135			.saturating_add(T::DbWeight::get().writes(2 as Weight))136	}137	// Storage: Refungible Balance (r:2 w:2)138	// Storage: Refungible AccountBalance (r:1 w:1)139	// Storage: Refungible Owned (r:0 w:1)140	fn transfer_creating() -> Weight {141		(24_135_000 as Weight)142			.saturating_add(T::DbWeight::get().reads(3 as Weight))143			.saturating_add(T::DbWeight::get().writes(4 as Weight))144	}145	// Storage: Refungible Balance (r:2 w:2)146	// Storage: Refungible AccountBalance (r:1 w:1)147	// Storage: Refungible Owned (r:0 w:1)148	fn transfer_removing() -> Weight {149		(26_275_000 as Weight)150			.saturating_add(T::DbWeight::get().reads(3 as Weight))151			.saturating_add(T::DbWeight::get().writes(4 as Weight))152	}153	// Storage: Refungible Balance (r:2 w:2)154	// Storage: Refungible AccountBalance (r:2 w:2)155	// Storage: Refungible Owned (r:0 w:2)156	fn transfer_creating_removing() -> Weight {157		(29_151_000 as Weight)158			.saturating_add(T::DbWeight::get().reads(4 as Weight))159			.saturating_add(T::DbWeight::get().writes(6 as Weight))160	}161	// Storage: Refungible Balance (r:1 w:0)162	// Storage: Refungible Allowance (r:0 w:1)163	fn approve() -> Weight {164		(16_309_000 as Weight)165			.saturating_add(T::DbWeight::get().reads(1 as Weight))166			.saturating_add(T::DbWeight::get().writes(1 as Weight))167	}168	// Storage: Refungible Allowance (r:1 w:1)169	// Storage: Refungible Balance (r:2 w:2)170	fn transfer_from_normal() -> Weight {171		(29_193_000 as Weight)172			.saturating_add(T::DbWeight::get().reads(3 as Weight))173			.saturating_add(T::DbWeight::get().writes(3 as Weight))174	}175	// Storage: Refungible Allowance (r:1 w:1)176	// Storage: Refungible Balance (r:2 w:2)177	// Storage: Refungible AccountBalance (r:1 w:1)178	// Storage: Refungible Owned (r:0 w:1)179	fn transfer_from_creating() -> Weight {180		(33_671_000 as Weight)181			.saturating_add(T::DbWeight::get().reads(4 as Weight))182			.saturating_add(T::DbWeight::get().writes(5 as Weight))183	}184	// Storage: Refungible Allowance (r:1 w:1)185	// Storage: Refungible Balance (r:2 w:2)186	// Storage: Refungible AccountBalance (r:1 w:1)187	// Storage: Refungible Owned (r:0 w:1)188	fn transfer_from_removing() -> Weight {189		(35_638_000 as Weight)190			.saturating_add(T::DbWeight::get().reads(4 as Weight))191			.saturating_add(T::DbWeight::get().writes(5 as Weight))192	}193	// Storage: Refungible Allowance (r:1 w:1)194	// Storage: Refungible Balance (r:2 w:2)195	// Storage: Refungible AccountBalance (r:2 w:2)196	// Storage: Refungible Owned (r:0 w:2)197	fn transfer_from_creating_removing() -> Weight {198		(38_359_000 as Weight)199			.saturating_add(T::DbWeight::get().reads(5 as Weight))200			.saturating_add(T::DbWeight::get().writes(7 as Weight))201	}202	// Storage: Refungible Allowance (r:1 w:1)203	// Storage: Refungible TotalSupply (r:1 w:1)204	// Storage: Refungible Balance (r:1 w:1)205	// Storage: Refungible AccountBalance (r:1 w:1)206	// Storage: Refungible TokensBurnt (r:1 w:1)207	// Storage: Refungible TokenData (r:0 w:1)208	// Storage: Refungible Owned (r:0 w:1)209	fn burn_from() -> Weight {210		(42_912_000 as Weight)211			.saturating_add(T::DbWeight::get().reads(5 as Weight))212			.saturating_add(T::DbWeight::get().writes(7 as Weight))213	}214	// Storage: Refungible TokenData (r:1 w:1)215	fn set_variable_metadata(_b: u32, ) -> Weight {216		(7_725_000 as Weight)217			.saturating_add(T::DbWeight::get().reads(1 as Weight))218			.saturating_add(T::DbWeight::get().writes(1 as Weight))219	}220}221222// For backwards compatibility and tests223impl WeightInfo for () {224	// Storage: Refungible TokensMinted (r:1 w:1)225	// Storage: Refungible AccountBalance (r:1 w:1)226	// Storage: Refungible Balance (r:0 w:1)227	// Storage: Refungible TotalSupply (r:0 w:1)228	// Storage: Refungible TokenData (r:0 w:1)229	// Storage: Refungible Owned (r:0 w:1)230	fn create_item() -> Weight {231		(21_122_000 as Weight)232			.saturating_add(RocksDbWeight::get().reads(2 as Weight))233			.saturating_add(RocksDbWeight::get().writes(6 as Weight))234	}235	// Storage: Refungible TokensMinted (r:1 w:1)236	// Storage: Refungible AccountBalance (r:1 w:1)237	// Storage: Refungible Balance (r:0 w:4)238	// Storage: Refungible TotalSupply (r:0 w:4)239	// Storage: Refungible TokenData (r:0 w:4)240	// Storage: Refungible Owned (r:0 w:4)241	fn create_multiple_items(b: u32, ) -> Weight {242		(21_553_000 as Weight)243			// Standard Error: 10_000244			.saturating_add((5_768_000 as Weight).saturating_mul(b as Weight))245			.saturating_add(RocksDbWeight::get().reads(2 as Weight))246			.saturating_add(RocksDbWeight::get().writes(2 as Weight))247			.saturating_add(RocksDbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))248	}249	// Storage: Refungible TokensMinted (r:1 w:1)250	// Storage: Refungible AccountBalance (r:4 w:4)251	// Storage: Refungible Balance (r:0 w:4)252	// Storage: Refungible TotalSupply (r:0 w:4)253	// Storage: Refungible TokenData (r:0 w:4)254	// Storage: Refungible Owned (r:0 w:4)255	fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {256		(24_715_000 as Weight)257			// Standard Error: 15_000258			.saturating_add((8_456_000 as Weight).saturating_mul(b as Weight))259			.saturating_add(RocksDbWeight::get().reads(1 as Weight))260			.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))261			.saturating_add(RocksDbWeight::get().writes(1 as Weight))262			.saturating_add(RocksDbWeight::get().writes((5 as Weight).saturating_mul(b as Weight)))263	}264	// Storage: Refungible TokensMinted (r:1 w:1)265	// Storage: Refungible TotalSupply (r:0 w:1)266	// Storage: Refungible TokenData (r:0 w:1)267	// Storage: Refungible AccountBalance (r:4 w:4)268	// Storage: Refungible Balance (r:0 w:4)269	// Storage: Refungible Owned (r:0 w:4)270	fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {271		(14_998_000 as Weight)272			// Standard Error: 6_000273			.saturating_add((6_380_000 as Weight).saturating_mul(b as Weight))274			.saturating_add(RocksDbWeight::get().reads(1 as Weight))275			.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))276			.saturating_add(RocksDbWeight::get().writes(3 as Weight))277			.saturating_add(RocksDbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))278	}279	// Storage: Refungible TotalSupply (r:1 w:1)280	// Storage: Refungible Balance (r:1 w:1)281	// Storage: Refungible AccountBalance (r:1 w:1)282	// Storage: Refungible Owned (r:0 w:1)283	fn burn_item_partial() -> Weight {284		(23_945_000 as Weight)285			.saturating_add(RocksDbWeight::get().reads(3 as Weight))286			.saturating_add(RocksDbWeight::get().writes(4 as Weight))287	}288	// Storage: Refungible TotalSupply (r:1 w:1)289	// Storage: Refungible Balance (r:1 w:1)290	// Storage: Refungible AccountBalance (r:1 w:1)291	// Storage: Refungible TokensBurnt (r:1 w:1)292	// Storage: Refungible TokenData (r:0 w:1)293	// Storage: Refungible Owned (r:0 w:1)294	fn burn_item_fully() -> Weight {295		(33_347_000 as Weight)296			.saturating_add(RocksDbWeight::get().reads(4 as Weight))297			.saturating_add(RocksDbWeight::get().writes(6 as Weight))298	}299	// Storage: Refungible Balance (r:2 w:2)300	fn transfer_normal() -> Weight {301		(20_780_000 as Weight)302			.saturating_add(RocksDbWeight::get().reads(2 as Weight))303			.saturating_add(RocksDbWeight::get().writes(2 as Weight))304	}305	// Storage: Refungible Balance (r:2 w:2)306	// Storage: Refungible AccountBalance (r:1 w:1)307	// Storage: Refungible Owned (r:0 w:1)308	fn transfer_creating() -> Weight {309		(24_135_000 as Weight)310			.saturating_add(RocksDbWeight::get().reads(3 as Weight))311			.saturating_add(RocksDbWeight::get().writes(4 as Weight))312	}313	// Storage: Refungible Balance (r:2 w:2)314	// Storage: Refungible AccountBalance (r:1 w:1)315	// Storage: Refungible Owned (r:0 w:1)316	fn transfer_removing() -> Weight {317		(26_275_000 as Weight)318			.saturating_add(RocksDbWeight::get().reads(3 as Weight))319			.saturating_add(RocksDbWeight::get().writes(4 as Weight))320	}321	// Storage: Refungible Balance (r:2 w:2)322	// Storage: Refungible AccountBalance (r:2 w:2)323	// Storage: Refungible Owned (r:0 w:2)324	fn transfer_creating_removing() -> Weight {325		(29_151_000 as Weight)326			.saturating_add(RocksDbWeight::get().reads(4 as Weight))327			.saturating_add(RocksDbWeight::get().writes(6 as Weight))328	}329	// Storage: Refungible Balance (r:1 w:0)330	// Storage: Refungible Allowance (r:0 w:1)331	fn approve() -> Weight {332		(16_309_000 as Weight)333			.saturating_add(RocksDbWeight::get().reads(1 as Weight))334			.saturating_add(RocksDbWeight::get().writes(1 as Weight))335	}336	// Storage: Refungible Allowance (r:1 w:1)337	// Storage: Refungible Balance (r:2 w:2)338	fn transfer_from_normal() -> Weight {339		(29_193_000 as Weight)340			.saturating_add(RocksDbWeight::get().reads(3 as Weight))341			.saturating_add(RocksDbWeight::get().writes(3 as Weight))342	}343	// Storage: Refungible Allowance (r:1 w:1)344	// Storage: Refungible Balance (r:2 w:2)345	// Storage: Refungible AccountBalance (r:1 w:1)346	// Storage: Refungible Owned (r:0 w:1)347	fn transfer_from_creating() -> Weight {348		(33_671_000 as Weight)349			.saturating_add(RocksDbWeight::get().reads(4 as Weight))350			.saturating_add(RocksDbWeight::get().writes(5 as Weight))351	}352	// Storage: Refungible Allowance (r:1 w:1)353	// Storage: Refungible Balance (r:2 w:2)354	// Storage: Refungible AccountBalance (r:1 w:1)355	// Storage: Refungible Owned (r:0 w:1)356	fn transfer_from_removing() -> Weight {357		(35_638_000 as Weight)358			.saturating_add(RocksDbWeight::get().reads(4 as Weight))359			.saturating_add(RocksDbWeight::get().writes(5 as Weight))360	}361	// Storage: Refungible Allowance (r:1 w:1)362	// Storage: Refungible Balance (r:2 w:2)363	// Storage: Refungible AccountBalance (r:2 w:2)364	// Storage: Refungible Owned (r:0 w:2)365	fn transfer_from_creating_removing() -> Weight {366		(38_359_000 as Weight)367			.saturating_add(RocksDbWeight::get().reads(5 as Weight))368			.saturating_add(RocksDbWeight::get().writes(7 as Weight))369	}370	// Storage: Refungible Allowance (r:1 w:1)371	// Storage: Refungible TotalSupply (r:1 w:1)372	// Storage: Refungible Balance (r:1 w:1)373	// Storage: Refungible AccountBalance (r:1 w:1)374	// Storage: Refungible TokensBurnt (r:1 w:1)375	// Storage: Refungible TokenData (r:0 w:1)376	// Storage: Refungible Owned (r:0 w:1)377	fn burn_from() -> Weight {378		(42_912_000 as Weight)379			.saturating_add(RocksDbWeight::get().reads(5 as Weight))380			.saturating_add(RocksDbWeight::get().writes(7 as Weight))381	}382	// Storage: Refungible TokenData (r:1 w:1)383	fn set_variable_metadata(_b: u32, ) -> Weight {384		(7_725_000 as Weight)385			.saturating_add(RocksDbWeight::get().reads(1 as Weight))386			.saturating_add(RocksDbWeight::get().writes(1 as Weight))387	}388}
modifiedpallets/unique/src/weights.rsdiffbeforeafterboth
--- a/pallets/unique/src/weights.rs
+++ b/pallets/unique/src/weights.rs
@@ -60,7 +60,7 @@
 	// Storage: System Account (r:2 w:2)
 	// Storage: Common CollectionById (r:0 w:1)
 	fn create_collection() -> Weight {
-		(29_550_000 as Weight)
+		(28_864_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(4 as Weight))
 			.saturating_add(T::DbWeight::get().writes(4 as Weight))
 	}
@@ -70,39 +70,39 @@
 	// Storage: Nonfungible TokensBurnt (r:0 w:1)
 	// Storage: Common AdminAmount (r:0 w:1)
 	fn destroy_collection() -> Weight {
-		(40_838_000 as Weight)
+		(39_196_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(2 as Weight))
 			.saturating_add(T::DbWeight::get().writes(5 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:0)
 	// Storage: Common Allowlist (r:0 w:1)
 	fn add_to_allow_list() -> Weight {
-		(15_331_000 as Weight)
+		(15_161_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:0)
 	// Storage: Common Allowlist (r:0 w:1)
 	fn remove_from_allow_list() -> Weight {
-		(16_706_000 as Weight)
+		(17_224_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_public_access_mode() -> Weight {
-		(16_189_000 as Weight)
+		(14_557_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_mint_permission() -> Weight {
-		(16_072_000 as Weight)
+		(14_835_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn change_collection_owner() -> Weight {
-		(14_929_000 as Weight)
+		(15_587_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
@@ -110,7 +110,7 @@
 	// Storage: Common IsAdmin (r:1 w:1)
 	// Storage: Common AdminAmount (r:1 w:1)
 	fn add_collection_admin() -> Weight {
-		(19_262_000 as Weight)
+		(24_447_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(3 as Weight))
 			.saturating_add(T::DbWeight::get().writes(2 as Weight))
 	}
@@ -118,67 +118,67 @@
 	// Storage: Common IsAdmin (r:1 w:1)
 	// Storage: Common AdminAmount (r:1 w:1)
 	fn remove_collection_admin() -> Weight {
-		(21_024_000 as Weight)
+		(22_141_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(3 as Weight))
 			.saturating_add(T::DbWeight::get().writes(2 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_collection_sponsor() -> Weight {
-		(15_600_000 as Weight)
+		(15_407_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn confirm_sponsorship() -> Weight {
-		(15_153_000 as Weight)
+		(14_939_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn remove_collection_sponsor() -> Weight {
-		(14_929_000 as Weight)
+		(14_504_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_transfers_enabled_flag() -> Weight {
-		(7_856_000 as Weight)
+		(7_218_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_offchain_schema(_b: u32, ) -> Weight {
-		(15_790_000 as Weight)
+		(15_040_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_const_on_chain_schema(_b: u32, ) -> Weight {
-		(15_775_000 as Weight)
+		(14_932_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_variable_on_chain_schema(_b: u32, ) -> Weight {
-		(15_788_000 as Weight)
+		(15_291_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_schema_version() -> Weight {
-		(15_148_000 as Weight)
+		(14_725_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_collection_limits() -> Weight {
-		(15_811_000 as Weight)
+		(15_222_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_meta_update_permission_flag() -> Weight {
-		(7_663_000 as Weight)
+		(7_270_000 as Weight)
 			.saturating_add(T::DbWeight::get().reads(1 as Weight))
 			.saturating_add(T::DbWeight::get().writes(1 as Weight))
 	}
@@ -191,7 +191,7 @@
 	// Storage: System Account (r:2 w:2)
 	// Storage: Common CollectionById (r:0 w:1)
 	fn create_collection() -> Weight {
-		(29_550_000 as Weight)
+		(28_864_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(4 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(4 as Weight))
 	}
@@ -201,39 +201,39 @@
 	// Storage: Nonfungible TokensBurnt (r:0 w:1)
 	// Storage: Common AdminAmount (r:0 w:1)
 	fn destroy_collection() -> Weight {
-		(40_838_000 as Weight)
+		(39_196_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(2 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(5 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:0)
 	// Storage: Common Allowlist (r:0 w:1)
 	fn add_to_allow_list() -> Weight {
-		(15_331_000 as Weight)
+		(15_161_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:0)
 	// Storage: Common Allowlist (r:0 w:1)
 	fn remove_from_allow_list() -> Weight {
-		(16_706_000 as Weight)
+		(17_224_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_public_access_mode() -> Weight {
-		(16_189_000 as Weight)
+		(14_557_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_mint_permission() -> Weight {
-		(16_072_000 as Weight)
+		(14_835_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn change_collection_owner() -> Weight {
-		(14_929_000 as Weight)
+		(15_587_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
@@ -241,7 +241,7 @@
 	// Storage: Common IsAdmin (r:1 w:1)
 	// Storage: Common AdminAmount (r:1 w:1)
 	fn add_collection_admin() -> Weight {
-		(19_262_000 as Weight)
+		(24_447_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(3 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(2 as Weight))
 	}
@@ -249,67 +249,67 @@
 	// Storage: Common IsAdmin (r:1 w:1)
 	// Storage: Common AdminAmount (r:1 w:1)
 	fn remove_collection_admin() -> Weight {
-		(21_024_000 as Weight)
+		(22_141_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(3 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(2 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_collection_sponsor() -> Weight {
-		(15_600_000 as Weight)
+		(15_407_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn confirm_sponsorship() -> Weight {
-		(15_153_000 as Weight)
+		(14_939_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn remove_collection_sponsor() -> Weight {
-		(14_929_000 as Weight)
+		(14_504_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_transfers_enabled_flag() -> Weight {
-		(7_856_000 as Weight)
+		(7_218_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_offchain_schema(_b: u32, ) -> Weight {
-		(15_790_000 as Weight)
+		(15_040_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_const_on_chain_schema(_b: u32, ) -> Weight {
-		(15_775_000 as Weight)
+		(14_932_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_variable_on_chain_schema(_b: u32, ) -> Weight {
-		(15_788_000 as Weight)
+		(15_291_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_schema_version() -> Weight {
-		(15_148_000 as Weight)
+		(14_725_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_collection_limits() -> Weight {
-		(15_811_000 as Weight)
+		(15_222_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}
 	// Storage: Common CollectionById (r:1 w:1)
 	fn set_meta_update_permission_flag() -> Weight {
-		(7_663_000 as Weight)
+		(7_270_000 as Weight)
 			.saturating_add(RocksDbWeight::get().reads(1 as Weight))
 			.saturating_add(RocksDbWeight::get().writes(1 as Weight))
 	}