difftreelog
bench weights
in: master
5 files changed
pallets/evm-migration/src/weights.rsdiffbeforeafterboth--- a/pallets/evm-migration/src/weights.rs
+++ b/pallets/evm-migration/src/weights.rs
@@ -2,9 +2,9 @@
//! Autogenerated weights for pallet_evm_migration
//!
-//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
-//! DATE: 2021-08-12, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
-//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 128
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
+//! DATE: 2022-03-01, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
// target/release/unique-collator
@@ -20,7 +20,6 @@
// --steps=50
// --repeat=20
// --output=./pallets/evm-migration/src/weights.rs
-
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -40,20 +39,29 @@
/// Weights for pallet_evm_migration using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
+ // Storage: EvmMigration MigrationPending (r:1 w:1)
+ // Storage: System Account (r:1 w:0)
+ // Storage: EVM AccountCodes (r:1 w:0)
fn begin() -> Weight {
- (6_210_000 as Weight)
+ (6_918_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 {
- (2_926_000 as Weight)
- // Standard Error: 4_000
- .saturating_add((649_000 as Weight).saturating_mul(b as Weight))
+ (3_048_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((1_047_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)))
}
- fn finish(_b: u32, ) -> Weight {
- (4_309_000 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))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
@@ -61,21 +69,30 @@
// For backwards compatibility and tests
impl WeightInfo for () {
+ // Storage: EvmMigration MigrationPending (r:1 w:1)
+ // Storage: System Account (r:1 w:0)
+ // Storage: EVM AccountCodes (r:1 w:0)
fn begin() -> Weight {
- (6_210_000 as Weight)
+ (6_918_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 {
- (2_926_000 as Weight)
- // Standard Error: 4_000
- .saturating_add((649_000 as Weight).saturating_mul(b as Weight))
+ (3_048_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((1_047_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)))
}
- fn finish(_b: u32, ) -> Weight {
- (4_309_000 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))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
-}
\ No newline at end of file
+}
pallets/fungible/src/weights.rsdiffbeforeafterboth--- a/pallets/fungible/src/weights.rs
+++ b/pallets/fungible/src/weights.rs
@@ -3,8 +3,8 @@
//! Autogenerated weights for pallet_fungible
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2021-10-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
-//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 128
+//! DATE: 2022-03-01, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
// target/release/unique-collator
@@ -21,7 +21,6 @@
// --repeat=20
// --output=./pallets/fungible/src/weights.rs
-
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
@@ -44,19 +43,19 @@
/// Weights for pallet_fungible using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
+ // Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
- // Storage: Fungible TotalSupply (r:0 w:1)
fn create_item() -> Weight {
- (12_069_000 as Weight)
- .saturating_add(T::DbWeight::get().reads(1 as Weight))
+ (15_284_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 {
- (1_055_000 as Weight)
- // Standard Error: 22_000
- .saturating_add((5_273_000 as Weight).saturating_mul(b as Weight))
+ (15_044_000 as Weight)
+ // Standard Error: 5_000
+ .saturating_add((4_005_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))
@@ -65,27 +64,27 @@
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
fn burn_item() -> Weight {
- (14_096_000 as Weight)
+ (16_814_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 {
- (15_436_000 as Weight)
+ (18_463_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 {
- (12_867_000 as Weight)
+ (15_445_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 {
- (21_462_000 as Weight)
+ (26_265_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
@@ -93,7 +92,7 @@
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
fn burn_from() -> Weight {
- (55_874_000 as Weight)
+ (25_053_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
@@ -101,19 +100,19 @@
// For backwards compatibility and tests
impl WeightInfo for () {
+ // Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
- // Storage: Fungible TotalSupply (r:0 w:1)
fn create_item() -> Weight {
- (12_069_000 as Weight)
- .saturating_add(RocksDbWeight::get().reads(1 as Weight))
+ (15_284_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 {
- (1_055_000 as Weight)
- // Standard Error: 22_000
- .saturating_add((5_273_000 as Weight).saturating_mul(b as Weight))
+ (15_044_000 as Weight)
+ // Standard Error: 5_000
+ .saturating_add((4_005_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))
@@ -122,27 +121,27 @@
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
fn burn_item() -> Weight {
- (14_096_000 as Weight)
+ (16_814_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 {
- (15_436_000 as Weight)
+ (18_463_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 {
- (12_867_000 as Weight)
+ (15_445_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 {
- (21_462_000 as Weight)
+ (26_265_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
@@ -150,7 +149,7 @@
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
fn burn_from() -> Weight {
- (55_874_000 as Weight)
+ (25_053_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
pallets/nonfungible/src/weights.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/weights.rs
+++ b/pallets/nonfungible/src/weights.rs
@@ -3,8 +3,8 @@
//! Autogenerated weights for pallet_nonfungible
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2021-10-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
-//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 128
+//! DATE: 2022-03-01, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
// target/release/unique-collator
@@ -20,7 +20,6 @@
// --steps=50
// --repeat=20
// --output=./pallets/nonfungible/src/weights.rs
-
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -51,7 +50,7 @@
// Storage: Nonfungible TokenData (r:0 w:1)
// Storage: Nonfungible Owned (r:0 w:1)
fn create_item() -> Weight {
- (16_902_000 as Weight)
+ (18_527_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
@@ -60,9 +59,9 @@
// Storage: Nonfungible TokenData (r:0 w:4)
// Storage: Nonfungible Owned (r:0 w:4)
fn create_multiple_items(b: u32, ) -> Weight {
- (15_860_000 as Weight)
- // Standard Error: 5_000
- .saturating_add((3_916_000 as Weight).saturating_mul(b as Weight))
+ (18_877_000 as Weight)
+ // Standard Error: 6_000
+ .saturating_add((4_471_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)))
@@ -72,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 {
- (2_090_000 as Weight)
- // Standard Error: 10_000
- .saturating_add((9_230_000 as Weight).saturating_mul(b as Weight))
+ (10_556_000 as Weight)
+ // Standard Error: 14_000
+ .saturating_add((7_291_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))
@@ -82,26 +81,27 @@
}
// Storage: Nonfungible TokenData (r:1 w:1)
// Storage: Nonfungible TokensBurnt (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
// Storage: Nonfungible Allowance (r:1 w:0)
// Storage: Nonfungible Owned (r:0 w:1)
fn burn_item() -> Weight {
- (17_966_000 as Weight)
- .saturating_add(T::DbWeight::get().reads(3 as Weight))
- .saturating_add(T::DbWeight::get().writes(3 as Weight))
+ (24_402_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes(4 as Weight))
}
// Storage: Nonfungible TokenData (r:1 w:1)
// Storage: Nonfungible AccountBalance (r:2 w:2)
// Storage: Nonfungible Allowance (r:1 w:0)
// Storage: Nonfungible Owned (r:0 w:2)
fn transfer() -> Weight {
- (23_886_000 as Weight)
+ (27_992_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 {
- (14_697_000 as Weight)
+ (17_838_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
@@ -110,22 +110,23 @@
// Storage: Nonfungible AccountBalance (r:2 w:2)
// Storage: Nonfungible Owned (r:0 w:2)
fn transfer_from() -> Weight {
- (28_001_000 as Weight)
+ (32_410_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(6 as Weight))
}
// Storage: Nonfungible Allowance (r:1 w:1)
// Storage: Nonfungible TokenData (r:1 w:1)
// Storage: Nonfungible TokensBurnt (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
// Storage: Nonfungible Owned (r:0 w:1)
fn burn_from() -> Weight {
- (53_429_000 as Weight)
- .saturating_add(T::DbWeight::get().reads(3 as Weight))
- .saturating_add(T::DbWeight::get().writes(4 as Weight))
+ (28_496_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 {
- (6_380_000 as Weight)
+ (8_272_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
@@ -138,7 +139,7 @@
// Storage: Nonfungible TokenData (r:0 w:1)
// Storage: Nonfungible Owned (r:0 w:1)
fn create_item() -> Weight {
- (16_902_000 as Weight)
+ (18_527_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
@@ -147,9 +148,9 @@
// Storage: Nonfungible TokenData (r:0 w:4)
// Storage: Nonfungible Owned (r:0 w:4)
fn create_multiple_items(b: u32, ) -> Weight {
- (15_860_000 as Weight)
- // Standard Error: 5_000
- .saturating_add((3_916_000 as Weight).saturating_mul(b as Weight))
+ (18_877_000 as Weight)
+ // Standard Error: 6_000
+ .saturating_add((4_471_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)))
@@ -159,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 {
- (2_090_000 as Weight)
- // Standard Error: 10_000
- .saturating_add((9_230_000 as Weight).saturating_mul(b as Weight))
+ (10_556_000 as Weight)
+ // Standard Error: 14_000
+ .saturating_add((7_291_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))
@@ -169,26 +170,27 @@
}
// Storage: Nonfungible TokenData (r:1 w:1)
// Storage: Nonfungible TokensBurnt (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
// Storage: Nonfungible Allowance (r:1 w:0)
// Storage: Nonfungible Owned (r:0 w:1)
fn burn_item() -> Weight {
- (17_966_000 as Weight)
- .saturating_add(RocksDbWeight::get().reads(3 as Weight))
- .saturating_add(RocksDbWeight::get().writes(3 as Weight))
+ (24_402_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
// Storage: Nonfungible TokenData (r:1 w:1)
// Storage: Nonfungible AccountBalance (r:2 w:2)
// Storage: Nonfungible Allowance (r:1 w:0)
// Storage: Nonfungible Owned (r:0 w:2)
fn transfer() -> Weight {
- (23_886_000 as Weight)
+ (27_992_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 {
- (14_697_000 as Weight)
+ (17_838_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
@@ -197,22 +199,23 @@
// Storage: Nonfungible AccountBalance (r:2 w:2)
// Storage: Nonfungible Owned (r:0 w:2)
fn transfer_from() -> Weight {
- (28_001_000 as Weight)
+ (32_410_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
}
// Storage: Nonfungible Allowance (r:1 w:1)
// Storage: Nonfungible TokenData (r:1 w:1)
// Storage: Nonfungible TokensBurnt (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
// Storage: Nonfungible Owned (r:0 w:1)
fn burn_from() -> Weight {
- (53_429_000 as Weight)
- .saturating_add(RocksDbWeight::get().reads(3 as Weight))
- .saturating_add(RocksDbWeight::get().writes(4 as Weight))
+ (28_496_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 {
- (6_380_000 as Weight)
+ (8_272_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
pallets/refungible/src/weights.rsdiffbeforeafterboth--- a/pallets/refungible/src/weights.rs
+++ b/pallets/refungible/src/weights.rs
@@ -3,8 +3,8 @@
//! Autogenerated weights for pallet_refungible
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2021-10-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
-//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 128
+//! DATE: 2022-03-01, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
// target/release/unique-collator
@@ -21,7 +21,6 @@
// --repeat=20
// --output=./pallets/refungible/src/weights.rs
-
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
@@ -61,7 +60,7 @@
// Storage: Refungible TokenData (r:0 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn create_item() -> Weight {
- (18_681_000 as Weight)
+ (21_227_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(6 as Weight))
}
@@ -72,9 +71,9 @@
// Storage: Refungible TokenData (r:0 w:4)
// Storage: Refungible Owned (r:0 w:4)
fn create_multiple_items(b: u32, ) -> Weight {
- (13_869_000 as Weight)
- // Standard Error: 28_000
- .saturating_add((5_611_000 as Weight).saturating_mul(b as Weight))
+ (25_932_000 as Weight)
+ // Standard Error: 11_000
+ .saturating_add((5_730_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((4 as Weight).saturating_mul(b as Weight)))
@@ -86,9 +85,9 @@
// Storage: Refungible TokenData (r:0 w:4)
// Storage: Refungible Owned (r:0 w:4)
fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {
- (11_953_000 as Weight)
- // Standard Error: 27_000
- .saturating_add((10_775_000 as Weight).saturating_mul(b as Weight))
+ (18_884_000 as Weight)
+ // Standard Error: 11_000
+ .saturating_add((8_489_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))
@@ -101,9 +100,9 @@
// Storage: Refungible Balance (r:0 w:4)
// Storage: Refungible Owned (r:0 w:4)
fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {
- (0 as Weight)
- // Standard Error: 13_000
- .saturating_add((8_528_000 as Weight).saturating_mul(b as Weight))
+ (16_515_000 as Weight)
+ // Standard Error: 9_000
+ .saturating_add((6_428_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(3 as Weight))
@@ -114,7 +113,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn burn_item_partial() -> Weight {
- (21_591_000 as Weight)
+ (23_855_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
@@ -125,13 +124,13 @@
// Storage: Refungible TokenData (r:0 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn burn_item_fully() -> Weight {
- (29_257_000 as Weight)
+ (32_709_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(6 as Weight))
}
// Storage: Refungible Balance (r:2 w:2)
fn transfer_normal() -> Weight {
- (17_733_000 as Weight)
+ (20_001_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
@@ -139,7 +138,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_creating() -> Weight {
- (20_943_000 as Weight)
+ (23_807_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
@@ -147,7 +146,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_removing() -> Weight {
- (22_406_000 as Weight)
+ (25_250_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
@@ -155,21 +154,21 @@
// Storage: Refungible AccountBalance (r:2 w:2)
// Storage: Refungible Owned (r:0 w:2)
fn transfer_creating_removing() -> Weight {
- (24_762_000 as Weight)
+ (29_423_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(6 as Weight))
}
// Storage: Refungible Balance (r:1 w:0)
// Storage: Refungible Allowance (r:0 w:1)
fn approve() -> Weight {
- (14_109_000 as Weight)
+ (16_546_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Refungible Allowance (r:1 w:1)
// Storage: Refungible Balance (r:2 w:2)
fn transfer_from_normal() -> Weight {
- (25_348_000 as Weight)
+ (29_661_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
@@ -178,7 +177,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_from_creating() -> Weight {
- (28_647_000 as Weight)
+ (33_972_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
@@ -187,7 +186,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_from_removing() -> Weight {
- (30_472_000 as Weight)
+ (35_767_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
@@ -196,7 +195,7 @@
// Storage: Refungible AccountBalance (r:2 w:2)
// Storage: Refungible Owned (r:0 w:2)
fn transfer_from_creating_removing() -> Weight {
- (32_362_000 as Weight)
+ (38_449_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(7 as Weight))
}
@@ -208,13 +207,13 @@
// Storage: Refungible TokenData (r:0 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn burn_from() -> Weight {
- (60_903_000 as Weight)
+ (43_547_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(7 as Weight))
}
// Storage: Refungible TokenData (r:1 w:1)
fn set_variable_metadata(_b: u32, ) -> Weight {
- (6_801_000 as Weight)
+ (7_790_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
@@ -229,7 +228,7 @@
// Storage: Refungible TokenData (r:0 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn create_item() -> Weight {
- (18_681_000 as Weight)
+ (21_227_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
}
@@ -240,9 +239,9 @@
// Storage: Refungible TokenData (r:0 w:4)
// Storage: Refungible Owned (r:0 w:4)
fn create_multiple_items(b: u32, ) -> Weight {
- (13_869_000 as Weight)
- // Standard Error: 28_000
- .saturating_add((5_611_000 as Weight).saturating_mul(b as Weight))
+ (25_932_000 as Weight)
+ // Standard Error: 11_000
+ .saturating_add((5_730_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((4 as Weight).saturating_mul(b as Weight)))
@@ -254,9 +253,9 @@
// Storage: Refungible TokenData (r:0 w:4)
// Storage: Refungible Owned (r:0 w:4)
fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {
- (11_953_000 as Weight)
- // Standard Error: 27_000
- .saturating_add((10_775_000 as Weight).saturating_mul(b as Weight))
+ (18_884_000 as Weight)
+ // Standard Error: 11_000
+ .saturating_add((8_489_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))
@@ -269,9 +268,9 @@
// Storage: Refungible Balance (r:0 w:4)
// Storage: Refungible Owned (r:0 w:4)
fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {
- (0 as Weight)
- // Standard Error: 13_000
- .saturating_add((8_528_000 as Weight).saturating_mul(b as Weight))
+ (16_515_000 as Weight)
+ // Standard Error: 9_000
+ .saturating_add((6_428_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(3 as Weight))
@@ -282,7 +281,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn burn_item_partial() -> Weight {
- (21_591_000 as Weight)
+ (23_855_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
@@ -293,13 +292,13 @@
// Storage: Refungible TokenData (r:0 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn burn_item_fully() -> Weight {
- (29_257_000 as Weight)
+ (32_709_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
}
// Storage: Refungible Balance (r:2 w:2)
fn transfer_normal() -> Weight {
- (17_733_000 as Weight)
+ (20_001_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
@@ -307,7 +306,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_creating() -> Weight {
- (20_943_000 as Weight)
+ (23_807_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
@@ -315,7 +314,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_removing() -> Weight {
- (22_406_000 as Weight)
+ (25_250_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
@@ -323,21 +322,21 @@
// Storage: Refungible AccountBalance (r:2 w:2)
// Storage: Refungible Owned (r:0 w:2)
fn transfer_creating_removing() -> Weight {
- (24_762_000 as Weight)
+ (29_423_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
}
// Storage: Refungible Balance (r:1 w:0)
// Storage: Refungible Allowance (r:0 w:1)
fn approve() -> Weight {
- (14_109_000 as Weight)
+ (16_546_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: Refungible Allowance (r:1 w:1)
// Storage: Refungible Balance (r:2 w:2)
fn transfer_from_normal() -> Weight {
- (25_348_000 as Weight)
+ (29_661_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
@@ -346,7 +345,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_from_creating() -> Weight {
- (28_647_000 as Weight)
+ (33_972_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
}
@@ -355,7 +354,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_from_removing() -> Weight {
- (30_472_000 as Weight)
+ (35_767_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
}
@@ -364,7 +363,7 @@
// Storage: Refungible AccountBalance (r:2 w:2)
// Storage: Refungible Owned (r:0 w:2)
fn transfer_from_creating_removing() -> Weight {
- (32_362_000 as Weight)
+ (38_449_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
.saturating_add(RocksDbWeight::get().writes(7 as Weight))
}
@@ -376,13 +375,13 @@
// Storage: Refungible TokenData (r:0 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn burn_from() -> Weight {
- (60_903_000 as Weight)
+ (43_547_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
.saturating_add(RocksDbWeight::get().writes(7 as Weight))
}
// Storage: Refungible TokenData (r:1 w:1)
fn set_variable_metadata(_b: u32, ) -> Weight {
- (6_801_000 as Weight)
+ (7_790_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
pallets/unique/src/weights.rsdiffbeforeafterboth1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_unique4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2021-10-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 12889// Executed Command:10// target/release/unique-collator11// benchmark12// --pallet13// pallet-unique14// --wasm-execution15// compiled16// --extrinsic17// *18// --template19// .maintain/frame-weight-template.hbs20// --steps=5021// --repeat=2022// --output=./pallets/unique/src/weights.rs232425#![cfg_attr(rustfmt, rustfmt_skip)]26#![allow(unused_parens)]27#![allow(unused_imports)]28#![allow(clippy::unnecessary_cast)]2930use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};31use sp_std::marker::PhantomData;3233/// Weight functions needed for pallet_unique.34pub trait WeightInfo {35 fn create_collection() -> Weight;36 fn destroy_collection() -> Weight;37 fn add_to_allow_list() -> Weight;38 fn remove_from_allow_list() -> Weight;39 fn set_public_access_mode() -> Weight;40 fn set_mint_permission() -> Weight;41 fn change_collection_owner() -> Weight;42 fn add_collection_admin() -> Weight;43 fn remove_collection_admin() -> Weight;44 fn set_collection_sponsor() -> Weight;45 fn confirm_sponsorship() -> Weight;46 fn remove_collection_sponsor() -> Weight;47 fn set_transfers_enabled_flag() -> Weight;48 fn set_offchain_schema(b: u32, ) -> Weight;49 fn set_const_on_chain_schema(b: u32, ) -> Weight;50 fn set_variable_on_chain_schema(b: u32, ) -> Weight;51 fn set_schema_version() -> Weight;52 fn set_collection_limits() -> Weight;53 fn set_meta_update_permission_flag() -> Weight;54}5556/// Weights for pallet_unique using the Substrate node and recommended hardware.57pub struct SubstrateWeight<T>(PhantomData<T>);58impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {59 // Storage: Common CreatedCollectionCount (r:1 w:1)60 // Storage: Common DestroyedCollectionCount (r:1 w:0)61 // Storage: System Account (r:2 w:2)62 // Storage: Common CollectionById (r:0 w:1)63 fn create_collection() -> Weight {64 (23_803_000 as Weight)65 .saturating_add(T::DbWeight::get().reads(4 as Weight))66 .saturating_add(T::DbWeight::get().writes(4 as Weight))67 }68 // Storage: Common CollectionById (r:1 w:1)69 // Storage: Common DestroyedCollectionCount (r:1 w:1)70 // Storage: Nonfungible TokensMinted (r:0 w:1)71 // Storage: Nonfungible TokensBurnt (r:0 w:1)72 fn destroy_collection() -> Weight {73 (27_831_000 as Weight)74 .saturating_add(T::DbWeight::get().reads(2 as Weight))75 .saturating_add(T::DbWeight::get().writes(4 as Weight))76 }77 // Storage: Common CollectionById (r:1 w:0)78 // Storage: Common Allowlist (r:0 w:1)79 fn add_to_allow_list() -> Weight {80 (6_629_000 as Weight)81 .saturating_add(T::DbWeight::get().reads(1 as Weight))82 .saturating_add(T::DbWeight::get().writes(1 as Weight))83 }84 // Storage: Common CollectionById (r:1 w:0)85 // Storage: Common Allowlist (r:0 w:1)86 fn remove_from_allow_list() -> Weight {87 (6_596_000 as Weight)88 .saturating_add(T::DbWeight::get().reads(1 as Weight))89 .saturating_add(T::DbWeight::get().writes(1 as Weight))90 }91 // Storage: Common CollectionById (r:1 w:1)92 fn set_public_access_mode() -> Weight {93 (6_338_000 as Weight)94 .saturating_add(T::DbWeight::get().reads(1 as Weight))95 .saturating_add(T::DbWeight::get().writes(1 as Weight))96 }97 // Storage: Common CollectionById (r:1 w:1)98 fn set_mint_permission() -> Weight {99 (6_383_000 as Weight)100 .saturating_add(T::DbWeight::get().reads(1 as Weight))101 .saturating_add(T::DbWeight::get().writes(1 as Weight))102 }103 // Storage: Common CollectionById (r:1 w:1)104 fn change_collection_owner() -> Weight {105 (6_493_000 as Weight)106 .saturating_add(T::DbWeight::get().reads(1 as Weight))107 .saturating_add(T::DbWeight::get().writes(1 as Weight))108 }109 // Storage: Common CollectionById (r:1 w:0)110 // Storage: Common IsAdmin (r:0 w:1)111 fn add_collection_admin() -> Weight {112 (6_850_000 as Weight)113 .saturating_add(T::DbWeight::get().reads(1 as Weight))114 .saturating_add(T::DbWeight::get().writes(1 as Weight))115 }116 // Storage: Common CollectionById (r:1 w:0)117 // Storage: Common IsAdmin (r:0 w:1)118 fn remove_collection_admin() -> Weight {119 (6_615_000 as Weight)120 .saturating_add(T::DbWeight::get().reads(1 as Weight))121 .saturating_add(T::DbWeight::get().writes(1 as Weight))122 }123 // Storage: Common CollectionById (r:1 w:1)124 fn set_collection_sponsor() -> Weight {125 (6_430_000 as Weight)126 .saturating_add(T::DbWeight::get().reads(1 as Weight))127 .saturating_add(T::DbWeight::get().writes(1 as Weight))128 }129 // Storage: Common CollectionById (r:1 w:1)130 fn confirm_sponsorship() -> Weight {131 (6_125_000 as Weight)132 .saturating_add(T::DbWeight::get().reads(1 as Weight))133 .saturating_add(T::DbWeight::get().writes(1 as Weight))134 }135 // Storage: Common CollectionById (r:1 w:1)136 fn remove_collection_sponsor() -> Weight {137 (6_236_000 as Weight)138 .saturating_add(T::DbWeight::get().reads(1 as Weight))139 .saturating_add(T::DbWeight::get().writes(1 as Weight))140 }141 // Storage: Common CollectionById (r:1 w:1)142 fn set_transfers_enabled_flag() -> Weight {143 (6_500_000 as Weight)144 .saturating_add(T::DbWeight::get().reads(1 as Weight))145 .saturating_add(T::DbWeight::get().writes(1 as Weight))146 }147 // Storage: Common CollectionById (r:1 w:1)148 fn set_offchain_schema(_b: u32, ) -> Weight {149 (6_538_000 as Weight)150 .saturating_add(T::DbWeight::get().reads(1 as Weight))151 .saturating_add(T::DbWeight::get().writes(1 as Weight))152 }153 // Storage: Common CollectionById (r:1 w:1)154 fn set_const_on_chain_schema(_b: u32, ) -> Weight {155 (6_542_000 as Weight)156 .saturating_add(T::DbWeight::get().reads(1 as Weight))157 .saturating_add(T::DbWeight::get().writes(1 as Weight))158 }159 // Storage: Common CollectionById (r:1 w:1)160 fn set_variable_on_chain_schema(b: u32, ) -> Weight {161 (6_092_000 as Weight)162 // Standard Error: 0163 .saturating_add((2_000 as Weight).saturating_mul(b as Weight))164 .saturating_add(T::DbWeight::get().reads(1 as Weight))165 .saturating_add(T::DbWeight::get().writes(1 as Weight))166 }167 // Storage: Common CollectionById (r:1 w:1)168 fn set_schema_version() -> Weight {169 (6_470_000 as Weight)170 .saturating_add(T::DbWeight::get().reads(1 as Weight))171 .saturating_add(T::DbWeight::get().writes(1 as Weight))172 }173 // Storage: Common CollectionById (r:1 w:1)174 fn set_collection_limits() -> Weight {175 (6_841_000 as Weight)176 .saturating_add(T::DbWeight::get().reads(1 as Weight))177 .saturating_add(T::DbWeight::get().writes(1 as Weight))178 }179 // Storage: Common CollectionById (r:1 w:1)180 fn set_meta_update_permission_flag() -> Weight {181 (6_278_000 as Weight)182 .saturating_add(T::DbWeight::get().reads(1 as Weight))183 .saturating_add(T::DbWeight::get().writes(1 as Weight))184 }185}186187// For backwards compatibility and tests188impl WeightInfo for () {189 // Storage: Common CreatedCollectionCount (r:1 w:1)190 // Storage: Common DestroyedCollectionCount (r:1 w:0)191 // Storage: System Account (r:2 w:2)192 // Storage: Common CollectionById (r:0 w:1)193 fn create_collection() -> Weight {194 (23_803_000 as Weight)195 .saturating_add(RocksDbWeight::get().reads(4 as Weight))196 .saturating_add(RocksDbWeight::get().writes(4 as Weight))197 }198 // Storage: Common CollectionById (r:1 w:1)199 // Storage: Common DestroyedCollectionCount (r:1 w:1)200 // Storage: Nonfungible TokensMinted (r:0 w:1)201 // Storage: Nonfungible TokensBurnt (r:0 w:1)202 fn destroy_collection() -> Weight {203 (27_831_000 as Weight)204 .saturating_add(RocksDbWeight::get().reads(2 as Weight))205 .saturating_add(RocksDbWeight::get().writes(4 as Weight))206 }207 // Storage: Common CollectionById (r:1 w:0)208 // Storage: Common Allowlist (r:0 w:1)209 fn add_to_allow_list() -> Weight {210 (6_629_000 as Weight)211 .saturating_add(RocksDbWeight::get().reads(1 as Weight))212 .saturating_add(RocksDbWeight::get().writes(1 as Weight))213 }214 // Storage: Common CollectionById (r:1 w:0)215 // Storage: Common Allowlist (r:0 w:1)216 fn remove_from_allow_list() -> Weight {217 (6_596_000 as Weight)218 .saturating_add(RocksDbWeight::get().reads(1 as Weight))219 .saturating_add(RocksDbWeight::get().writes(1 as Weight))220 }221 // Storage: Common CollectionById (r:1 w:1)222 fn set_public_access_mode() -> Weight {223 (6_338_000 as Weight)224 .saturating_add(RocksDbWeight::get().reads(1 as Weight))225 .saturating_add(RocksDbWeight::get().writes(1 as Weight))226 }227 // Storage: Common CollectionById (r:1 w:1)228 fn set_mint_permission() -> Weight {229 (6_383_000 as Weight)230 .saturating_add(RocksDbWeight::get().reads(1 as Weight))231 .saturating_add(RocksDbWeight::get().writes(1 as Weight))232 }233 // Storage: Common CollectionById (r:1 w:1)234 fn change_collection_owner() -> Weight {235 (6_493_000 as Weight)236 .saturating_add(RocksDbWeight::get().reads(1 as Weight))237 .saturating_add(RocksDbWeight::get().writes(1 as Weight))238 }239 // Storage: Common CollectionById (r:1 w:0)240 // Storage: Common IsAdmin (r:0 w:1)241 fn add_collection_admin() -> Weight {242 (6_850_000 as Weight)243 .saturating_add(RocksDbWeight::get().reads(1 as Weight))244 .saturating_add(RocksDbWeight::get().writes(1 as Weight))245 }246 // Storage: Common CollectionById (r:1 w:0)247 // Storage: Common IsAdmin (r:0 w:1)248 fn remove_collection_admin() -> Weight {249 (6_615_000 as Weight)250 .saturating_add(RocksDbWeight::get().reads(1 as Weight))251 .saturating_add(RocksDbWeight::get().writes(1 as Weight))252 }253 // Storage: Common CollectionById (r:1 w:1)254 fn set_collection_sponsor() -> Weight {255 (6_430_000 as Weight)256 .saturating_add(RocksDbWeight::get().reads(1 as Weight))257 .saturating_add(RocksDbWeight::get().writes(1 as Weight))258 }259 // Storage: Common CollectionById (r:1 w:1)260 fn confirm_sponsorship() -> Weight {261 (6_125_000 as Weight)262 .saturating_add(RocksDbWeight::get().reads(1 as Weight))263 .saturating_add(RocksDbWeight::get().writes(1 as Weight))264 }265 // Storage: Common CollectionById (r:1 w:1)266 fn remove_collection_sponsor() -> Weight {267 (6_236_000 as Weight)268 .saturating_add(RocksDbWeight::get().reads(1 as Weight))269 .saturating_add(RocksDbWeight::get().writes(1 as Weight))270 }271 // Storage: Common CollectionById (r:1 w:1)272 fn set_transfers_enabled_flag() -> Weight {273 (6_500_000 as Weight)274 .saturating_add(RocksDbWeight::get().reads(1 as Weight))275 .saturating_add(RocksDbWeight::get().writes(1 as Weight))276 }277 // Storage: Common CollectionById (r:1 w:1)278 fn set_offchain_schema(_b: u32, ) -> Weight {279 (6_538_000 as Weight)280 .saturating_add(RocksDbWeight::get().reads(1 as Weight))281 .saturating_add(RocksDbWeight::get().writes(1 as Weight))282 }283 // Storage: Common CollectionById (r:1 w:1)284 fn set_const_on_chain_schema(_b: u32, ) -> Weight {285 (6_542_000 as Weight)286 .saturating_add(RocksDbWeight::get().reads(1 as Weight))287 .saturating_add(RocksDbWeight::get().writes(1 as Weight))288 }289 // Storage: Common CollectionById (r:1 w:1)290 fn set_variable_on_chain_schema(b: u32, ) -> Weight {291 (6_092_000 as Weight)292 // Standard Error: 0293 .saturating_add((2_000 as Weight).saturating_mul(b as Weight))294 .saturating_add(RocksDbWeight::get().reads(1 as Weight))295 .saturating_add(RocksDbWeight::get().writes(1 as Weight))296 }297 // Storage: Common CollectionById (r:1 w:1)298 fn set_schema_version() -> Weight {299 (6_470_000 as Weight)300 .saturating_add(RocksDbWeight::get().reads(1 as Weight))301 .saturating_add(RocksDbWeight::get().writes(1 as Weight))302 }303 // Storage: Common CollectionById (r:1 w:1)304 fn set_collection_limits() -> Weight {305 (6_841_000 as Weight)306 .saturating_add(RocksDbWeight::get().reads(1 as Weight))307 .saturating_add(RocksDbWeight::get().writes(1 as Weight))308 }309 // Storage: Common CollectionById (r:1 w:1)310 fn set_meta_update_permission_flag() -> Weight {311 (6_278_000 as Weight)312 .saturating_add(RocksDbWeight::get().reads(1 as Weight))313 .saturating_add(RocksDbWeight::get().writes(1 as Weight))314 }315}1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_unique4//!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-unique14// --wasm-execution15// compiled16// --extrinsic17// *18// --template19// .maintain/frame-weight-template.hbs20// --steps=5021// --repeat=2022// --output=./pallets/unique/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_unique.33pub trait WeightInfo {34 fn create_collection() -> Weight;35 fn destroy_collection() -> Weight;36 fn add_to_allow_list() -> Weight;37 fn remove_from_allow_list() -> Weight;38 fn set_public_access_mode() -> Weight;39 fn set_mint_permission() -> Weight;40 fn change_collection_owner() -> Weight;41 fn add_collection_admin() -> Weight;42 fn remove_collection_admin() -> Weight;43 fn set_collection_sponsor() -> Weight;44 fn confirm_sponsorship() -> Weight;45 fn remove_collection_sponsor() -> Weight;46 fn set_transfers_enabled_flag() -> Weight;47 fn set_offchain_schema(b: u32, ) -> Weight;48 fn set_const_on_chain_schema(b: u32, ) -> Weight;49 fn set_variable_on_chain_schema(b: u32, ) -> Weight;50 fn set_schema_version() -> Weight;51 fn set_collection_limits() -> Weight;52 fn set_meta_update_permission_flag() -> Weight;53}5455/// Weights for pallet_unique 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: Common CollectionById (r:0 w:1)62 fn create_collection() -> Weight {63 (29_550_000 as Weight)64 .saturating_add(T::DbWeight::get().reads(4 as Weight))65 .saturating_add(T::DbWeight::get().writes(4 as Weight))66 }67 // Storage: Common CollectionById (r:1 w:1)68 // Storage: Common DestroyedCollectionCount (r:1 w:1)69 // Storage: Nonfungible TokensMinted (r:0 w:1)70 // Storage: Nonfungible TokensBurnt (r:0 w:1)71 // Storage: Common AdminAmount (r:0 w:1)72 fn destroy_collection() -> Weight {73 (40_838_000 as Weight)74 .saturating_add(T::DbWeight::get().reads(2 as Weight))75 .saturating_add(T::DbWeight::get().writes(5 as Weight))76 }77 // Storage: Common CollectionById (r:1 w:0)78 // Storage: Common Allowlist (r:0 w:1)79 fn add_to_allow_list() -> Weight {80 (15_331_000 as Weight)81 .saturating_add(T::DbWeight::get().reads(1 as Weight))82 .saturating_add(T::DbWeight::get().writes(1 as Weight))83 }84 // Storage: Common CollectionById (r:1 w:0)85 // Storage: Common Allowlist (r:0 w:1)86 fn remove_from_allow_list() -> Weight {87 (16_706_000 as Weight)88 .saturating_add(T::DbWeight::get().reads(1 as Weight))89 .saturating_add(T::DbWeight::get().writes(1 as Weight))90 }91 // Storage: Common CollectionById (r:1 w:1)92 fn set_public_access_mode() -> Weight {93 (16_189_000 as Weight)94 .saturating_add(T::DbWeight::get().reads(1 as Weight))95 .saturating_add(T::DbWeight::get().writes(1 as Weight))96 }97 // Storage: Common CollectionById (r:1 w:1)98 fn set_mint_permission() -> Weight {99 (16_072_000 as Weight)100 .saturating_add(T::DbWeight::get().reads(1 as Weight))101 .saturating_add(T::DbWeight::get().writes(1 as Weight))102 }103 // Storage: Common CollectionById (r:1 w:1)104 fn change_collection_owner() -> Weight {105 (14_929_000 as Weight)106 .saturating_add(T::DbWeight::get().reads(1 as Weight))107 .saturating_add(T::DbWeight::get().writes(1 as Weight))108 }109 // Storage: Common CollectionById (r:1 w:0)110 // Storage: Common IsAdmin (r:1 w:1)111 // Storage: Common AdminAmount (r:1 w:1)112 fn add_collection_admin() -> Weight {113 (19_262_000 as Weight)114 .saturating_add(T::DbWeight::get().reads(3 as Weight))115 .saturating_add(T::DbWeight::get().writes(2 as Weight))116 }117 // Storage: Common CollectionById (r:1 w:0)118 // Storage: Common IsAdmin (r:1 w:1)119 // Storage: Common AdminAmount (r:1 w:1)120 fn remove_collection_admin() -> Weight {121 (21_024_000 as Weight)122 .saturating_add(T::DbWeight::get().reads(3 as Weight))123 .saturating_add(T::DbWeight::get().writes(2 as Weight))124 }125 // Storage: Common CollectionById (r:1 w:1)126 fn set_collection_sponsor() -> Weight {127 (15_600_000 as Weight)128 .saturating_add(T::DbWeight::get().reads(1 as Weight))129 .saturating_add(T::DbWeight::get().writes(1 as Weight))130 }131 // Storage: Common CollectionById (r:1 w:1)132 fn confirm_sponsorship() -> Weight {133 (15_153_000 as Weight)134 .saturating_add(T::DbWeight::get().reads(1 as Weight))135 .saturating_add(T::DbWeight::get().writes(1 as Weight))136 }137 // Storage: Common CollectionById (r:1 w:1)138 fn remove_collection_sponsor() -> Weight {139 (14_929_000 as Weight)140 .saturating_add(T::DbWeight::get().reads(1 as Weight))141 .saturating_add(T::DbWeight::get().writes(1 as Weight))142 }143 // Storage: Common CollectionById (r:1 w:1)144 fn set_transfers_enabled_flag() -> Weight {145 (7_856_000 as Weight)146 .saturating_add(T::DbWeight::get().reads(1 as Weight))147 .saturating_add(T::DbWeight::get().writes(1 as Weight))148 }149 // Storage: Common CollectionById (r:1 w:1)150 fn set_offchain_schema(_b: u32, ) -> Weight {151 (15_790_000 as Weight)152 .saturating_add(T::DbWeight::get().reads(1 as Weight))153 .saturating_add(T::DbWeight::get().writes(1 as Weight))154 }155 // Storage: Common CollectionById (r:1 w:1)156 fn set_const_on_chain_schema(_b: u32, ) -> Weight {157 (15_775_000 as Weight)158 .saturating_add(T::DbWeight::get().reads(1 as Weight))159 .saturating_add(T::DbWeight::get().writes(1 as Weight))160 }161 // Storage: Common CollectionById (r:1 w:1)162 fn set_variable_on_chain_schema(_b: u32, ) -> Weight {163 (15_788_000 as Weight)164 .saturating_add(T::DbWeight::get().reads(1 as Weight))165 .saturating_add(T::DbWeight::get().writes(1 as Weight))166 }167 // Storage: Common CollectionById (r:1 w:1)168 fn set_schema_version() -> Weight {169 (15_148_000 as Weight)170 .saturating_add(T::DbWeight::get().reads(1 as Weight))171 .saturating_add(T::DbWeight::get().writes(1 as Weight))172 }173 // Storage: Common CollectionById (r:1 w:1)174 fn set_collection_limits() -> Weight {175 (15_811_000 as Weight)176 .saturating_add(T::DbWeight::get().reads(1 as Weight))177 .saturating_add(T::DbWeight::get().writes(1 as Weight))178 }179 // Storage: Common CollectionById (r:1 w:1)180 fn set_meta_update_permission_flag() -> Weight {181 (7_663_000 as Weight)182 .saturating_add(T::DbWeight::get().reads(1 as Weight))183 .saturating_add(T::DbWeight::get().writes(1 as Weight))184 }185}186187// For backwards compatibility and tests188impl WeightInfo for () {189 // Storage: Common CreatedCollectionCount (r:1 w:1)190 // Storage: Common DestroyedCollectionCount (r:1 w:0)191 // Storage: System Account (r:2 w:2)192 // Storage: Common CollectionById (r:0 w:1)193 fn create_collection() -> Weight {194 (29_550_000 as Weight)195 .saturating_add(RocksDbWeight::get().reads(4 as Weight))196 .saturating_add(RocksDbWeight::get().writes(4 as Weight))197 }198 // Storage: Common CollectionById (r:1 w:1)199 // Storage: Common DestroyedCollectionCount (r:1 w:1)200 // Storage: Nonfungible TokensMinted (r:0 w:1)201 // Storage: Nonfungible TokensBurnt (r:0 w:1)202 // Storage: Common AdminAmount (r:0 w:1)203 fn destroy_collection() -> Weight {204 (40_838_000 as Weight)205 .saturating_add(RocksDbWeight::get().reads(2 as Weight))206 .saturating_add(RocksDbWeight::get().writes(5 as Weight))207 }208 // Storage: Common CollectionById (r:1 w:0)209 // Storage: Common Allowlist (r:0 w:1)210 fn add_to_allow_list() -> Weight {211 (15_331_000 as Weight)212 .saturating_add(RocksDbWeight::get().reads(1 as Weight))213 .saturating_add(RocksDbWeight::get().writes(1 as Weight))214 }215 // Storage: Common CollectionById (r:1 w:0)216 // Storage: Common Allowlist (r:0 w:1)217 fn remove_from_allow_list() -> Weight {218 (16_706_000 as Weight)219 .saturating_add(RocksDbWeight::get().reads(1 as Weight))220 .saturating_add(RocksDbWeight::get().writes(1 as Weight))221 }222 // Storage: Common CollectionById (r:1 w:1)223 fn set_public_access_mode() -> Weight {224 (16_189_000 as Weight)225 .saturating_add(RocksDbWeight::get().reads(1 as Weight))226 .saturating_add(RocksDbWeight::get().writes(1 as Weight))227 }228 // Storage: Common CollectionById (r:1 w:1)229 fn set_mint_permission() -> Weight {230 (16_072_000 as Weight)231 .saturating_add(RocksDbWeight::get().reads(1 as Weight))232 .saturating_add(RocksDbWeight::get().writes(1 as Weight))233 }234 // Storage: Common CollectionById (r:1 w:1)235 fn change_collection_owner() -> Weight {236 (14_929_000 as Weight)237 .saturating_add(RocksDbWeight::get().reads(1 as Weight))238 .saturating_add(RocksDbWeight::get().writes(1 as Weight))239 }240 // Storage: Common CollectionById (r:1 w:0)241 // Storage: Common IsAdmin (r:1 w:1)242 // Storage: Common AdminAmount (r:1 w:1)243 fn add_collection_admin() -> Weight {244 (19_262_000 as Weight)245 .saturating_add(RocksDbWeight::get().reads(3 as Weight))246 .saturating_add(RocksDbWeight::get().writes(2 as Weight))247 }248 // Storage: Common CollectionById (r:1 w:0)249 // Storage: Common IsAdmin (r:1 w:1)250 // Storage: Common AdminAmount (r:1 w:1)251 fn remove_collection_admin() -> Weight {252 (21_024_000 as Weight)253 .saturating_add(RocksDbWeight::get().reads(3 as Weight))254 .saturating_add(RocksDbWeight::get().writes(2 as Weight))255 }256 // Storage: Common CollectionById (r:1 w:1)257 fn set_collection_sponsor() -> Weight {258 (15_600_000 as Weight)259 .saturating_add(RocksDbWeight::get().reads(1 as Weight))260 .saturating_add(RocksDbWeight::get().writes(1 as Weight))261 }262 // Storage: Common CollectionById (r:1 w:1)263 fn confirm_sponsorship() -> Weight {264 (15_153_000 as Weight)265 .saturating_add(RocksDbWeight::get().reads(1 as Weight))266 .saturating_add(RocksDbWeight::get().writes(1 as Weight))267 }268 // Storage: Common CollectionById (r:1 w:1)269 fn remove_collection_sponsor() -> Weight {270 (14_929_000 as Weight)271 .saturating_add(RocksDbWeight::get().reads(1 as Weight))272 .saturating_add(RocksDbWeight::get().writes(1 as Weight))273 }274 // Storage: Common CollectionById (r:1 w:1)275 fn set_transfers_enabled_flag() -> Weight {276 (7_856_000 as Weight)277 .saturating_add(RocksDbWeight::get().reads(1 as Weight))278 .saturating_add(RocksDbWeight::get().writes(1 as Weight))279 }280 // Storage: Common CollectionById (r:1 w:1)281 fn set_offchain_schema(_b: u32, ) -> Weight {282 (15_790_000 as Weight)283 .saturating_add(RocksDbWeight::get().reads(1 as Weight))284 .saturating_add(RocksDbWeight::get().writes(1 as Weight))285 }286 // Storage: Common CollectionById (r:1 w:1)287 fn set_const_on_chain_schema(_b: u32, ) -> Weight {288 (15_775_000 as Weight)289 .saturating_add(RocksDbWeight::get().reads(1 as Weight))290 .saturating_add(RocksDbWeight::get().writes(1 as Weight))291 }292 // Storage: Common CollectionById (r:1 w:1)293 fn set_variable_on_chain_schema(_b: u32, ) -> Weight {294 (15_788_000 as Weight)295 .saturating_add(RocksDbWeight::get().reads(1 as Weight))296 .saturating_add(RocksDbWeight::get().writes(1 as Weight))297 }298 // Storage: Common CollectionById (r:1 w:1)299 fn set_schema_version() -> Weight {300 (15_148_000 as Weight)301 .saturating_add(RocksDbWeight::get().reads(1 as Weight))302 .saturating_add(RocksDbWeight::get().writes(1 as Weight))303 }304 // Storage: Common CollectionById (r:1 w:1)305 fn set_collection_limits() -> Weight {306 (15_811_000 as Weight)307 .saturating_add(RocksDbWeight::get().reads(1 as Weight))308 .saturating_add(RocksDbWeight::get().writes(1 as Weight))309 }310 // Storage: Common CollectionById (r:1 w:1)311 fn set_meta_update_permission_flag() -> Weight {312 (7_663_000 as Weight)313 .saturating_add(RocksDbWeight::get().reads(1 as Weight))314 .saturating_add(RocksDbWeight::get().writes(1 as Weight))315 }316}