difftreelog
build run benchmarks
in: master
10 files changed
pallets/common/src/weights.rsdiffbeforeafterboth--- a/pallets/common/src/weights.rs
+++ b/pallets/common/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_common
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-05-23, STEPS: `50`, REPEAT: 1, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-01-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -19,7 +19,7 @@
// --template
// .maintain/frame-weight-template.hbs
// --steps=50
-// --repeat=1
+// --repeat=80
// --heap-pages=4096
// --output=./pallets/common/src/weights.rs
@@ -43,17 +43,17 @@
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Common CollectionProperties (r:1 w:1)
fn set_collection_properties(b: u32, ) -> Weight {
- (Weight::from_ref_time(0))
- // Standard Error: 142_818_000
- .saturating_add(Weight::from_ref_time(2_786_252_000).saturating_mul(b as u64))
+ Weight::from_ref_time(9_881_000 as u64)
+ // Standard Error: 18_079
+ .saturating_add(Weight::from_ref_time(6_561_011 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionProperties (r:1 w:1)
fn delete_collection_properties(b: u32, ) -> Weight {
- (Weight::from_ref_time(0))
- // Standard Error: 101_087_000
- .saturating_add(Weight::from_ref_time(2_739_521_000).saturating_mul(b as u64))
+ Weight::from_ref_time(9_502_000 as u64)
+ // Standard Error: 67_255
+ .saturating_add(Weight::from_ref_time(22_203_766 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -63,17 +63,17 @@
impl WeightInfo for () {
// Storage: Common CollectionProperties (r:1 w:1)
fn set_collection_properties(b: u32, ) -> Weight {
- (Weight::from_ref_time(0))
- // Standard Error: 142_818_000
- .saturating_add(Weight::from_ref_time(2_786_252_000).saturating_mul(b as u64))
+ Weight::from_ref_time(9_881_000 as u64)
+ // Standard Error: 18_079
+ .saturating_add(Weight::from_ref_time(6_561_011 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionProperties (r:1 w:1)
fn delete_collection_properties(b: u32, ) -> Weight {
- (Weight::from_ref_time(0))
- // Standard Error: 101_087_000
- .saturating_add(Weight::from_ref_time(2_739_521_000).saturating_mul(b as u64))
+ Weight::from_ref_time(9_502_000 as u64)
+ // Standard Error: 67_255
+ .saturating_add(Weight::from_ref_time(22_203_766 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
pallets/configuration/src/weights.rsdiffbeforeafterboth--- a/pallets/configuration/src/weights.rs
+++ b/pallets/configuration/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_configuration
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-01-18, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-01-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -48,37 +48,37 @@
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Configuration WeightToFeeCoefficientOverride (r:0 w:1)
fn set_weight_to_fee_coefficient_override() -> Weight {
- Weight::from_ref_time(4_756_000 as u64)
+ Weight::from_ref_time(3_865_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Configuration MinGasPriceOverride (r:0 w:1)
fn set_min_gas_price_override() -> Weight {
- Weight::from_ref_time(4_754_000 as u64)
+ Weight::from_ref_time(4_221_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Configuration XcmAllowedLocationsOverride (r:0 w:1)
fn set_xcm_allowed_locations() -> Weight {
- Weight::from_ref_time(4_875_000 as u64)
+ Weight::from_ref_time(5_329_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Configuration AppPromomotionConfigurationOverride (r:0 w:1)
fn set_app_promotion_configuration_override() -> Weight {
- Weight::from_ref_time(4_832_000 as u64)
+ Weight::from_ref_time(5_805_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:0 w:1)
fn set_collator_selection_desired_collators() -> Weight {
- Weight::from_ref_time(18_337_000 as u64)
+ Weight::from_ref_time(21_590_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Configuration CollatorSelectionLicenseBondOverride (r:0 w:1)
fn set_collator_selection_license_bond() -> Weight {
- Weight::from_ref_time(14_806_000 as u64)
+ Weight::from_ref_time(15_141_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Configuration CollatorSelectionKickThresholdOverride (r:0 w:1)
fn set_collator_selection_kick_threshold() -> Weight {
- Weight::from_ref_time(14_524_000 as u64)
+ Weight::from_ref_time(12_042_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
}
@@ -87,37 +87,37 @@
impl WeightInfo for () {
// Storage: Configuration WeightToFeeCoefficientOverride (r:0 w:1)
fn set_weight_to_fee_coefficient_override() -> Weight {
- Weight::from_ref_time(4_756_000 as u64)
+ Weight::from_ref_time(3_865_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Configuration MinGasPriceOverride (r:0 w:1)
fn set_min_gas_price_override() -> Weight {
- Weight::from_ref_time(4_754_000 as u64)
+ Weight::from_ref_time(4_221_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Configuration XcmAllowedLocationsOverride (r:0 w:1)
fn set_xcm_allowed_locations() -> Weight {
- Weight::from_ref_time(4_875_000 as u64)
+ Weight::from_ref_time(5_329_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Configuration AppPromomotionConfigurationOverride (r:0 w:1)
fn set_app_promotion_configuration_override() -> Weight {
- Weight::from_ref_time(4_832_000 as u64)
+ Weight::from_ref_time(5_805_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:0 w:1)
fn set_collator_selection_desired_collators() -> Weight {
- Weight::from_ref_time(18_337_000 as u64)
+ Weight::from_ref_time(21_590_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Configuration CollatorSelectionLicenseBondOverride (r:0 w:1)
fn set_collator_selection_license_bond() -> Weight {
- Weight::from_ref_time(14_806_000 as u64)
+ Weight::from_ref_time(15_141_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Configuration CollatorSelectionKickThresholdOverride (r:0 w:1)
fn set_collator_selection_kick_threshold() -> Weight {
- Weight::from_ref_time(14_524_000 as u64)
+ Weight::from_ref_time(12_042_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
}
pallets/evm-migration/src/weights.rsdiffbeforeafterboth--- a/pallets/evm-migration/src/weights.rs
+++ b/pallets/evm-migration/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_evm_migration
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-01-18, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-01-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -48,35 +48,35 @@
// Storage: System Account (r:1 w:0)
// Storage: EVM AccountCodes (r:1 w:0)
fn begin() -> Weight {
- Weight::from_ref_time(15_553_000 as u64)
+ Weight::from_ref_time(16_189_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: EvmMigration MigrationPending (r:1 w:0)
// Storage: EVM AccountStorages (r:0 w:1)
fn set_data(b: u32, ) -> Weight {
- Weight::from_ref_time(8_826_376 as u64)
- // Standard Error: 1_575
- .saturating_add(Weight::from_ref_time(953_367 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(7_829_947 as u64)
+ // Standard Error: 687
+ .saturating_add(Weight::from_ref_time(968_768 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(b as u64)))
}
// Storage: EvmMigration MigrationPending (r:1 w:1)
// Storage: EVM AccountCodes (r:0 w:1)
fn finish(_b: u32, ) -> Weight {
- Weight::from_ref_time(9_382_842 as u64)
+ Weight::from_ref_time(9_559_086 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
fn insert_eth_logs(b: u32, ) -> Weight {
- Weight::from_ref_time(8_647_347 as u64)
- // Standard Error: 1_360
- .saturating_add(Weight::from_ref_time(736_935 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(7_535_186 as u64)
+ // Standard Error: 1_440
+ .saturating_add(Weight::from_ref_time(699_517 as u64).saturating_mul(b as u64))
}
fn insert_events(b: u32, ) -> Weight {
- Weight::from_ref_time(12_275_370 as u64)
- // Standard Error: 1_243
- .saturating_add(Weight::from_ref_time(1_269_025 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(10_612_317 as u64)
+ // Standard Error: 999
+ .saturating_add(Weight::from_ref_time(1_296_893 as u64).saturating_mul(b as u64))
}
}
@@ -86,34 +86,34 @@
// Storage: System Account (r:1 w:0)
// Storage: EVM AccountCodes (r:1 w:0)
fn begin() -> Weight {
- Weight::from_ref_time(15_553_000 as u64)
+ Weight::from_ref_time(16_189_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: EvmMigration MigrationPending (r:1 w:0)
// Storage: EVM AccountStorages (r:0 w:1)
fn set_data(b: u32, ) -> Weight {
- Weight::from_ref_time(8_826_376 as u64)
- // Standard Error: 1_575
- .saturating_add(Weight::from_ref_time(953_367 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(7_829_947 as u64)
+ // Standard Error: 687
+ .saturating_add(Weight::from_ref_time(968_768 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(b as u64)))
}
// Storage: EvmMigration MigrationPending (r:1 w:1)
// Storage: EVM AccountCodes (r:0 w:1)
fn finish(_b: u32, ) -> Weight {
- Weight::from_ref_time(9_382_842 as u64)
+ Weight::from_ref_time(9_559_086 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
fn insert_eth_logs(b: u32, ) -> Weight {
- Weight::from_ref_time(8_647_347 as u64)
- // Standard Error: 1_360
- .saturating_add(Weight::from_ref_time(736_935 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(7_535_186 as u64)
+ // Standard Error: 1_440
+ .saturating_add(Weight::from_ref_time(699_517 as u64).saturating_mul(b as u64))
}
fn insert_events(b: u32, ) -> Weight {
- Weight::from_ref_time(12_275_370 as u64)
- // Standard Error: 1_243
- .saturating_add(Weight::from_ref_time(1_269_025 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(10_612_317 as u64)
+ // Standard Error: 999
+ .saturating_add(Weight::from_ref_time(1_296_893 as u64).saturating_mul(b as u64))
}
}
pallets/foreign-assets/src/weights.rsdiffbeforeafterboth--- a/pallets/foreign-assets/src/weights.rs
+++ b/pallets/foreign-assets/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_foreign_assets
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-01-18, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-01-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -53,14 +53,14 @@
// Storage: Common CollectionProperties (r:0 w:1)
// Storage: Common CollectionById (r:0 w:1)
fn register_foreign_asset() -> Weight {
- Weight::from_ref_time(53_122_000 as u64)
+ Weight::from_ref_time(50_058_000 as u64)
.saturating_add(T::DbWeight::get().reads(9 as u64))
.saturating_add(T::DbWeight::get().writes(11 as u64))
}
// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)
// Storage: ForeignAssets AssetMetadatas (r:1 w:1)
fn update_foreign_asset() -> Weight {
- Weight::from_ref_time(23_796_000 as u64)
+ Weight::from_ref_time(22_669_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -80,14 +80,14 @@
// Storage: Common CollectionProperties (r:0 w:1)
// Storage: Common CollectionById (r:0 w:1)
fn register_foreign_asset() -> Weight {
- Weight::from_ref_time(53_122_000 as u64)
+ Weight::from_ref_time(50_058_000 as u64)
.saturating_add(RocksDbWeight::get().reads(9 as u64))
.saturating_add(RocksDbWeight::get().writes(11 as u64))
}
// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)
// Storage: ForeignAssets AssetMetadatas (r:1 w:1)
fn update_foreign_asset() -> Weight {
- Weight::from_ref_time(23_796_000 as u64)
+ Weight::from_ref_time(22_669_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
pallets/fungible/src/weights.rsdiffbeforeafterboth--- a/pallets/fungible/src/weights.rs
+++ b/pallets/fungible/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_fungible
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-01-18, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-01-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -50,16 +50,16 @@
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
fn create_item() -> Weight {
- Weight::from_ref_time(20_203_000 as u64)
+ Weight::from_ref_time(20_606_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:4 w:4)
fn create_multiple_items_ex(b: u32, ) -> Weight {
- Weight::from_ref_time(19_426_730 as u64)
- // Standard Error: 5_132
- .saturating_add(Weight::from_ref_time(3_579_196 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(21_771_237 as u64)
+ // Standard Error: 10_207
+ .saturating_add(Weight::from_ref_time(3_627_533 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(b as u64)))
.saturating_add(T::DbWeight::get().writes(1 as u64))
@@ -68,34 +68,34 @@
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
fn burn_item() -> Weight {
- Weight::from_ref_time(21_871_000 as u64)
+ Weight::from_ref_time(22_468_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Fungible Balance (r:2 w:2)
fn transfer() -> Weight {
- Weight::from_ref_time(22_677_000 as u64)
+ Weight::from_ref_time(23_377_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Fungible Balance (r:1 w:0)
// Storage: Fungible Allowance (r:0 w:1)
fn approve() -> Weight {
- Weight::from_ref_time(22_109_000 as u64)
+ Weight::from_ref_time(22_704_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Fungible Balance (r:1 w:0)
// Storage: Fungible Allowance (r:0 w:1)
fn approve_from() -> Weight {
- Weight::from_ref_time(22_434_000 as u64)
+ Weight::from_ref_time(22_777_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Fungible Allowance (r:1 w:1)
// Storage: Fungible Balance (r:2 w:2)
fn transfer_from() -> Weight {
- Weight::from_ref_time(31_777_000 as u64)
+ Weight::from_ref_time(32_568_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -103,7 +103,7 @@
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
fn burn_from() -> Weight {
- Weight::from_ref_time(32_101_000 as u64)
+ Weight::from_ref_time(32_838_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -114,16 +114,16 @@
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
fn create_item() -> Weight {
- Weight::from_ref_time(20_203_000 as u64)
+ Weight::from_ref_time(20_606_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:4 w:4)
fn create_multiple_items_ex(b: u32, ) -> Weight {
- Weight::from_ref_time(19_426_730 as u64)
- // Standard Error: 5_132
- .saturating_add(Weight::from_ref_time(3_579_196 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(21_771_237 as u64)
+ // Standard Error: 10_207
+ .saturating_add(Weight::from_ref_time(3_627_533 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(b as u64)))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
@@ -132,34 +132,34 @@
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
fn burn_item() -> Weight {
- Weight::from_ref_time(21_871_000 as u64)
+ Weight::from_ref_time(22_468_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Fungible Balance (r:2 w:2)
fn transfer() -> Weight {
- Weight::from_ref_time(22_677_000 as u64)
+ Weight::from_ref_time(23_377_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Fungible Balance (r:1 w:0)
// Storage: Fungible Allowance (r:0 w:1)
fn approve() -> Weight {
- Weight::from_ref_time(22_109_000 as u64)
+ Weight::from_ref_time(22_704_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Fungible Balance (r:1 w:0)
// Storage: Fungible Allowance (r:0 w:1)
fn approve_from() -> Weight {
- Weight::from_ref_time(22_434_000 as u64)
+ Weight::from_ref_time(22_777_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Fungible Allowance (r:1 w:1)
// Storage: Fungible Balance (r:2 w:2)
fn transfer_from() -> Weight {
- Weight::from_ref_time(31_777_000 as u64)
+ Weight::from_ref_time(32_568_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -167,7 +167,7 @@
// Storage: Fungible TotalSupply (r:1 w:1)
// Storage: Fungible Balance (r:1 w:1)
fn burn_from() -> Weight {
- Weight::from_ref_time(32_101_000 as u64)
+ Weight::from_ref_time(32_838_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
pallets/nonfungible/src/weights.rsdiffbeforeafterboth1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_nonfungible4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-01-18, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// pallet13// --pallet14// pallet-nonfungible15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/nonfungible/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_nonfungible.36pub trait WeightInfo {37 fn create_item() -> Weight;38 fn create_multiple_items(b: u32, ) -> Weight;39 fn create_multiple_items_ex(b: u32, ) -> Weight;40 fn burn_item() -> Weight;41 fn burn_recursively_self_raw() -> Weight;42 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight;43 fn transfer() -> Weight;44 fn approve() -> Weight;45 fn approve_from() -> Weight;46 fn transfer_from() -> Weight;47 fn burn_from() -> Weight;48 fn set_token_property_permissions(b: u32, ) -> Weight;49 fn set_token_properties(b: u32, ) -> Weight;50 fn delete_token_properties(b: u32, ) -> Weight;51 fn token_owner() -> Weight;52 fn set_allowance_for_all() -> Weight;53 fn allowance_for_all() -> Weight;54 fn repair_item() -> Weight;55}5657/// Weights for pallet_nonfungible using the Substrate node and recommended hardware.58pub struct SubstrateWeight<T>(PhantomData<T>);59impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {60 // Storage: Nonfungible TokensMinted (r:1 w:1)61 // Storage: Nonfungible AccountBalance (r:1 w:1)62 // Storage: Nonfungible TokenProperties (r:1 w:1)63 // Storage: Common CollectionPropertyPermissions (r:1 w:0)64 // Storage: Nonfungible TokenData (r:0 w:1)65 // Storage: Nonfungible Owned (r:0 w:1)66 fn create_item() -> Weight {67 Weight::from_ref_time(34_815_000 as u64)68 .saturating_add(T::DbWeight::get().reads(4 as u64))69 .saturating_add(T::DbWeight::get().writes(5 as u64))70 }71 // Storage: Nonfungible TokensMinted (r:1 w:1)72 // Storage: Nonfungible AccountBalance (r:1 w:1)73 // Storage: Nonfungible TokenProperties (r:4 w:4)74 // Storage: Common CollectionPropertyPermissions (r:1 w:0)75 // Storage: Nonfungible TokenData (r:0 w:4)76 // Storage: Nonfungible Owned (r:0 w:4)77 fn create_multiple_items(b: u32, ) -> Weight {78 Weight::from_ref_time(18_772_483 as u64)79 // Standard Error: 5_66480 .saturating_add(Weight::from_ref_time(7_602_706 as u64).saturating_mul(b as u64))81 .saturating_add(T::DbWeight::get().reads(3 as u64))82 .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(b as u64)))83 .saturating_add(T::DbWeight::get().writes(2 as u64))84 .saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(b as u64)))85 }86 // Storage: Nonfungible TokensMinted (r:1 w:1)87 // Storage: Nonfungible AccountBalance (r:4 w:4)88 // Storage: Nonfungible TokenProperties (r:4 w:4)89 // Storage: Common CollectionPropertyPermissions (r:1 w:0)90 // Storage: Nonfungible TokenData (r:0 w:4)91 // Storage: Nonfungible Owned (r:0 w:4)92 fn create_multiple_items_ex(b: u32, ) -> Weight {93 Weight::from_ref_time(15_449_226 as u64)94 // Standard Error: 6_01295 .saturating_add(Weight::from_ref_time(9_325_591 as u64).saturating_mul(b as u64))96 .saturating_add(T::DbWeight::get().reads(2 as u64))97 .saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(b as u64)))98 .saturating_add(T::DbWeight::get().writes(1 as u64))99 .saturating_add(T::DbWeight::get().writes((4 as u64).saturating_mul(b as u64)))100 }101 // Storage: Nonfungible TokenData (r:1 w:1)102 // Storage: Nonfungible TokenChildren (r:1 w:0)103 // Storage: Nonfungible TokensBurnt (r:1 w:1)104 // Storage: Nonfungible AccountBalance (r:1 w:1)105 // Storage: Nonfungible Allowance (r:1 w:0)106 // Storage: Nonfungible Owned (r:0 w:1)107 // Storage: Nonfungible TokenProperties (r:0 w:1)108 fn burn_item() -> Weight {109 Weight::from_ref_time(35_221_000 as u64)110 .saturating_add(T::DbWeight::get().reads(5 as u64))111 .saturating_add(T::DbWeight::get().writes(5 as u64))112 }113 // Storage: Nonfungible TokenChildren (r:1 w:0)114 // Storage: Nonfungible TokenData (r:1 w:1)115 // Storage: Nonfungible TokensBurnt (r:1 w:1)116 // Storage: Nonfungible AccountBalance (r:1 w:1)117 // Storage: Nonfungible Allowance (r:1 w:0)118 // Storage: Nonfungible Owned (r:0 w:1)119 // Storage: Nonfungible TokenProperties (r:0 w:1)120 fn burn_recursively_self_raw() -> Weight {121 Weight::from_ref_time(45_504_000 as u64)122 .saturating_add(T::DbWeight::get().reads(5 as u64))123 .saturating_add(T::DbWeight::get().writes(5 as u64))124 }125 // Storage: Nonfungible TokenChildren (r:1 w:0)126 // Storage: Nonfungible TokenData (r:1 w:1)127 // Storage: Nonfungible TokensBurnt (r:1 w:1)128 // Storage: Nonfungible AccountBalance (r:1 w:1)129 // Storage: Nonfungible Allowance (r:1 w:0)130 // Storage: Nonfungible Owned (r:0 w:1)131 // Storage: Nonfungible TokenProperties (r:0 w:1)132 // Storage: Common CollectionById (r:1 w:0)133 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {134 Weight::from_ref_time(45_539_000 as u64)135 // Standard Error: 1_047_413136 .saturating_add(Weight::from_ref_time(216_998_419 as u64).saturating_mul(b as u64))137 .saturating_add(T::DbWeight::get().reads(7 as u64))138 .saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(b as u64)))139 .saturating_add(T::DbWeight::get().writes(6 as u64))140 .saturating_add(T::DbWeight::get().writes((4 as u64).saturating_mul(b as u64)))141 }142 // Storage: Nonfungible TokenData (r:1 w:1)143 // Storage: Nonfungible AccountBalance (r:2 w:2)144 // Storage: Nonfungible Allowance (r:1 w:0)145 // Storage: Nonfungible Owned (r:0 w:2)146 fn transfer() -> Weight {147 Weight::from_ref_time(30_047_000 as u64)148 .saturating_add(T::DbWeight::get().reads(4 as u64))149 .saturating_add(T::DbWeight::get().writes(5 as u64))150 }151 // Storage: Nonfungible TokenData (r:1 w:0)152 // Storage: Nonfungible Allowance (r:1 w:1)153 fn approve() -> Weight {154 Weight::from_ref_time(24_476_000 as u64)155 .saturating_add(T::DbWeight::get().reads(2 as u64))156 .saturating_add(T::DbWeight::get().writes(1 as u64))157 }158 // Storage: Nonfungible TokenData (r:1 w:0)159 // Storage: Nonfungible Allowance (r:1 w:1)160 fn approve_from() -> Weight {161 Weight::from_ref_time(22_818_000 as u64)162 .saturating_add(T::DbWeight::get().reads(2 as u64))163 .saturating_add(T::DbWeight::get().writes(1 as u64))164 }165 // Storage: Nonfungible Allowance (r:1 w:1)166 // Storage: Nonfungible TokenData (r:1 w:1)167 // Storage: Nonfungible AccountBalance (r:2 w:2)168 // Storage: Nonfungible Owned (r:0 w:2)169 fn transfer_from() -> Weight {170 Weight::from_ref_time(37_251_000 as u64)171 .saturating_add(T::DbWeight::get().reads(4 as u64))172 .saturating_add(T::DbWeight::get().writes(6 as u64))173 }174 // Storage: Nonfungible Allowance (r:1 w:1)175 // Storage: Nonfungible TokenData (r:1 w:1)176 // Storage: Nonfungible TokenChildren (r:1 w:0)177 // Storage: Nonfungible TokensBurnt (r:1 w:1)178 // Storage: Nonfungible AccountBalance (r:1 w:1)179 // Storage: Nonfungible Owned (r:0 w:1)180 // Storage: Nonfungible TokenProperties (r:0 w:1)181 fn burn_from() -> Weight {182 Weight::from_ref_time(43_202_000 as u64)183 .saturating_add(T::DbWeight::get().reads(5 as u64))184 .saturating_add(T::DbWeight::get().writes(6 as u64))185 }186 // Storage: Common CollectionPropertyPermissions (r:1 w:1)187 fn set_token_property_permissions(b: u32, ) -> Weight {188 Weight::from_ref_time(5_282_000 as u64)189 // Standard Error: 45_166190 .saturating_add(Weight::from_ref_time(12_937_288 as u64).saturating_mul(b as u64))191 .saturating_add(T::DbWeight::get().reads(1 as u64))192 .saturating_add(T::DbWeight::get().writes(1 as u64))193 }194 // Storage: Nonfungible TokenProperties (r:1 w:1)195 // Storage: Common CollectionPropertyPermissions (r:1 w:0)196 fn set_token_properties(b: u32, ) -> Weight {197 Weight::from_ref_time(28_171_920 as u64)198 // Standard Error: 13_715199 .saturating_add(Weight::from_ref_time(6_217_801 as u64).saturating_mul(b as u64))200 .saturating_add(T::DbWeight::get().reads(2 as u64))201 .saturating_add(T::DbWeight::get().writes(1 as u64))202 }203 // Storage: Nonfungible TokenProperties (r:1 w:1)204 // Storage: Common CollectionPropertyPermissions (r:1 w:0)205 fn delete_token_properties(b: u32, ) -> Weight {206 Weight::from_ref_time(15_511_000 as u64)207 // Standard Error: 68_273208 .saturating_add(Weight::from_ref_time(22_917_441 as u64).saturating_mul(b as u64))209 .saturating_add(T::DbWeight::get().reads(2 as u64))210 .saturating_add(T::DbWeight::get().writes(1 as u64))211 }212 // Storage: Nonfungible TokenData (r:1 w:0)213 fn token_owner() -> Weight {214 Weight::from_ref_time(7_088_000 as u64)215 .saturating_add(T::DbWeight::get().reads(1 as u64))216 }217 // Storage: Nonfungible CollectionAllowance (r:0 w:1)218 fn set_allowance_for_all() -> Weight {219 Weight::from_ref_time(17_607_000 as u64)220 .saturating_add(T::DbWeight::get().writes(1 as u64))221 }222 // Storage: Nonfungible CollectionAllowance (r:1 w:0)223 fn allowance_for_all() -> Weight {224 Weight::from_ref_time(5_315_000 as u64)225 .saturating_add(T::DbWeight::get().reads(1 as u64))226 }227 // Storage: Nonfungible TokenProperties (r:1 w:1)228 fn repair_item() -> Weight {229 Weight::from_ref_time(7_638_000 as u64)230 .saturating_add(T::DbWeight::get().reads(1 as u64))231 .saturating_add(T::DbWeight::get().writes(1 as u64))232 }233}234235// For backwards compatibility and tests236impl WeightInfo for () {237 // Storage: Nonfungible TokensMinted (r:1 w:1)238 // Storage: Nonfungible AccountBalance (r:1 w:1)239 // Storage: Nonfungible TokenProperties (r:1 w:1)240 // Storage: Common CollectionPropertyPermissions (r:1 w:0)241 // Storage: Nonfungible TokenData (r:0 w:1)242 // Storage: Nonfungible Owned (r:0 w:1)243 fn create_item() -> Weight {244 Weight::from_ref_time(34_815_000 as u64)245 .saturating_add(RocksDbWeight::get().reads(4 as u64))246 .saturating_add(RocksDbWeight::get().writes(5 as u64))247 }248 // Storage: Nonfungible TokensMinted (r:1 w:1)249 // Storage: Nonfungible AccountBalance (r:1 w:1)250 // Storage: Nonfungible TokenProperties (r:4 w:4)251 // Storage: Common CollectionPropertyPermissions (r:1 w:0)252 // Storage: Nonfungible TokenData (r:0 w:4)253 // Storage: Nonfungible Owned (r:0 w:4)254 fn create_multiple_items(b: u32, ) -> Weight {255 Weight::from_ref_time(18_772_483 as u64)256 // Standard Error: 5_664257 .saturating_add(Weight::from_ref_time(7_602_706 as u64).saturating_mul(b as u64))258 .saturating_add(RocksDbWeight::get().reads(3 as u64))259 .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(b as u64)))260 .saturating_add(RocksDbWeight::get().writes(2 as u64))261 .saturating_add(RocksDbWeight::get().writes((3 as u64).saturating_mul(b as u64)))262 }263 // Storage: Nonfungible TokensMinted (r:1 w:1)264 // Storage: Nonfungible AccountBalance (r:4 w:4)265 // Storage: Nonfungible TokenProperties (r:4 w:4)266 // Storage: Common CollectionPropertyPermissions (r:1 w:0)267 // Storage: Nonfungible TokenData (r:0 w:4)268 // Storage: Nonfungible Owned (r:0 w:4)269 fn create_multiple_items_ex(b: u32, ) -> Weight {270 Weight::from_ref_time(15_449_226 as u64)271 // Standard Error: 6_012272 .saturating_add(Weight::from_ref_time(9_325_591 as u64).saturating_mul(b as u64))273 .saturating_add(RocksDbWeight::get().reads(2 as u64))274 .saturating_add(RocksDbWeight::get().reads((2 as u64).saturating_mul(b as u64)))275 .saturating_add(RocksDbWeight::get().writes(1 as u64))276 .saturating_add(RocksDbWeight::get().writes((4 as u64).saturating_mul(b as u64)))277 }278 // Storage: Nonfungible TokenData (r:1 w:1)279 // Storage: Nonfungible TokenChildren (r:1 w:0)280 // Storage: Nonfungible TokensBurnt (r:1 w:1)281 // Storage: Nonfungible AccountBalance (r:1 w:1)282 // Storage: Nonfungible Allowance (r:1 w:0)283 // Storage: Nonfungible Owned (r:0 w:1)284 // Storage: Nonfungible TokenProperties (r:0 w:1)285 fn burn_item() -> Weight {286 Weight::from_ref_time(35_221_000 as u64)287 .saturating_add(RocksDbWeight::get().reads(5 as u64))288 .saturating_add(RocksDbWeight::get().writes(5 as u64))289 }290 // Storage: Nonfungible TokenChildren (r:1 w:0)291 // Storage: Nonfungible TokenData (r:1 w:1)292 // Storage: Nonfungible TokensBurnt (r:1 w:1)293 // Storage: Nonfungible AccountBalance (r:1 w:1)294 // Storage: Nonfungible Allowance (r:1 w:0)295 // Storage: Nonfungible Owned (r:0 w:1)296 // Storage: Nonfungible TokenProperties (r:0 w:1)297 fn burn_recursively_self_raw() -> Weight {298 Weight::from_ref_time(45_504_000 as u64)299 .saturating_add(RocksDbWeight::get().reads(5 as u64))300 .saturating_add(RocksDbWeight::get().writes(5 as u64))301 }302 // Storage: Nonfungible TokenChildren (r:1 w:0)303 // Storage: Nonfungible TokenData (r:1 w:1)304 // Storage: Nonfungible TokensBurnt (r:1 w:1)305 // Storage: Nonfungible AccountBalance (r:1 w:1)306 // Storage: Nonfungible Allowance (r:1 w:0)307 // Storage: Nonfungible Owned (r:0 w:1)308 // Storage: Nonfungible TokenProperties (r:0 w:1)309 // Storage: Common CollectionById (r:1 w:0)310 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {311 Weight::from_ref_time(45_539_000 as u64)312 // Standard Error: 1_047_413313 .saturating_add(Weight::from_ref_time(216_998_419 as u64).saturating_mul(b as u64))314 .saturating_add(RocksDbWeight::get().reads(7 as u64))315 .saturating_add(RocksDbWeight::get().reads((4 as u64).saturating_mul(b as u64)))316 .saturating_add(RocksDbWeight::get().writes(6 as u64))317 .saturating_add(RocksDbWeight::get().writes((4 as u64).saturating_mul(b as u64)))318 }319 // Storage: Nonfungible TokenData (r:1 w:1)320 // Storage: Nonfungible AccountBalance (r:2 w:2)321 // Storage: Nonfungible Allowance (r:1 w:0)322 // Storage: Nonfungible Owned (r:0 w:2)323 fn transfer() -> Weight {324 Weight::from_ref_time(30_047_000 as u64)325 .saturating_add(RocksDbWeight::get().reads(4 as u64))326 .saturating_add(RocksDbWeight::get().writes(5 as u64))327 }328 // Storage: Nonfungible TokenData (r:1 w:0)329 // Storage: Nonfungible Allowance (r:1 w:1)330 fn approve() -> Weight {331 Weight::from_ref_time(24_476_000 as u64)332 .saturating_add(RocksDbWeight::get().reads(2 as u64))333 .saturating_add(RocksDbWeight::get().writes(1 as u64))334 }335 // Storage: Nonfungible TokenData (r:1 w:0)336 // Storage: Nonfungible Allowance (r:1 w:1)337 fn approve_from() -> Weight {338 Weight::from_ref_time(22_818_000 as u64)339 .saturating_add(RocksDbWeight::get().reads(2 as u64))340 .saturating_add(RocksDbWeight::get().writes(1 as u64))341 }342 // Storage: Nonfungible Allowance (r:1 w:1)343 // Storage: Nonfungible TokenData (r:1 w:1)344 // Storage: Nonfungible AccountBalance (r:2 w:2)345 // Storage: Nonfungible Owned (r:0 w:2)346 fn transfer_from() -> Weight {347 Weight::from_ref_time(37_251_000 as u64)348 .saturating_add(RocksDbWeight::get().reads(4 as u64))349 .saturating_add(RocksDbWeight::get().writes(6 as u64))350 }351 // Storage: Nonfungible Allowance (r:1 w:1)352 // Storage: Nonfungible TokenData (r:1 w:1)353 // Storage: Nonfungible TokenChildren (r:1 w:0)354 // Storage: Nonfungible TokensBurnt (r:1 w:1)355 // Storage: Nonfungible AccountBalance (r:1 w:1)356 // Storage: Nonfungible Owned (r:0 w:1)357 // Storage: Nonfungible TokenProperties (r:0 w:1)358 fn burn_from() -> Weight {359 Weight::from_ref_time(43_202_000 as u64)360 .saturating_add(RocksDbWeight::get().reads(5 as u64))361 .saturating_add(RocksDbWeight::get().writes(6 as u64))362 }363 // Storage: Common CollectionPropertyPermissions (r:1 w:1)364 fn set_token_property_permissions(b: u32, ) -> Weight {365 Weight::from_ref_time(5_282_000 as u64)366 // Standard Error: 45_166367 .saturating_add(Weight::from_ref_time(12_937_288 as u64).saturating_mul(b as u64))368 .saturating_add(RocksDbWeight::get().reads(1 as u64))369 .saturating_add(RocksDbWeight::get().writes(1 as u64))370 }371 // Storage: Nonfungible TokenProperties (r:1 w:1)372 // Storage: Common CollectionPropertyPermissions (r:1 w:0)373 fn set_token_properties(b: u32, ) -> Weight {374 Weight::from_ref_time(28_171_920 as u64)375 // Standard Error: 13_715376 .saturating_add(Weight::from_ref_time(6_217_801 as u64).saturating_mul(b as u64))377 .saturating_add(RocksDbWeight::get().reads(2 as u64))378 .saturating_add(RocksDbWeight::get().writes(1 as u64))379 }380 // Storage: Nonfungible TokenProperties (r:1 w:1)381 // Storage: Common CollectionPropertyPermissions (r:1 w:0)382 fn delete_token_properties(b: u32, ) -> Weight {383 Weight::from_ref_time(15_511_000 as u64)384 // Standard Error: 68_273385 .saturating_add(Weight::from_ref_time(22_917_441 as u64).saturating_mul(b as u64))386 .saturating_add(RocksDbWeight::get().reads(2 as u64))387 .saturating_add(RocksDbWeight::get().writes(1 as u64))388 }389 // Storage: Nonfungible TokenData (r:1 w:0)390 fn token_owner() -> Weight {391 Weight::from_ref_time(7_088_000 as u64)392 .saturating_add(RocksDbWeight::get().reads(1 as u64))393 }394 // Storage: Nonfungible CollectionAllowance (r:0 w:1)395 fn set_allowance_for_all() -> Weight {396 Weight::from_ref_time(17_607_000 as u64)397 .saturating_add(RocksDbWeight::get().writes(1 as u64))398 }399 // Storage: Nonfungible CollectionAllowance (r:1 w:0)400 fn allowance_for_all() -> Weight {401 Weight::from_ref_time(5_315_000 as u64)402 .saturating_add(RocksDbWeight::get().reads(1 as u64))403 }404 // Storage: Nonfungible TokenProperties (r:1 w:1)405 fn repair_item() -> Weight {406 Weight::from_ref_time(7_638_000 as u64)407 .saturating_add(RocksDbWeight::get().reads(1 as u64))408 .saturating_add(RocksDbWeight::get().writes(1 as u64))409 }410}1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_nonfungible4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-01-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// pallet13// --pallet14// pallet-nonfungible15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/nonfungible/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_nonfungible.36pub trait WeightInfo {37 fn create_item() -> Weight;38 fn create_multiple_items(b: u32, ) -> Weight;39 fn create_multiple_items_ex(b: u32, ) -> Weight;40 fn burn_item() -> Weight;41 fn burn_recursively_self_raw() -> Weight;42 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight;43 fn transfer() -> Weight;44 fn approve() -> Weight;45 fn approve_from() -> Weight;46 fn transfer_from() -> Weight;47 fn burn_from() -> Weight;48 fn set_token_property_permissions(b: u32, ) -> Weight;49 fn set_token_properties(b: u32, ) -> Weight;50 fn delete_token_properties(b: u32, ) -> Weight;51 fn token_owner() -> Weight;52 fn set_allowance_for_all() -> Weight;53 fn allowance_for_all() -> Weight;54 fn repair_item() -> Weight;55}5657/// Weights for pallet_nonfungible using the Substrate node and recommended hardware.58pub struct SubstrateWeight<T>(PhantomData<T>);59impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {60 // Storage: Nonfungible TokensMinted (r:1 w:1)61 // Storage: Nonfungible AccountBalance (r:1 w:1)62 // Storage: Nonfungible TokenProperties (r:1 w:1)63 // Storage: Common CollectionPropertyPermissions (r:1 w:0)64 // Storage: Nonfungible TokenData (r:0 w:1)65 // Storage: Nonfungible Owned (r:0 w:1)66 fn create_item() -> Weight {67 Weight::from_ref_time(34_313_000 as u64)68 .saturating_add(T::DbWeight::get().reads(4 as u64))69 .saturating_add(T::DbWeight::get().writes(5 as u64))70 }71 // Storage: Nonfungible TokensMinted (r:1 w:1)72 // Storage: Nonfungible AccountBalance (r:1 w:1)73 // Storage: Nonfungible TokenProperties (r:4 w:4)74 // Storage: Common CollectionPropertyPermissions (r:1 w:0)75 // Storage: Nonfungible TokenData (r:0 w:4)76 // Storage: Nonfungible Owned (r:0 w:4)77 fn create_multiple_items(b: u32, ) -> Weight {78 Weight::from_ref_time(19_201_665 as u64)79 // Standard Error: 4_78080 .saturating_add(Weight::from_ref_time(7_373_591 as u64).saturating_mul(b as u64))81 .saturating_add(T::DbWeight::get().reads(3 as u64))82 .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(b as u64)))83 .saturating_add(T::DbWeight::get().writes(2 as u64))84 .saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(b as u64)))85 }86 // Storage: Nonfungible TokensMinted (r:1 w:1)87 // Storage: Nonfungible AccountBalance (r:4 w:4)88 // Storage: Nonfungible TokenProperties (r:4 w:4)89 // Storage: Common CollectionPropertyPermissions (r:1 w:0)90 // Storage: Nonfungible TokenData (r:0 w:4)91 // Storage: Nonfungible Owned (r:0 w:4)92 fn create_multiple_items_ex(b: u32, ) -> Weight {93 Weight::from_ref_time(13_021_971 as u64)94 // Standard Error: 5_11795 .saturating_add(Weight::from_ref_time(9_163_935 as u64).saturating_mul(b as u64))96 .saturating_add(T::DbWeight::get().reads(2 as u64))97 .saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(b as u64)))98 .saturating_add(T::DbWeight::get().writes(1 as u64))99 .saturating_add(T::DbWeight::get().writes((4 as u64).saturating_mul(b as u64)))100 }101 // Storage: Nonfungible TokenData (r:1 w:1)102 // Storage: Nonfungible TokenChildren (r:1 w:0)103 // Storage: Nonfungible TokensBurnt (r:1 w:1)104 // Storage: Nonfungible AccountBalance (r:1 w:1)105 // Storage: Nonfungible Allowance (r:1 w:0)106 // Storage: Nonfungible Owned (r:0 w:1)107 // Storage: Nonfungible TokenProperties (r:0 w:1)108 fn burn_item() -> Weight {109 Weight::from_ref_time(35_727_000 as u64)110 .saturating_add(T::DbWeight::get().reads(5 as u64))111 .saturating_add(T::DbWeight::get().writes(5 as u64))112 }113 // Storage: Nonfungible TokenChildren (r:1 w:0)114 // Storage: Nonfungible TokenData (r:1 w:1)115 // Storage: Nonfungible TokensBurnt (r:1 w:1)116 // Storage: Nonfungible AccountBalance (r:1 w:1)117 // Storage: Nonfungible Allowance (r:1 w:0)118 // Storage: Nonfungible Owned (r:0 w:1)119 // Storage: Nonfungible TokenProperties (r:0 w:1)120 fn burn_recursively_self_raw() -> Weight {121 Weight::from_ref_time(44_618_000 as u64)122 .saturating_add(T::DbWeight::get().reads(5 as u64))123 .saturating_add(T::DbWeight::get().writes(5 as u64))124 }125 // Storage: Nonfungible TokenChildren (r:1 w:0)126 // Storage: Nonfungible TokenData (r:1 w:1)127 // Storage: Nonfungible TokensBurnt (r:1 w:1)128 // Storage: Nonfungible AccountBalance (r:1 w:1)129 // Storage: Nonfungible Allowance (r:1 w:0)130 // Storage: Nonfungible Owned (r:0 w:1)131 // Storage: Nonfungible TokenProperties (r:0 w:1)132 // Storage: Common CollectionById (r:1 w:0)133 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {134 Weight::from_ref_time(45_095_000 as u64)135 // Standard Error: 1_034_807136 .saturating_add(Weight::from_ref_time(215_008_105 as u64).saturating_mul(b as u64))137 .saturating_add(T::DbWeight::get().reads(7 as u64))138 .saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(b as u64)))139 .saturating_add(T::DbWeight::get().writes(6 as u64))140 .saturating_add(T::DbWeight::get().writes((4 as u64).saturating_mul(b as u64)))141 }142 // Storage: Nonfungible TokenData (r:1 w:1)143 // Storage: Nonfungible AccountBalance (r:2 w:2)144 // Storage: Nonfungible Allowance (r:1 w:0)145 // Storage: Nonfungible Owned (r:0 w:2)146 fn transfer() -> Weight {147 Weight::from_ref_time(29_636_000 as u64)148 .saturating_add(T::DbWeight::get().reads(4 as u64))149 .saturating_add(T::DbWeight::get().writes(5 as u64))150 }151 // Storage: Nonfungible TokenData (r:1 w:0)152 // Storage: Nonfungible Allowance (r:1 w:1)153 fn approve() -> Weight {154 Weight::from_ref_time(22_440_000 as u64)155 .saturating_add(T::DbWeight::get().reads(2 as u64))156 .saturating_add(T::DbWeight::get().writes(1 as u64))157 }158 // Storage: Nonfungible TokenData (r:1 w:0)159 // Storage: Nonfungible Allowance (r:1 w:1)160 fn approve_from() -> Weight {161 Weight::from_ref_time(22_519_000 as u64)162 .saturating_add(T::DbWeight::get().reads(2 as u64))163 .saturating_add(T::DbWeight::get().writes(1 as u64))164 }165 // Storage: Nonfungible Allowance (r:1 w:1)166 // Storage: Nonfungible TokenData (r:1 w:1)167 // Storage: Nonfungible AccountBalance (r:2 w:2)168 // Storage: Nonfungible Owned (r:0 w:2)169 fn transfer_from() -> Weight {170 Weight::from_ref_time(36_354_000 as u64)171 .saturating_add(T::DbWeight::get().reads(4 as u64))172 .saturating_add(T::DbWeight::get().writes(6 as u64))173 }174 // Storage: Nonfungible Allowance (r:1 w:1)175 // Storage: Nonfungible TokenData (r:1 w:1)176 // Storage: Nonfungible TokenChildren (r:1 w:0)177 // Storage: Nonfungible TokensBurnt (r:1 w:1)178 // Storage: Nonfungible AccountBalance (r:1 w:1)179 // Storage: Nonfungible Owned (r:0 w:1)180 // Storage: Nonfungible TokenProperties (r:0 w:1)181 fn burn_from() -> Weight {182 Weight::from_ref_time(42_533_000 as u64)183 .saturating_add(T::DbWeight::get().reads(5 as u64))184 .saturating_add(T::DbWeight::get().writes(6 as u64))185 }186 // Storage: Common CollectionPropertyPermissions (r:1 w:1)187 fn set_token_property_permissions(b: u32, ) -> Weight {188 Weight::from_ref_time(5_189_000 as u64)189 // Standard Error: 45_637190 .saturating_add(Weight::from_ref_time(12_760_623 as u64).saturating_mul(b as u64))191 .saturating_add(T::DbWeight::get().reads(1 as u64))192 .saturating_add(T::DbWeight::get().writes(1 as u64))193 }194 // Storage: Nonfungible TokenProperties (r:1 w:1)195 // Storage: Common CollectionPropertyPermissions (r:1 w:0)196 fn set_token_properties(b: u32, ) -> Weight {197 Weight::from_ref_time(22_023_308 as u64)198 // Standard Error: 10_490199 .saturating_add(Weight::from_ref_time(6_199_746 as u64).saturating_mul(b as u64))200 .saturating_add(T::DbWeight::get().reads(2 as u64))201 .saturating_add(T::DbWeight::get().writes(1 as u64))202 }203 // Storage: Nonfungible TokenProperties (r:1 w:1)204 // Storage: Common CollectionPropertyPermissions (r:1 w:0)205 fn delete_token_properties(b: u32, ) -> Weight {206 Weight::from_ref_time(15_064_000 as u64)207 // Standard Error: 70_297208 .saturating_add(Weight::from_ref_time(22_826_857 as u64).saturating_mul(b as u64))209 .saturating_add(T::DbWeight::get().reads(2 as u64))210 .saturating_add(T::DbWeight::get().writes(1 as u64))211 }212 // Storage: Nonfungible TokenData (r:1 w:0)213 fn token_owner() -> Weight {214 Weight::from_ref_time(6_837_000 as u64)215 .saturating_add(T::DbWeight::get().reads(1 as u64))216 }217 // Storage: Nonfungible CollectionAllowance (r:0 w:1)218 fn set_allowance_for_all() -> Weight {219 Weight::from_ref_time(16_618_000 as u64)220 .saturating_add(T::DbWeight::get().writes(1 as u64))221 }222 // Storage: Nonfungible CollectionAllowance (r:1 w:0)223 fn allowance_for_all() -> Weight {224 Weight::from_ref_time(5_430_000 as u64)225 .saturating_add(T::DbWeight::get().reads(1 as u64))226 }227 // Storage: Nonfungible TokenProperties (r:1 w:1)228 fn repair_item() -> Weight {229 Weight::from_ref_time(7_776_000 as u64)230 .saturating_add(T::DbWeight::get().reads(1 as u64))231 .saturating_add(T::DbWeight::get().writes(1 as u64))232 }233}234235// For backwards compatibility and tests236impl WeightInfo for () {237 // Storage: Nonfungible TokensMinted (r:1 w:1)238 // Storage: Nonfungible AccountBalance (r:1 w:1)239 // Storage: Nonfungible TokenProperties (r:1 w:1)240 // Storage: Common CollectionPropertyPermissions (r:1 w:0)241 // Storage: Nonfungible TokenData (r:0 w:1)242 // Storage: Nonfungible Owned (r:0 w:1)243 fn create_item() -> Weight {244 Weight::from_ref_time(34_313_000 as u64)245 .saturating_add(RocksDbWeight::get().reads(4 as u64))246 .saturating_add(RocksDbWeight::get().writes(5 as u64))247 }248 // Storage: Nonfungible TokensMinted (r:1 w:1)249 // Storage: Nonfungible AccountBalance (r:1 w:1)250 // Storage: Nonfungible TokenProperties (r:4 w:4)251 // Storage: Common CollectionPropertyPermissions (r:1 w:0)252 // Storage: Nonfungible TokenData (r:0 w:4)253 // Storage: Nonfungible Owned (r:0 w:4)254 fn create_multiple_items(b: u32, ) -> Weight {255 Weight::from_ref_time(19_201_665 as u64)256 // Standard Error: 4_780257 .saturating_add(Weight::from_ref_time(7_373_591 as u64).saturating_mul(b as u64))258 .saturating_add(RocksDbWeight::get().reads(3 as u64))259 .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(b as u64)))260 .saturating_add(RocksDbWeight::get().writes(2 as u64))261 .saturating_add(RocksDbWeight::get().writes((3 as u64).saturating_mul(b as u64)))262 }263 // Storage: Nonfungible TokensMinted (r:1 w:1)264 // Storage: Nonfungible AccountBalance (r:4 w:4)265 // Storage: Nonfungible TokenProperties (r:4 w:4)266 // Storage: Common CollectionPropertyPermissions (r:1 w:0)267 // Storage: Nonfungible TokenData (r:0 w:4)268 // Storage: Nonfungible Owned (r:0 w:4)269 fn create_multiple_items_ex(b: u32, ) -> Weight {270 Weight::from_ref_time(13_021_971 as u64)271 // Standard Error: 5_117272 .saturating_add(Weight::from_ref_time(9_163_935 as u64).saturating_mul(b as u64))273 .saturating_add(RocksDbWeight::get().reads(2 as u64))274 .saturating_add(RocksDbWeight::get().reads((2 as u64).saturating_mul(b as u64)))275 .saturating_add(RocksDbWeight::get().writes(1 as u64))276 .saturating_add(RocksDbWeight::get().writes((4 as u64).saturating_mul(b as u64)))277 }278 // Storage: Nonfungible TokenData (r:1 w:1)279 // Storage: Nonfungible TokenChildren (r:1 w:0)280 // Storage: Nonfungible TokensBurnt (r:1 w:1)281 // Storage: Nonfungible AccountBalance (r:1 w:1)282 // Storage: Nonfungible Allowance (r:1 w:0)283 // Storage: Nonfungible Owned (r:0 w:1)284 // Storage: Nonfungible TokenProperties (r:0 w:1)285 fn burn_item() -> Weight {286 Weight::from_ref_time(35_727_000 as u64)287 .saturating_add(RocksDbWeight::get().reads(5 as u64))288 .saturating_add(RocksDbWeight::get().writes(5 as u64))289 }290 // Storage: Nonfungible TokenChildren (r:1 w:0)291 // Storage: Nonfungible TokenData (r:1 w:1)292 // Storage: Nonfungible TokensBurnt (r:1 w:1)293 // Storage: Nonfungible AccountBalance (r:1 w:1)294 // Storage: Nonfungible Allowance (r:1 w:0)295 // Storage: Nonfungible Owned (r:0 w:1)296 // Storage: Nonfungible TokenProperties (r:0 w:1)297 fn burn_recursively_self_raw() -> Weight {298 Weight::from_ref_time(44_618_000 as u64)299 .saturating_add(RocksDbWeight::get().reads(5 as u64))300 .saturating_add(RocksDbWeight::get().writes(5 as u64))301 }302 // Storage: Nonfungible TokenChildren (r:1 w:0)303 // Storage: Nonfungible TokenData (r:1 w:1)304 // Storage: Nonfungible TokensBurnt (r:1 w:1)305 // Storage: Nonfungible AccountBalance (r:1 w:1)306 // Storage: Nonfungible Allowance (r:1 w:0)307 // Storage: Nonfungible Owned (r:0 w:1)308 // Storage: Nonfungible TokenProperties (r:0 w:1)309 // Storage: Common CollectionById (r:1 w:0)310 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {311 Weight::from_ref_time(45_095_000 as u64)312 // Standard Error: 1_034_807313 .saturating_add(Weight::from_ref_time(215_008_105 as u64).saturating_mul(b as u64))314 .saturating_add(RocksDbWeight::get().reads(7 as u64))315 .saturating_add(RocksDbWeight::get().reads((4 as u64).saturating_mul(b as u64)))316 .saturating_add(RocksDbWeight::get().writes(6 as u64))317 .saturating_add(RocksDbWeight::get().writes((4 as u64).saturating_mul(b as u64)))318 }319 // Storage: Nonfungible TokenData (r:1 w:1)320 // Storage: Nonfungible AccountBalance (r:2 w:2)321 // Storage: Nonfungible Allowance (r:1 w:0)322 // Storage: Nonfungible Owned (r:0 w:2)323 fn transfer() -> Weight {324 Weight::from_ref_time(29_636_000 as u64)325 .saturating_add(RocksDbWeight::get().reads(4 as u64))326 .saturating_add(RocksDbWeight::get().writes(5 as u64))327 }328 // Storage: Nonfungible TokenData (r:1 w:0)329 // Storage: Nonfungible Allowance (r:1 w:1)330 fn approve() -> Weight {331 Weight::from_ref_time(22_440_000 as u64)332 .saturating_add(RocksDbWeight::get().reads(2 as u64))333 .saturating_add(RocksDbWeight::get().writes(1 as u64))334 }335 // Storage: Nonfungible TokenData (r:1 w:0)336 // Storage: Nonfungible Allowance (r:1 w:1)337 fn approve_from() -> Weight {338 Weight::from_ref_time(22_519_000 as u64)339 .saturating_add(RocksDbWeight::get().reads(2 as u64))340 .saturating_add(RocksDbWeight::get().writes(1 as u64))341 }342 // Storage: Nonfungible Allowance (r:1 w:1)343 // Storage: Nonfungible TokenData (r:1 w:1)344 // Storage: Nonfungible AccountBalance (r:2 w:2)345 // Storage: Nonfungible Owned (r:0 w:2)346 fn transfer_from() -> Weight {347 Weight::from_ref_time(36_354_000 as u64)348 .saturating_add(RocksDbWeight::get().reads(4 as u64))349 .saturating_add(RocksDbWeight::get().writes(6 as u64))350 }351 // Storage: Nonfungible Allowance (r:1 w:1)352 // Storage: Nonfungible TokenData (r:1 w:1)353 // Storage: Nonfungible TokenChildren (r:1 w:0)354 // Storage: Nonfungible TokensBurnt (r:1 w:1)355 // Storage: Nonfungible AccountBalance (r:1 w:1)356 // Storage: Nonfungible Owned (r:0 w:1)357 // Storage: Nonfungible TokenProperties (r:0 w:1)358 fn burn_from() -> Weight {359 Weight::from_ref_time(42_533_000 as u64)360 .saturating_add(RocksDbWeight::get().reads(5 as u64))361 .saturating_add(RocksDbWeight::get().writes(6 as u64))362 }363 // Storage: Common CollectionPropertyPermissions (r:1 w:1)364 fn set_token_property_permissions(b: u32, ) -> Weight {365 Weight::from_ref_time(5_189_000 as u64)366 // Standard Error: 45_637367 .saturating_add(Weight::from_ref_time(12_760_623 as u64).saturating_mul(b as u64))368 .saturating_add(RocksDbWeight::get().reads(1 as u64))369 .saturating_add(RocksDbWeight::get().writes(1 as u64))370 }371 // Storage: Nonfungible TokenProperties (r:1 w:1)372 // Storage: Common CollectionPropertyPermissions (r:1 w:0)373 fn set_token_properties(b: u32, ) -> Weight {374 Weight::from_ref_time(22_023_308 as u64)375 // Standard Error: 10_490376 .saturating_add(Weight::from_ref_time(6_199_746 as u64).saturating_mul(b as u64))377 .saturating_add(RocksDbWeight::get().reads(2 as u64))378 .saturating_add(RocksDbWeight::get().writes(1 as u64))379 }380 // Storage: Nonfungible TokenProperties (r:1 w:1)381 // Storage: Common CollectionPropertyPermissions (r:1 w:0)382 fn delete_token_properties(b: u32, ) -> Weight {383 Weight::from_ref_time(15_064_000 as u64)384 // Standard Error: 70_297385 .saturating_add(Weight::from_ref_time(22_826_857 as u64).saturating_mul(b as u64))386 .saturating_add(RocksDbWeight::get().reads(2 as u64))387 .saturating_add(RocksDbWeight::get().writes(1 as u64))388 }389 // Storage: Nonfungible TokenData (r:1 w:0)390 fn token_owner() -> Weight {391 Weight::from_ref_time(6_837_000 as u64)392 .saturating_add(RocksDbWeight::get().reads(1 as u64))393 }394 // Storage: Nonfungible CollectionAllowance (r:0 w:1)395 fn set_allowance_for_all() -> Weight {396 Weight::from_ref_time(16_618_000 as u64)397 .saturating_add(RocksDbWeight::get().writes(1 as u64))398 }399 // Storage: Nonfungible CollectionAllowance (r:1 w:0)400 fn allowance_for_all() -> Weight {401 Weight::from_ref_time(5_430_000 as u64)402 .saturating_add(RocksDbWeight::get().reads(1 as u64))403 }404 // Storage: Nonfungible TokenProperties (r:1 w:1)405 fn repair_item() -> Weight {406 Weight::from_ref_time(7_776_000 as u64)407 .saturating_add(RocksDbWeight::get().reads(1 as u64))408 .saturating_add(RocksDbWeight::get().writes(1 as u64))409 }410}pallets/refungible/src/weights.rsdiffbeforeafterboth--- a/pallets/refungible/src/weights.rs
+++ b/pallets/refungible/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_refungible
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-01-18, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-01-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -72,7 +72,7 @@
// Storage: Refungible TotalSupply (r:0 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn create_item() -> Weight {
- Weight::from_ref_time(37_536_000 as u64)
+ Weight::from_ref_time(39_775_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
@@ -84,9 +84,9 @@
// Storage: Refungible TotalSupply (r:0 w:4)
// Storage: Refungible Owned (r:0 w:4)
fn create_multiple_items(b: u32, ) -> Weight {
- Weight::from_ref_time(16_345_581 as u64)
- // Standard Error: 5_346
- .saturating_add(Weight::from_ref_time(9_281_076 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(19_486_095 as u64)
+ // Standard Error: 8_015
+ .saturating_add(Weight::from_ref_time(9_037_181 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(b as u64)))
.saturating_add(T::DbWeight::get().writes(2 as u64))
@@ -100,9 +100,9 @@
// Storage: Refungible TotalSupply (r:0 w:4)
// Storage: Refungible Owned (r:0 w:4)
fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {
- Weight::from_ref_time(11_246_602 as u64)
- // Standard Error: 8_015
- .saturating_add(Weight::from_ref_time(11_043_114 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(14_091_538 as u64)
+ // Standard Error: 6_448
+ .saturating_add(Weight::from_ref_time(10_777_780 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(b as u64)))
.saturating_add(T::DbWeight::get().writes(1 as u64))
@@ -116,9 +116,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 {
- Weight::from_ref_time(31_350_923 as u64)
- // Standard Error: 4_061
- .saturating_add(Weight::from_ref_time(6_007_108 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(30_958_687 as u64)
+ // Standard Error: 3_000
+ .saturating_add(Weight::from_ref_time(5_976_114 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(b as u64)))
.saturating_add(T::DbWeight::get().writes(3 as u64))
@@ -129,7 +129,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn burn_item_partial() -> Weight {
- Weight::from_ref_time(47_342_000 as u64)
+ Weight::from_ref_time(46_498_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -140,14 +140,14 @@
// Storage: Refungible Owned (r:0 w:1)
// Storage: Refungible TokenProperties (r:0 w:1)
fn burn_item_fully() -> Weight {
- Weight::from_ref_time(40_664_000 as u64)
+ Weight::from_ref_time(42_429_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
// Storage: Refungible Balance (r:2 w:2)
// Storage: Refungible TotalSupply (r:1 w:0)
fn transfer_normal() -> Weight {
- Weight::from_ref_time(31_585_000 as u64)
+ Weight::from_ref_time(31_435_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -156,7 +156,7 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_creating() -> Weight {
- Weight::from_ref_time(35_015_000 as u64)
+ Weight::from_ref_time(34_913_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -165,7 +165,7 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_removing() -> Weight {
- Weight::from_ref_time(38_209_000 as u64)
+ Weight::from_ref_time(37_992_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -174,21 +174,21 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:2)
fn transfer_creating_removing() -> Weight {
- Weight::from_ref_time(38_549_000 as u64)
+ Weight::from_ref_time(37_935_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
// Storage: Refungible Balance (r:1 w:0)
// Storage: Refungible Allowance (r:0 w:1)
fn approve() -> Weight {
- Weight::from_ref_time(24_503_000 as u64)
+ Weight::from_ref_time(23_900_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Refungible Balance (r:1 w:0)
// Storage: Refungible Allowance (r:0 w:1)
fn approve_from() -> Weight {
- Weight::from_ref_time(24_584_000 as u64)
+ Weight::from_ref_time(24_012_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -196,7 +196,7 @@
// Storage: Refungible Balance (r:2 w:2)
// Storage: Refungible TotalSupply (r:1 w:0)
fn transfer_from_normal() -> Weight {
- Weight::from_ref_time(41_001_000 as u64)
+ Weight::from_ref_time(40_384_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -206,7 +206,7 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_from_creating() -> Weight {
- Weight::from_ref_time(43_884_000 as u64)
+ Weight::from_ref_time(43_372_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
}
@@ -216,7 +216,7 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_from_removing() -> Weight {
- Weight::from_ref_time(47_515_000 as u64)
+ Weight::from_ref_time(46_470_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
}
@@ -226,7 +226,7 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:2)
fn transfer_from_creating_removing() -> Weight {
- Weight::from_ref_time(47_087_000 as u64)
+ Weight::from_ref_time(46_394_000 as u64)
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(7 as u64))
}
@@ -238,61 +238,61 @@
// Storage: Refungible Owned (r:0 w:1)
// Storage: Refungible TokenProperties (r:0 w:1)
fn burn_from() -> Weight {
- Weight::from_ref_time(52_735_000 as u64)
+ Weight::from_ref_time(51_957_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(7 as u64))
}
// Storage: Common CollectionPropertyPermissions (r:1 w:1)
fn set_token_property_permissions(b: u32, ) -> Weight {
- Weight::from_ref_time(5_232_000 as u64)
- // Standard Error: 43_746
- .saturating_add(Weight::from_ref_time(12_961_609 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(5_257_000 as u64)
+ // Standard Error: 47_229
+ .saturating_add(Weight::from_ref_time(12_976_974 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Refungible TokenProperties (r:1 w:1)
// Storage: Common CollectionPropertyPermissions (r:1 w:0)
fn set_token_properties(b: u32, ) -> Weight {
- Weight::from_ref_time(18_287_762 as u64)
- // Standard Error: 31_915
- .saturating_add(Weight::from_ref_time(7_070_524 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(13_103_140 as u64)
+ // Standard Error: 62_508
+ .saturating_add(Weight::from_ref_time(6_883_577 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Refungible TokenProperties (r:1 w:1)
// Storage: Common CollectionPropertyPermissions (r:1 w:0)
fn delete_token_properties(b: u32, ) -> Weight {
- Weight::from_ref_time(15_075_000 as u64)
- // Standard Error: 69_091
- .saturating_add(Weight::from_ref_time(22_793_781 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(15_068_000 as u64)
+ // Standard Error: 70_494
+ .saturating_add(Weight::from_ref_time(22_758_838 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Refungible TotalSupply (r:1 w:1)
// Storage: Refungible Balance (r:1 w:1)
fn repartition_item() -> Weight {
- Weight::from_ref_time(25_147_000 as u64)
+ Weight::from_ref_time(24_640_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Refungible Balance (r:2 w:0)
fn token_owner() -> Weight {
- Weight::from_ref_time(9_921_000 as u64)
+ Weight::from_ref_time(9_634_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
}
// Storage: Refungible CollectionAllowance (r:0 w:1)
fn set_allowance_for_all() -> Weight {
- Weight::from_ref_time(17_822_000 as u64)
+ Weight::from_ref_time(17_366_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Refungible CollectionAllowance (r:1 w:0)
fn allowance_for_all() -> Weight {
- Weight::from_ref_time(5_265_000 as u64)
+ Weight::from_ref_time(5_419_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
}
// Storage: Refungible TokenProperties (r:1 w:1)
fn repair_item() -> Weight {
- Weight::from_ref_time(7_229_000 as u64)
+ Weight::from_ref_time(7_196_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -308,7 +308,7 @@
// Storage: Refungible TotalSupply (r:0 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn create_item() -> Weight {
- Weight::from_ref_time(37_536_000 as u64)
+ Weight::from_ref_time(39_775_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(6 as u64))
}
@@ -320,9 +320,9 @@
// Storage: Refungible TotalSupply (r:0 w:4)
// Storage: Refungible Owned (r:0 w:4)
fn create_multiple_items(b: u32, ) -> Weight {
- Weight::from_ref_time(16_345_581 as u64)
- // Standard Error: 5_346
- .saturating_add(Weight::from_ref_time(9_281_076 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(19_486_095 as u64)
+ // Standard Error: 8_015
+ .saturating_add(Weight::from_ref_time(9_037_181 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(b as u64)))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
@@ -336,9 +336,9 @@
// Storage: Refungible TotalSupply (r:0 w:4)
// Storage: Refungible Owned (r:0 w:4)
fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {
- Weight::from_ref_time(11_246_602 as u64)
- // Standard Error: 8_015
- .saturating_add(Weight::from_ref_time(11_043_114 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(14_091_538 as u64)
+ // Standard Error: 6_448
+ .saturating_add(Weight::from_ref_time(10_777_780 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().reads((2 as u64).saturating_mul(b as u64)))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
@@ -352,9 +352,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 {
- Weight::from_ref_time(31_350_923 as u64)
- // Standard Error: 4_061
- .saturating_add(Weight::from_ref_time(6_007_108 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(30_958_687 as u64)
+ // Standard Error: 3_000
+ .saturating_add(Weight::from_ref_time(5_976_114 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(b as u64)))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
@@ -365,7 +365,7 @@
// Storage: Refungible AccountBalance (r:1 w:1)
// Storage: Refungible Owned (r:0 w:1)
fn burn_item_partial() -> Weight {
- Weight::from_ref_time(47_342_000 as u64)
+ Weight::from_ref_time(46_498_000 as u64)
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
@@ -376,14 +376,14 @@
// Storage: Refungible Owned (r:0 w:1)
// Storage: Refungible TokenProperties (r:0 w:1)
fn burn_item_fully() -> Weight {
- Weight::from_ref_time(40_664_000 as u64)
+ Weight::from_ref_time(42_429_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(6 as u64))
}
// Storage: Refungible Balance (r:2 w:2)
// Storage: Refungible TotalSupply (r:1 w:0)
fn transfer_normal() -> Weight {
- Weight::from_ref_time(31_585_000 as u64)
+ Weight::from_ref_time(31_435_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
@@ -392,7 +392,7 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_creating() -> Weight {
- Weight::from_ref_time(35_015_000 as u64)
+ Weight::from_ref_time(34_913_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
@@ -401,7 +401,7 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_removing() -> Weight {
- Weight::from_ref_time(38_209_000 as u64)
+ Weight::from_ref_time(37_992_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
@@ -410,21 +410,21 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:2)
fn transfer_creating_removing() -> Weight {
- Weight::from_ref_time(38_549_000 as u64)
+ Weight::from_ref_time(37_935_000 as u64)
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(6 as u64))
}
// Storage: Refungible Balance (r:1 w:0)
// Storage: Refungible Allowance (r:0 w:1)
fn approve() -> Weight {
- Weight::from_ref_time(24_503_000 as u64)
+ Weight::from_ref_time(23_900_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Refungible Balance (r:1 w:0)
// Storage: Refungible Allowance (r:0 w:1)
fn approve_from() -> Weight {
- Weight::from_ref_time(24_584_000 as u64)
+ Weight::from_ref_time(24_012_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
@@ -432,7 +432,7 @@
// Storage: Refungible Balance (r:2 w:2)
// Storage: Refungible TotalSupply (r:1 w:0)
fn transfer_from_normal() -> Weight {
- Weight::from_ref_time(41_001_000 as u64)
+ Weight::from_ref_time(40_384_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -442,7 +442,7 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_from_creating() -> Weight {
- Weight::from_ref_time(43_884_000 as u64)
+ Weight::from_ref_time(43_372_000 as u64)
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(5 as u64))
}
@@ -452,7 +452,7 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:1)
fn transfer_from_removing() -> Weight {
- Weight::from_ref_time(47_515_000 as u64)
+ Weight::from_ref_time(46_470_000 as u64)
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(5 as u64))
}
@@ -462,7 +462,7 @@
// Storage: Refungible TotalSupply (r:1 w:0)
// Storage: Refungible Owned (r:0 w:2)
fn transfer_from_creating_removing() -> Weight {
- Weight::from_ref_time(47_087_000 as u64)
+ Weight::from_ref_time(46_394_000 as u64)
.saturating_add(RocksDbWeight::get().reads(6 as u64))
.saturating_add(RocksDbWeight::get().writes(7 as u64))
}
@@ -474,61 +474,61 @@
// Storage: Refungible Owned (r:0 w:1)
// Storage: Refungible TokenProperties (r:0 w:1)
fn burn_from() -> Weight {
- Weight::from_ref_time(52_735_000 as u64)
+ Weight::from_ref_time(51_957_000 as u64)
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(7 as u64))
}
// Storage: Common CollectionPropertyPermissions (r:1 w:1)
fn set_token_property_permissions(b: u32, ) -> Weight {
- Weight::from_ref_time(5_232_000 as u64)
- // Standard Error: 43_746
- .saturating_add(Weight::from_ref_time(12_961_609 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(5_257_000 as u64)
+ // Standard Error: 47_229
+ .saturating_add(Weight::from_ref_time(12_976_974 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Refungible TokenProperties (r:1 w:1)
// Storage: Common CollectionPropertyPermissions (r:1 w:0)
fn set_token_properties(b: u32, ) -> Weight {
- Weight::from_ref_time(18_287_762 as u64)
- // Standard Error: 31_915
- .saturating_add(Weight::from_ref_time(7_070_524 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(13_103_140 as u64)
+ // Standard Error: 62_508
+ .saturating_add(Weight::from_ref_time(6_883_577 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Refungible TokenProperties (r:1 w:1)
// Storage: Common CollectionPropertyPermissions (r:1 w:0)
fn delete_token_properties(b: u32, ) -> Weight {
- Weight::from_ref_time(15_075_000 as u64)
- // Standard Error: 69_091
- .saturating_add(Weight::from_ref_time(22_793_781 as u64).saturating_mul(b as u64))
+ Weight::from_ref_time(15_068_000 as u64)
+ // Standard Error: 70_494
+ .saturating_add(Weight::from_ref_time(22_758_838 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Refungible TotalSupply (r:1 w:1)
// Storage: Refungible Balance (r:1 w:1)
fn repartition_item() -> Weight {
- Weight::from_ref_time(25_147_000 as u64)
+ Weight::from_ref_time(24_640_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Refungible Balance (r:2 w:0)
fn token_owner() -> Weight {
- Weight::from_ref_time(9_921_000 as u64)
+ Weight::from_ref_time(9_634_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
}
// Storage: Refungible CollectionAllowance (r:0 w:1)
fn set_allowance_for_all() -> Weight {
- Weight::from_ref_time(17_822_000 as u64)
+ Weight::from_ref_time(17_366_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Refungible CollectionAllowance (r:1 w:0)
fn allowance_for_all() -> Weight {
- Weight::from_ref_time(5_265_000 as u64)
+ Weight::from_ref_time(5_419_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
}
// Storage: Refungible TokenProperties (r:1 w:1)
fn repair_item() -> Weight {
- Weight::from_ref_time(7_229_000 as u64)
+ Weight::from_ref_time(7_196_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
pallets/structure/src/weights.rsdiffbeforeafterboth--- a/pallets/structure/src/weights.rs
+++ b/pallets/structure/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_structure
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-01-18, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-01-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -43,7 +43,7 @@
// Storage: Common CollectionById (r:1 w:0)
// Storage: Nonfungible TokenData (r:1 w:0)
fn find_parent() -> Weight {
- Weight::from_ref_time(12_015_000 as u64)
+ Weight::from_ref_time(11_766_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
}
}
@@ -53,7 +53,7 @@
// Storage: Common CollectionById (r:1 w:0)
// Storage: Nonfungible TokenData (r:1 w:0)
fn find_parent() -> Weight {
- Weight::from_ref_time(12_015_000 as u64)
+ Weight::from_ref_time(11_766_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
}
}
pallets/unique/src/weights.rsdiffbeforeafterboth--- a/pallets/unique/src/weights.rs
+++ b/pallets/unique/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_unique
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-01-18, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-01-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -59,7 +59,7 @@
// Storage: Common CollectionProperties (r:0 w:1)
// Storage: Common CollectionById (r:0 w:1)
fn create_collection() -> Weight {
- Weight::from_ref_time(43_964_000 as u64)
+ Weight::from_ref_time(43_527_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
@@ -71,27 +71,27 @@
// Storage: Common AdminAmount (r:0 w:1)
// Storage: Common CollectionProperties (r:0 w:1)
fn destroy_collection() -> Weight {
- Weight::from_ref_time(62_034_000 as u64)
+ Weight::from_ref_time(59_528_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
// Storage: Common CollectionById (r:1 w:0)
// Storage: Common Allowlist (r:0 w:1)
fn add_to_allow_list() -> Weight {
- Weight::from_ref_time(27_915_000 as u64)
+ Weight::from_ref_time(27_970_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:0)
// Storage: Common Allowlist (r:0 w:1)
fn remove_from_allow_list() -> Weight {
- Weight::from_ref_time(27_912_000 as u64)
+ Weight::from_ref_time(27_736_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn change_collection_owner() -> Weight {
- Weight::from_ref_time(27_282_000 as u64)
+ Weight::from_ref_time(26_991_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -99,7 +99,7 @@
// Storage: Common IsAdmin (r:1 w:1)
// Storage: Common AdminAmount (r:1 w:1)
fn add_collection_admin() -> Weight {
- Weight::from_ref_time(30_782_000 as u64)
+ Weight::from_ref_time(30_851_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -107,43 +107,43 @@
// Storage: Common IsAdmin (r:1 w:1)
// Storage: Common AdminAmount (r:1 w:1)
fn remove_collection_admin() -> Weight {
- Weight::from_ref_time(34_343_000 as u64)
+ Weight::from_ref_time(34_432_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn set_collection_sponsor() -> Weight {
- Weight::from_ref_time(27_196_000 as u64)
+ Weight::from_ref_time(26_862_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn confirm_sponsorship() -> Weight {
- Weight::from_ref_time(27_116_000 as u64)
+ Weight::from_ref_time(26_711_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn remove_collection_sponsor() -> Weight {
- Weight::from_ref_time(27_019_000 as u64)
+ Weight::from_ref_time(38_546_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn set_transfers_enabled_flag() -> Weight {
- Weight::from_ref_time(13_405_000 as u64)
+ Weight::from_ref_time(13_251_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn set_collection_limits() -> Weight {
- Weight::from_ref_time(27_709_000 as u64)
+ Weight::from_ref_time(27_754_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionProperties (r:1 w:1)
fn force_repair_collection() -> Weight {
- Weight::from_ref_time(10_991_000 as u64)
+ Weight::from_ref_time(10_871_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -158,7 +158,7 @@
// Storage: Common CollectionProperties (r:0 w:1)
// Storage: Common CollectionById (r:0 w:1)
fn create_collection() -> Weight {
- Weight::from_ref_time(43_964_000 as u64)
+ Weight::from_ref_time(43_527_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(6 as u64))
}
@@ -170,27 +170,27 @@
// Storage: Common AdminAmount (r:0 w:1)
// Storage: Common CollectionProperties (r:0 w:1)
fn destroy_collection() -> Weight {
- Weight::from_ref_time(62_034_000 as u64)
+ Weight::from_ref_time(59_528_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(6 as u64))
}
// Storage: Common CollectionById (r:1 w:0)
// Storage: Common Allowlist (r:0 w:1)
fn add_to_allow_list() -> Weight {
- Weight::from_ref_time(27_915_000 as u64)
+ Weight::from_ref_time(27_970_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:0)
// Storage: Common Allowlist (r:0 w:1)
fn remove_from_allow_list() -> Weight {
- Weight::from_ref_time(27_912_000 as u64)
+ Weight::from_ref_time(27_736_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn change_collection_owner() -> Weight {
- Weight::from_ref_time(27_282_000 as u64)
+ Weight::from_ref_time(26_991_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
@@ -198,7 +198,7 @@
// Storage: Common IsAdmin (r:1 w:1)
// Storage: Common AdminAmount (r:1 w:1)
fn add_collection_admin() -> Weight {
- Weight::from_ref_time(30_782_000 as u64)
+ Weight::from_ref_time(30_851_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
@@ -206,43 +206,43 @@
// Storage: Common IsAdmin (r:1 w:1)
// Storage: Common AdminAmount (r:1 w:1)
fn remove_collection_admin() -> Weight {
- Weight::from_ref_time(34_343_000 as u64)
+ Weight::from_ref_time(34_432_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn set_collection_sponsor() -> Weight {
- Weight::from_ref_time(27_196_000 as u64)
+ Weight::from_ref_time(26_862_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn confirm_sponsorship() -> Weight {
- Weight::from_ref_time(27_116_000 as u64)
+ Weight::from_ref_time(26_711_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn remove_collection_sponsor() -> Weight {
- Weight::from_ref_time(27_019_000 as u64)
+ Weight::from_ref_time(38_546_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn set_transfers_enabled_flag() -> Weight {
- Weight::from_ref_time(13_405_000 as u64)
+ Weight::from_ref_time(13_251_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionById (r:1 w:1)
fn set_collection_limits() -> Weight {
- Weight::from_ref_time(27_709_000 as u64)
+ Weight::from_ref_time(27_754_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Common CollectionProperties (r:1 w:1)
fn force_repair_collection() -> Weight {
- Weight::from_ref_time(10_991_000 as u64)
+ Weight::from_ref_time(10_871_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
primitives/common/src/constants.rsdiffbeforeafterboth--- a/primitives/common/src/constants.rs
+++ b/primitives/common/src/constants.rs
@@ -52,10 +52,10 @@
pub const SESSION_LENGTH: BlockNumber = HOURS;
// Targeting 0.1 UNQ per transfer
-pub const WEIGHT_TO_FEE_COEFF: u64 = /*<weight2fee>*/77_191_946_012_018_089/*</weight2fee>*/;
+pub const WEIGHT_TO_FEE_COEFF: u64 = /*<weight2fee>*/77_233_712_036_439_751/*</weight2fee>*/;
// Targeting 0.15 UNQ per transfer via ETH
-pub const MIN_GAS_PRICE: u64 = /*<mingasprice>*/1_016_390_998_841/*</mingasprice>*/;
+pub const MIN_GAS_PRICE: u64 = /*<mingasprice>*/1_016_956_047_159/*</mingasprice>*/;
/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.
/// This is used to limit the maximal weight of a single extrinsic.