diff --git a/pallets/common/src/weights.rs b/pallets/common/src/weights.rs index 6dfaa8fd55..8e47211d74 100644 --- a/pallets/common/src/weights.rs +++ b/pallets/common/src/weights.rs @@ -3,9 +3,9 @@ //! Autogenerated weights for pallet_common //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-30, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-10-05, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz` +//! HOSTNAME: `hearthstone`, CPU: `AMD Ryzen 9 7950X3D 16-Core Processor` //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: @@ -20,7 +20,7 @@ // * // --template=.maintain/frame-weight-template.hbs // --steps=50 -// --repeat=400 +// --repeat=80 // --heap-pages=4096 // --output=./pallets/common/src/weights.rs @@ -36,7 +36,7 @@ pub trait WeightInfo { fn set_collection_properties(b: u32, ) -> Weight; fn delete_collection_properties(b: u32, ) -> Weight; fn check_accesslist() -> Weight; - fn init_token_properties_common() -> Weight; + fn property_writer_load_collection_info() -> Weight; } /// Weights for pallet_common using the Substrate node and recommended hardware. @@ -49,10 +49,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `298` // Estimated: `44457` - // Minimum execution time: 4_987_000 picoseconds. - Weight::from_parts(5_119_000, 44457) - // Standard Error: 7_609 - .saturating_add(Weight::from_parts(5_750_459, 0).saturating_mul(b.into())) + // Minimum execution time: 2_840_000 picoseconds. + Weight::from_parts(1_988_405, 44457) + // Standard Error: 7_834 + .saturating_add(Weight::from_parts(3_053_965, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -63,10 +63,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `303 + b * (33030 ±0)` // Estimated: `44457` - // Minimum execution time: 4_923_000 picoseconds. - Weight::from_parts(5_074_000, 44457) - // Standard Error: 36_651 - .saturating_add(Weight::from_parts(23_145_677, 0).saturating_mul(b.into())) + // Minimum execution time: 2_770_000 picoseconds. + Weight::from_parts(2_940_000, 44457) + // Standard Error: 30_686 + .saturating_add(Weight::from_parts(9_801_835, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -76,20 +76,20 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `373` // Estimated: `3535` - // Minimum execution time: 4_271_000 picoseconds. - Weight::from_parts(4_461_000, 3535) + // Minimum execution time: 2_830_000 picoseconds. + Weight::from_parts(2_950_000, 3535) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Common IsAdmin (r:1 w:0) /// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) - fn init_token_properties_common() -> Weight { + fn property_writer_load_collection_info() -> Weight { // Proof Size summary in bytes: // Measured: `326` // Estimated: `20191` - // Minimum execution time: 5_889_000 picoseconds. - Weight::from_parts(6_138_000, 20191) + // Minimum execution time: 3_970_000 picoseconds. + Weight::from_parts(4_140_000, 20191) .saturating_add(T::DbWeight::get().reads(2_u64)) } } @@ -103,10 +103,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `298` // Estimated: `44457` - // Minimum execution time: 4_987_000 picoseconds. - Weight::from_parts(5_119_000, 44457) - // Standard Error: 7_609 - .saturating_add(Weight::from_parts(5_750_459, 0).saturating_mul(b.into())) + // Minimum execution time: 2_840_000 picoseconds. + Weight::from_parts(1_988_405, 44457) + // Standard Error: 7_834 + .saturating_add(Weight::from_parts(3_053_965, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -117,10 +117,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `303 + b * (33030 ±0)` // Estimated: `44457` - // Minimum execution time: 4_923_000 picoseconds. - Weight::from_parts(5_074_000, 44457) - // Standard Error: 36_651 - .saturating_add(Weight::from_parts(23_145_677, 0).saturating_mul(b.into())) + // Minimum execution time: 2_770_000 picoseconds. + Weight::from_parts(2_940_000, 44457) + // Standard Error: 30_686 + .saturating_add(Weight::from_parts(9_801_835, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -130,20 +130,20 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `373` // Estimated: `3535` - // Minimum execution time: 4_271_000 picoseconds. - Weight::from_parts(4_461_000, 3535) + // Minimum execution time: 2_830_000 picoseconds. + Weight::from_parts(2_950_000, 3535) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Common IsAdmin (r:1 w:0) /// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) - fn init_token_properties_common() -> Weight { + fn property_writer_load_collection_info() -> Weight { // Proof Size summary in bytes: // Measured: `326` // Estimated: `20191` - // Minimum execution time: 5_889_000 picoseconds. - Weight::from_parts(6_138_000, 20191) + // Minimum execution time: 3_970_000 picoseconds. + Weight::from_parts(4_140_000, 20191) .saturating_add(RocksDbWeight::get().reads(2_u64)) } } diff --git a/pallets/nonfungible/src/weights.rs b/pallets/nonfungible/src/weights.rs index 723099a4d8..377e283cd2 100644 --- a/pallets/nonfungible/src/weights.rs +++ b/pallets/nonfungible/src/weights.rs @@ -3,9 +3,9 @@ //! Autogenerated weights for pallet_nonfungible //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-30, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-10-05, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz` +//! HOSTNAME: `hearthstone`, CPU: `AMD Ryzen 9 7950X3D 16-Core Processor` //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: @@ -20,7 +20,7 @@ // * // --template=.maintain/frame-weight-template.hbs // --steps=50 -// --repeat=400 +// --repeat=80 // --heap-pages=4096 // --output=./pallets/nonfungible/src/weights.rs @@ -46,7 +46,8 @@ pub trait WeightInfo { fn burn_from() -> Weight; fn set_token_property_permissions(b: u32, ) -> Weight; fn set_token_properties(b: u32, ) -> Weight; - fn init_token_properties(b: u32, ) -> Weight; + fn load_token_properties() -> Weight; + fn write_token_properties(b: u32, ) -> Weight; fn delete_token_properties(b: u32, ) -> Weight; fn token_owner() -> Weight; fn set_allowance_for_all() -> Weight; @@ -69,8 +70,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `142` // Estimated: `3530` - // Minimum execution time: 9_726_000 picoseconds. - Weight::from_parts(10_059_000, 3530) + // Minimum execution time: 4_990_000 picoseconds. + Weight::from_parts(5_170_000, 3530) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -87,10 +88,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `142` // Estimated: `3530` - // Minimum execution time: 3_270_000 picoseconds. - Weight::from_parts(3_693_659, 3530) - // Standard Error: 255 - .saturating_add(Weight::from_parts(3_024_284, 0).saturating_mul(b.into())) + // Minimum execution time: 1_680_000 picoseconds. + Weight::from_parts(1_720_000, 3530) + // Standard Error: 674 + .saturating_add(Weight::from_parts(2_406_591, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(b.into()))) @@ -108,10 +109,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `142` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 3_188_000 picoseconds. - Weight::from_parts(3_307_000, 3481) - // Standard Error: 567 - .saturating_add(Weight::from_parts(4_320_449, 0).saturating_mul(b.into())) + // Minimum execution time: 1_680_000 picoseconds. + Weight::from_parts(1_720_000, 3481) + // Standard Error: 1_729 + .saturating_add(Weight::from_parts(3_418_983, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(1_u64)) @@ -136,8 +137,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `380` // Estimated: `3530` - // Minimum execution time: 18_062_000 picoseconds. - Weight::from_parts(18_433_000, 3530) + // Minimum execution time: 10_700_000 picoseconds. + Weight::from_parts(11_180_000, 3530) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -159,8 +160,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `380` // Estimated: `3530` - // Minimum execution time: 22_942_000 picoseconds. - Weight::from_parts(23_527_000, 3530) + // Minimum execution time: 13_650_000 picoseconds. + Weight::from_parts(13_910_000, 3530) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -185,10 +186,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1500 + b * (58 ±0)` // Estimated: `5874 + b * (5032 ±0)` - // Minimum execution time: 22_709_000 picoseconds. - Weight::from_parts(23_287_000, 5874) - // Standard Error: 89_471 - .saturating_add(Weight::from_parts(63_285_201, 0).saturating_mul(b.into())) + // Minimum execution time: 13_500_000 picoseconds. + Weight::from_parts(13_830_000, 5874) + // Standard Error: 136_447 + .saturating_add(Weight::from_parts(43_149_279, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(6_u64)) @@ -207,8 +208,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `380` // Estimated: `6070` - // Minimum execution time: 13_652_000 picoseconds. - Weight::from_parts(13_981_000, 6070) + // Minimum execution time: 8_440_000 picoseconds. + Weight::from_parts(8_680_000, 6070) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -220,8 +221,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `326` // Estimated: `3522` - // Minimum execution time: 7_837_000 picoseconds. - Weight::from_parts(8_113_000, 3522) + // Minimum execution time: 4_580_000 picoseconds. + Weight::from_parts(4_850_000, 3522) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -233,8 +234,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `313` // Estimated: `3522` - // Minimum execution time: 7_769_000 picoseconds. - Weight::from_parts(7_979_000, 3522) + // Minimum execution time: 4_650_000 picoseconds. + Weight::from_parts(4_890_000, 3522) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -244,8 +245,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `362` // Estimated: `3522` - // Minimum execution time: 4_194_000 picoseconds. - Weight::from_parts(4_353_000, 3522) + // Minimum execution time: 2_630_000 picoseconds. + Weight::from_parts(2_760_000, 3522) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Nonfungible Allowance (r:1 w:1) @@ -266,8 +267,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `463` // Estimated: `3530` - // Minimum execution time: 21_978_000 picoseconds. - Weight::from_parts(22_519_000, 3530) + // Minimum execution time: 13_300_000 picoseconds. + Weight::from_parts(13_650_000, 3530) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -278,10 +279,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `314` // Estimated: `20191` - // Minimum execution time: 1_457_000 picoseconds. - Weight::from_parts(1_563_000, 20191) - // Standard Error: 14_041 - .saturating_add(Weight::from_parts(8_452_415, 0).saturating_mul(b.into())) + // Minimum execution time: 550_000 picoseconds. + Weight::from_parts(600_000, 20191) + // Standard Error: 23_117 + .saturating_add(Weight::from_parts(6_048_092, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -296,24 +297,34 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `640 + b * (261 ±0)` // Estimated: `36269` - // Minimum execution time: 963_000 picoseconds. - Weight::from_parts(1_126_511, 36269) - // Standard Error: 9_175 - .saturating_add(Weight::from_parts(5_096_011, 0).saturating_mul(b.into())) + // Minimum execution time: 340_000 picoseconds. + Weight::from_parts(7_359_078, 36269) + // Standard Error: 9_052 + .saturating_add(Weight::from_parts(2_763_267, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: Nonfungible TokenProperties (r:1 w:0) + /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) + fn load_token_properties() -> Weight { + // Proof Size summary in bytes: + // Measured: `279` + // Estimated: `36269` + // Minimum execution time: 1_610_000 picoseconds. + Weight::from_parts(1_690_000, 36269) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } /// Storage: Nonfungible TokenProperties (r:0 w:1) /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. - fn init_token_properties(b: u32, ) -> Weight { + fn write_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 194_000 picoseconds. - Weight::from_parts(222_000, 0) - // Standard Error: 7_295 - .saturating_add(Weight::from_parts(4_499_463, 0).saturating_mul(b.into())) + // Minimum execution time: 70_000 picoseconds. + Weight::from_parts(3_262_181, 0) + // Standard Error: 5_240 + .saturating_add(Weight::from_parts(2_426_582, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Common CollectionPropertyPermissions (r:1 w:0) @@ -327,10 +338,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `699 + b * (33291 ±0)` // Estimated: `36269` - // Minimum execution time: 992_000 picoseconds. - Weight::from_parts(1_043_000, 36269) - // Standard Error: 37_370 - .saturating_add(Weight::from_parts(23_672_870, 0).saturating_mul(b.into())) + // Minimum execution time: 350_000 picoseconds. + Weight::from_parts(370_000, 36269) + // Standard Error: 29_081 + .saturating_add(Weight::from_parts(9_667_268, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -340,8 +351,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `326` // Estimated: `3522` - // Minimum execution time: 3_743_000 picoseconds. - Weight::from_parts(3_908_000, 3522) + // Minimum execution time: 2_380_000 picoseconds. + Weight::from_parts(2_500_000, 3522) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:0 w:1) @@ -350,8 +361,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_106_000 picoseconds. - Weight::from_parts(4_293_000, 0) + // Minimum execution time: 2_060_000 picoseconds. + Weight::from_parts(2_150_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:1 w:0) @@ -360,8 +371,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `142` // Estimated: `3576` - // Minimum execution time: 2_775_000 picoseconds. - Weight::from_parts(2_923_000, 3576) + // Minimum execution time: 1_630_000 picoseconds. + Weight::from_parts(1_730_000, 3576) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Nonfungible TokenProperties (r:1 w:1) @@ -370,8 +381,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `279` // Estimated: `36269` - // Minimum execution time: 3_033_000 picoseconds. - Weight::from_parts(3_174_000, 36269) + // Minimum execution time: 1_700_000 picoseconds. + Weight::from_parts(1_780_000, 36269) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -391,8 +402,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `142` // Estimated: `3530` - // Minimum execution time: 9_726_000 picoseconds. - Weight::from_parts(10_059_000, 3530) + // Minimum execution time: 4_990_000 picoseconds. + Weight::from_parts(5_170_000, 3530) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -409,10 +420,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `142` // Estimated: `3530` - // Minimum execution time: 3_270_000 picoseconds. - Weight::from_parts(3_693_659, 3530) - // Standard Error: 255 - .saturating_add(Weight::from_parts(3_024_284, 0).saturating_mul(b.into())) + // Minimum execution time: 1_680_000 picoseconds. + Weight::from_parts(1_720_000, 3530) + // Standard Error: 674 + .saturating_add(Weight::from_parts(2_406_591, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(b.into()))) @@ -430,10 +441,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `142` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 3_188_000 picoseconds. - Weight::from_parts(3_307_000, 3481) - // Standard Error: 567 - .saturating_add(Weight::from_parts(4_320_449, 0).saturating_mul(b.into())) + // Minimum execution time: 1_680_000 picoseconds. + Weight::from_parts(1_720_000, 3481) + // Standard Error: 1_729 + .saturating_add(Weight::from_parts(3_418_983, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(RocksDbWeight::get().writes(1_u64)) @@ -458,8 +469,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `380` // Estimated: `3530` - // Minimum execution time: 18_062_000 picoseconds. - Weight::from_parts(18_433_000, 3530) + // Minimum execution time: 10_700_000 picoseconds. + Weight::from_parts(11_180_000, 3530) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -481,8 +492,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `380` // Estimated: `3530` - // Minimum execution time: 22_942_000 picoseconds. - Weight::from_parts(23_527_000, 3530) + // Minimum execution time: 13_650_000 picoseconds. + Weight::from_parts(13_910_000, 3530) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -507,10 +518,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1500 + b * (58 ±0)` // Estimated: `5874 + b * (5032 ±0)` - // Minimum execution time: 22_709_000 picoseconds. - Weight::from_parts(23_287_000, 5874) - // Standard Error: 89_471 - .saturating_add(Weight::from_parts(63_285_201, 0).saturating_mul(b.into())) + // Minimum execution time: 13_500_000 picoseconds. + Weight::from_parts(13_830_000, 5874) + // Standard Error: 136_447 + .saturating_add(Weight::from_parts(43_149_279, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(b.into()))) .saturating_add(RocksDbWeight::get().writes(6_u64)) @@ -529,8 +540,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `380` // Estimated: `6070` - // Minimum execution time: 13_652_000 picoseconds. - Weight::from_parts(13_981_000, 6070) + // Minimum execution time: 8_440_000 picoseconds. + Weight::from_parts(8_680_000, 6070) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -542,8 +553,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `326` // Estimated: `3522` - // Minimum execution time: 7_837_000 picoseconds. - Weight::from_parts(8_113_000, 3522) + // Minimum execution time: 4_580_000 picoseconds. + Weight::from_parts(4_850_000, 3522) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -555,8 +566,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `313` // Estimated: `3522` - // Minimum execution time: 7_769_000 picoseconds. - Weight::from_parts(7_979_000, 3522) + // Minimum execution time: 4_650_000 picoseconds. + Weight::from_parts(4_890_000, 3522) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -566,8 +577,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `362` // Estimated: `3522` - // Minimum execution time: 4_194_000 picoseconds. - Weight::from_parts(4_353_000, 3522) + // Minimum execution time: 2_630_000 picoseconds. + Weight::from_parts(2_760_000, 3522) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Nonfungible Allowance (r:1 w:1) @@ -588,8 +599,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `463` // Estimated: `3530` - // Minimum execution time: 21_978_000 picoseconds. - Weight::from_parts(22_519_000, 3530) + // Minimum execution time: 13_300_000 picoseconds. + Weight::from_parts(13_650_000, 3530) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -600,10 +611,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `314` // Estimated: `20191` - // Minimum execution time: 1_457_000 picoseconds. - Weight::from_parts(1_563_000, 20191) - // Standard Error: 14_041 - .saturating_add(Weight::from_parts(8_452_415, 0).saturating_mul(b.into())) + // Minimum execution time: 550_000 picoseconds. + Weight::from_parts(600_000, 20191) + // Standard Error: 23_117 + .saturating_add(Weight::from_parts(6_048_092, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -618,24 +629,34 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `640 + b * (261 ±0)` // Estimated: `36269` - // Minimum execution time: 963_000 picoseconds. - Weight::from_parts(1_126_511, 36269) - // Standard Error: 9_175 - .saturating_add(Weight::from_parts(5_096_011, 0).saturating_mul(b.into())) + // Minimum execution time: 340_000 picoseconds. + Weight::from_parts(7_359_078, 36269) + // Standard Error: 9_052 + .saturating_add(Weight::from_parts(2_763_267, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: Nonfungible TokenProperties (r:1 w:0) + /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) + fn load_token_properties() -> Weight { + // Proof Size summary in bytes: + // Measured: `279` + // Estimated: `36269` + // Minimum execution time: 1_610_000 picoseconds. + Weight::from_parts(1_690_000, 36269) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + } /// Storage: Nonfungible TokenProperties (r:0 w:1) /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. - fn init_token_properties(b: u32, ) -> Weight { + fn write_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 194_000 picoseconds. - Weight::from_parts(222_000, 0) - // Standard Error: 7_295 - .saturating_add(Weight::from_parts(4_499_463, 0).saturating_mul(b.into())) + // Minimum execution time: 70_000 picoseconds. + Weight::from_parts(3_262_181, 0) + // Standard Error: 5_240 + .saturating_add(Weight::from_parts(2_426_582, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Common CollectionPropertyPermissions (r:1 w:0) @@ -649,10 +670,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `699 + b * (33291 ±0)` // Estimated: `36269` - // Minimum execution time: 992_000 picoseconds. - Weight::from_parts(1_043_000, 36269) - // Standard Error: 37_370 - .saturating_add(Weight::from_parts(23_672_870, 0).saturating_mul(b.into())) + // Minimum execution time: 350_000 picoseconds. + Weight::from_parts(370_000, 36269) + // Standard Error: 29_081 + .saturating_add(Weight::from_parts(9_667_268, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -662,8 +683,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `326` // Estimated: `3522` - // Minimum execution time: 3_743_000 picoseconds. - Weight::from_parts(3_908_000, 3522) + // Minimum execution time: 2_380_000 picoseconds. + Weight::from_parts(2_500_000, 3522) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:0 w:1) @@ -672,8 +693,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_106_000 picoseconds. - Weight::from_parts(4_293_000, 0) + // Minimum execution time: 2_060_000 picoseconds. + Weight::from_parts(2_150_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:1 w:0) @@ -682,8 +703,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `142` // Estimated: `3576` - // Minimum execution time: 2_775_000 picoseconds. - Weight::from_parts(2_923_000, 3576) + // Minimum execution time: 1_630_000 picoseconds. + Weight::from_parts(1_730_000, 3576) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Nonfungible TokenProperties (r:1 w:1) @@ -692,8 +713,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `279` // Estimated: `36269` - // Minimum execution time: 3_033_000 picoseconds. - Weight::from_parts(3_174_000, 36269) + // Minimum execution time: 1_700_000 picoseconds. + Weight::from_parts(1_780_000, 36269) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } diff --git a/pallets/refungible/src/weights.rs b/pallets/refungible/src/weights.rs index 9c1c09667a..e58b965648 100644 --- a/pallets/refungible/src/weights.rs +++ b/pallets/refungible/src/weights.rs @@ -3,9 +3,9 @@ //! Autogenerated weights for pallet_refungible //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-30, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-10-05, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz` +//! HOSTNAME: `hearthstone`, CPU: `AMD Ryzen 9 7950X3D 16-Core Processor` //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: @@ -20,7 +20,7 @@ // * // --template=.maintain/frame-weight-template.hbs // --steps=50 -// --repeat=400 +// --repeat=80 // --heap-pages=4096 // --output=./pallets/refungible/src/weights.rs @@ -52,7 +52,8 @@ pub trait WeightInfo { fn burn_from() -> Weight; fn set_token_property_permissions(b: u32, ) -> Weight; fn set_token_properties(b: u32, ) -> Weight; - fn init_token_properties(b: u32, ) -> Weight; + fn load_token_properties() -> Weight; + fn write_token_properties(b: u32, ) -> Weight; fn delete_token_properties(b: u32, ) -> Weight; fn repartition_item() -> Weight; fn token_owner() -> Weight; @@ -78,8 +79,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3530` - // Minimum execution time: 11_341_000 picoseconds. - Weight::from_parts(11_741_000, 3530) + // Minimum execution time: 5_710_000 picoseconds. + Weight::from_parts(5_980_000, 3530) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -98,10 +99,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3530` - // Minimum execution time: 2_665_000 picoseconds. - Weight::from_parts(2_791_000, 3530) - // Standard Error: 996 - .saturating_add(Weight::from_parts(4_343_736, 0).saturating_mul(b.into())) + // Minimum execution time: 1_300_000 picoseconds. + Weight::from_parts(1_360_000, 3530) + // Standard Error: 2_783 + .saturating_add(Weight::from_parts(3_456_531, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into()))) @@ -121,10 +122,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 2_616_000 picoseconds. - Weight::from_parts(2_726_000, 3481) - // Standard Error: 665 - .saturating_add(Weight::from_parts(5_554_066, 0).saturating_mul(b.into())) + // Minimum execution time: 1_290_000 picoseconds. + Weight::from_parts(1_370_000, 3481) + // Standard Error: 3_198 + .saturating_add(Weight::from_parts(4_435_305, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(1_u64)) @@ -146,10 +147,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 3_697_000 picoseconds. - Weight::from_parts(2_136_481, 3481) - // Standard Error: 567 - .saturating_add(Weight::from_parts(4_390_621, 0).saturating_mul(b.into())) + // Minimum execution time: 1_730_000 picoseconds. + Weight::from_parts(1_810_000, 3481) + // Standard Error: 1_923 + .saturating_add(Weight::from_parts(3_500_817, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) @@ -168,8 +169,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `456` // Estimated: `8682` - // Minimum execution time: 22_859_000 picoseconds. - Weight::from_parts(23_295_000, 8682) + // Minimum execution time: 14_010_000 picoseconds. + Weight::from_parts(16_300_000, 8682) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -189,8 +190,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `341` // Estimated: `3554` - // Minimum execution time: 21_477_000 picoseconds. - Weight::from_parts(22_037_000, 3554) + // Minimum execution time: 13_700_000 picoseconds. + Weight::from_parts(14_180_000, 3554) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -202,8 +203,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `365` // Estimated: `6118` - // Minimum execution time: 13_714_000 picoseconds. - Weight::from_parts(14_050_000, 6118) + // Minimum execution time: 8_990_000 picoseconds. + Weight::from_parts(9_400_000, 6118) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -219,8 +220,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `341` // Estimated: `6118` - // Minimum execution time: 15_879_000 picoseconds. - Weight::from_parts(16_266_000, 6118) + // Minimum execution time: 10_240_000 picoseconds. + Weight::from_parts(10_610_000, 6118) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -236,8 +237,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `456` // Estimated: `6118` - // Minimum execution time: 18_186_000 picoseconds. - Weight::from_parts(18_682_000, 6118) + // Minimum execution time: 12_040_000 picoseconds. + Weight::from_parts(12_390_000, 6118) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -253,8 +254,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `341` // Estimated: `6118` - // Minimum execution time: 17_943_000 picoseconds. - Weight::from_parts(18_333_000, 6118) + // Minimum execution time: 11_940_000 picoseconds. + Weight::from_parts(12_240_000, 6118) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -266,8 +267,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `223` // Estimated: `3554` - // Minimum execution time: 8_391_000 picoseconds. - Weight::from_parts(8_637_000, 3554) + // Minimum execution time: 5_150_000 picoseconds. + Weight::from_parts(5_440_000, 3554) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -279,8 +280,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `211` // Estimated: `3554` - // Minimum execution time: 8_519_000 picoseconds. - Weight::from_parts(8_760_000, 3554) + // Minimum execution time: 5_170_000 picoseconds. + Weight::from_parts(5_400_000, 3554) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -294,8 +295,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `495` // Estimated: `6118` - // Minimum execution time: 19_554_000 picoseconds. - Weight::from_parts(20_031_000, 6118) + // Minimum execution time: 13_150_000 picoseconds. + Weight::from_parts(13_600_000, 6118) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -313,8 +314,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `471` // Estimated: `6118` - // Minimum execution time: 21_338_000 picoseconds. - Weight::from_parts(21_803_000, 6118) + // Minimum execution time: 14_280_000 picoseconds. + Weight::from_parts(14_680_000, 6118) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -332,8 +333,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `586` // Estimated: `6118` - // Minimum execution time: 24_179_000 picoseconds. - Weight::from_parts(24_647_000, 6118) + // Minimum execution time: 16_110_000 picoseconds. + Weight::from_parts(16_710_000, 6118) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -351,8 +352,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `471` // Estimated: `6118` - // Minimum execution time: 24_008_000 picoseconds. - Weight::from_parts(24_545_000, 6118) + // Minimum execution time: 16_130_000 picoseconds. + Weight::from_parts(16_680_000, 6118) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -374,8 +375,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `471` // Estimated: `3570` - // Minimum execution time: 27_907_000 picoseconds. - Weight::from_parts(28_489_000, 3570) + // Minimum execution time: 18_380_000 picoseconds. + Weight::from_parts(18_870_000, 3570) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -386,10 +387,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `314` // Estimated: `20191` - // Minimum execution time: 1_460_000 picoseconds. - Weight::from_parts(1_564_000, 20191) - // Standard Error: 14_117 - .saturating_add(Weight::from_parts(8_196_214, 0).saturating_mul(b.into())) + // Minimum execution time: 580_000 picoseconds. + Weight::from_parts(660_000, 20191) + // Standard Error: 29_964 + .saturating_add(Weight::from_parts(6_251_766, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -404,24 +405,34 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `502 + b * (261 ±0)` // Estimated: `36269` - // Minimum execution time: 1_012_000 picoseconds. - Weight::from_parts(1_081_000, 36269) - // Standard Error: 6_838 - .saturating_add(Weight::from_parts(5_801_181, 0).saturating_mul(b.into())) + // Minimum execution time: 350_000 picoseconds. + Weight::from_parts(2_269_806, 36269) + // Standard Error: 7_751 + .saturating_add(Weight::from_parts(3_068_126, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: Refungible TokenProperties (r:1 w:0) + /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) + fn load_token_properties() -> Weight { + // Proof Size summary in bytes: + // Measured: `120` + // Estimated: `36269` + // Minimum execution time: 1_010_000 picoseconds. + Weight::from_parts(1_080_000, 36269) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } /// Storage: Refungible TokenProperties (r:0 w:1) /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. - fn init_token_properties(b: u32, ) -> Weight { + fn write_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 229_000 picoseconds. - Weight::from_parts(253_000, 0) - // Standard Error: 100_218 - .saturating_add(Weight::from_parts(12_632_221, 0).saturating_mul(b.into())) + // Minimum execution time: 70_000 picoseconds. + Weight::from_parts(1_363_449, 0) + // Standard Error: 8_964 + .saturating_add(Weight::from_parts(2_665_759, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Common CollectionPropertyPermissions (r:1 w:0) @@ -435,10 +446,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `561 + b * (33291 ±0)` // Estimated: `36269` - // Minimum execution time: 1_014_000 picoseconds. - Weight::from_parts(1_065_000, 36269) - // Standard Error: 39_536 - .saturating_add(Weight::from_parts(24_125_838, 0).saturating_mul(b.into())) + // Minimum execution time: 320_000 picoseconds. + Weight::from_parts(370_000, 36269) + // Standard Error: 28_541 + .saturating_add(Weight::from_parts(9_863_065, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -450,8 +461,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `288` // Estimated: `3554` - // Minimum execution time: 10_315_000 picoseconds. - Weight::from_parts(10_601_000, 3554) + // Minimum execution time: 6_320_000 picoseconds. + Weight::from_parts(6_640_000, 3554) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -461,8 +472,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `288` // Estimated: `6118` - // Minimum execution time: 4_898_000 picoseconds. - Weight::from_parts(5_136_000, 6118) + // Minimum execution time: 2_520_000 picoseconds. + Weight::from_parts(2_680_000, 6118) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: Refungible CollectionAllowance (r:0 w:1) @@ -471,8 +482,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_146_000 picoseconds. - Weight::from_parts(4_337_000, 0) + // Minimum execution time: 2_070_000 picoseconds. + Weight::from_parts(2_230_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Refungible CollectionAllowance (r:1 w:0) @@ -481,8 +492,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3576` - // Minimum execution time: 2_170_000 picoseconds. - Weight::from_parts(2_301_000, 3576) + // Minimum execution time: 1_270_000 picoseconds. + Weight::from_parts(1_420_000, 3576) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Refungible TokenProperties (r:1 w:1) @@ -491,8 +502,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `120` // Estimated: `36269` - // Minimum execution time: 2_098_000 picoseconds. - Weight::from_parts(2_251_000, 36269) + // Minimum execution time: 1_010_000 picoseconds. + Weight::from_parts(1_160_000, 36269) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -514,8 +525,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3530` - // Minimum execution time: 11_341_000 picoseconds. - Weight::from_parts(11_741_000, 3530) + // Minimum execution time: 5_710_000 picoseconds. + Weight::from_parts(5_980_000, 3530) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -534,10 +545,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3530` - // Minimum execution time: 2_665_000 picoseconds. - Weight::from_parts(2_791_000, 3530) - // Standard Error: 996 - .saturating_add(Weight::from_parts(4_343_736, 0).saturating_mul(b.into())) + // Minimum execution time: 1_300_000 picoseconds. + Weight::from_parts(1_360_000, 3530) + // Standard Error: 2_783 + .saturating_add(Weight::from_parts(3_456_531, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into()))) @@ -557,10 +568,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 2_616_000 picoseconds. - Weight::from_parts(2_726_000, 3481) - // Standard Error: 665 - .saturating_add(Weight::from_parts(5_554_066, 0).saturating_mul(b.into())) + // Minimum execution time: 1_290_000 picoseconds. + Weight::from_parts(1_370_000, 3481) + // Standard Error: 3_198 + .saturating_add(Weight::from_parts(4_435_305, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(RocksDbWeight::get().writes(1_u64)) @@ -582,10 +593,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 3_697_000 picoseconds. - Weight::from_parts(2_136_481, 3481) - // Standard Error: 567 - .saturating_add(Weight::from_parts(4_390_621, 0).saturating_mul(b.into())) + // Minimum execution time: 1_730_000 picoseconds. + Weight::from_parts(1_810_000, 3481) + // Standard Error: 1_923 + .saturating_add(Weight::from_parts(3_500_817, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(RocksDbWeight::get().writes(2_u64)) @@ -604,8 +615,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `456` // Estimated: `8682` - // Minimum execution time: 22_859_000 picoseconds. - Weight::from_parts(23_295_000, 8682) + // Minimum execution time: 14_010_000 picoseconds. + Weight::from_parts(16_300_000, 8682) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -625,8 +636,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `341` // Estimated: `3554` - // Minimum execution time: 21_477_000 picoseconds. - Weight::from_parts(22_037_000, 3554) + // Minimum execution time: 13_700_000 picoseconds. + Weight::from_parts(14_180_000, 3554) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -638,8 +649,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `365` // Estimated: `6118` - // Minimum execution time: 13_714_000 picoseconds. - Weight::from_parts(14_050_000, 6118) + // Minimum execution time: 8_990_000 picoseconds. + Weight::from_parts(9_400_000, 6118) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -655,8 +666,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `341` // Estimated: `6118` - // Minimum execution time: 15_879_000 picoseconds. - Weight::from_parts(16_266_000, 6118) + // Minimum execution time: 10_240_000 picoseconds. + Weight::from_parts(10_610_000, 6118) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -672,8 +683,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `456` // Estimated: `6118` - // Minimum execution time: 18_186_000 picoseconds. - Weight::from_parts(18_682_000, 6118) + // Minimum execution time: 12_040_000 picoseconds. + Weight::from_parts(12_390_000, 6118) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -689,8 +700,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `341` // Estimated: `6118` - // Minimum execution time: 17_943_000 picoseconds. - Weight::from_parts(18_333_000, 6118) + // Minimum execution time: 11_940_000 picoseconds. + Weight::from_parts(12_240_000, 6118) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -702,8 +713,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `223` // Estimated: `3554` - // Minimum execution time: 8_391_000 picoseconds. - Weight::from_parts(8_637_000, 3554) + // Minimum execution time: 5_150_000 picoseconds. + Weight::from_parts(5_440_000, 3554) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -715,8 +726,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `211` // Estimated: `3554` - // Minimum execution time: 8_519_000 picoseconds. - Weight::from_parts(8_760_000, 3554) + // Minimum execution time: 5_170_000 picoseconds. + Weight::from_parts(5_400_000, 3554) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -730,8 +741,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `495` // Estimated: `6118` - // Minimum execution time: 19_554_000 picoseconds. - Weight::from_parts(20_031_000, 6118) + // Minimum execution time: 13_150_000 picoseconds. + Weight::from_parts(13_600_000, 6118) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -749,8 +760,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `471` // Estimated: `6118` - // Minimum execution time: 21_338_000 picoseconds. - Weight::from_parts(21_803_000, 6118) + // Minimum execution time: 14_280_000 picoseconds. + Weight::from_parts(14_680_000, 6118) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -768,8 +779,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `586` // Estimated: `6118` - // Minimum execution time: 24_179_000 picoseconds. - Weight::from_parts(24_647_000, 6118) + // Minimum execution time: 16_110_000 picoseconds. + Weight::from_parts(16_710_000, 6118) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -787,8 +798,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `471` // Estimated: `6118` - // Minimum execution time: 24_008_000 picoseconds. - Weight::from_parts(24_545_000, 6118) + // Minimum execution time: 16_130_000 picoseconds. + Weight::from_parts(16_680_000, 6118) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -810,8 +821,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `471` // Estimated: `3570` - // Minimum execution time: 27_907_000 picoseconds. - Weight::from_parts(28_489_000, 3570) + // Minimum execution time: 18_380_000 picoseconds. + Weight::from_parts(18_870_000, 3570) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -822,10 +833,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `314` // Estimated: `20191` - // Minimum execution time: 1_460_000 picoseconds. - Weight::from_parts(1_564_000, 20191) - // Standard Error: 14_117 - .saturating_add(Weight::from_parts(8_196_214, 0).saturating_mul(b.into())) + // Minimum execution time: 580_000 picoseconds. + Weight::from_parts(660_000, 20191) + // Standard Error: 29_964 + .saturating_add(Weight::from_parts(6_251_766, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -840,24 +851,34 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `502 + b * (261 ±0)` // Estimated: `36269` - // Minimum execution time: 1_012_000 picoseconds. - Weight::from_parts(1_081_000, 36269) - // Standard Error: 6_838 - .saturating_add(Weight::from_parts(5_801_181, 0).saturating_mul(b.into())) + // Minimum execution time: 350_000 picoseconds. + Weight::from_parts(2_269_806, 36269) + // Standard Error: 7_751 + .saturating_add(Weight::from_parts(3_068_126, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: Refungible TokenProperties (r:1 w:0) + /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) + fn load_token_properties() -> Weight { + // Proof Size summary in bytes: + // Measured: `120` + // Estimated: `36269` + // Minimum execution time: 1_010_000 picoseconds. + Weight::from_parts(1_080_000, 36269) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + } /// Storage: Refungible TokenProperties (r:0 w:1) /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. - fn init_token_properties(b: u32, ) -> Weight { + fn write_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 229_000 picoseconds. - Weight::from_parts(253_000, 0) - // Standard Error: 100_218 - .saturating_add(Weight::from_parts(12_632_221, 0).saturating_mul(b.into())) + // Minimum execution time: 70_000 picoseconds. + Weight::from_parts(1_363_449, 0) + // Standard Error: 8_964 + .saturating_add(Weight::from_parts(2_665_759, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Common CollectionPropertyPermissions (r:1 w:0) @@ -871,10 +892,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `561 + b * (33291 ±0)` // Estimated: `36269` - // Minimum execution time: 1_014_000 picoseconds. - Weight::from_parts(1_065_000, 36269) - // Standard Error: 39_536 - .saturating_add(Weight::from_parts(24_125_838, 0).saturating_mul(b.into())) + // Minimum execution time: 320_000 picoseconds. + Weight::from_parts(370_000, 36269) + // Standard Error: 28_541 + .saturating_add(Weight::from_parts(9_863_065, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -886,8 +907,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `288` // Estimated: `3554` - // Minimum execution time: 10_315_000 picoseconds. - Weight::from_parts(10_601_000, 3554) + // Minimum execution time: 6_320_000 picoseconds. + Weight::from_parts(6_640_000, 3554) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -897,8 +918,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `288` // Estimated: `6118` - // Minimum execution time: 4_898_000 picoseconds. - Weight::from_parts(5_136_000, 6118) + // Minimum execution time: 2_520_000 picoseconds. + Weight::from_parts(2_680_000, 6118) .saturating_add(RocksDbWeight::get().reads(2_u64)) } /// Storage: Refungible CollectionAllowance (r:0 w:1) @@ -907,8 +928,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_146_000 picoseconds. - Weight::from_parts(4_337_000, 0) + // Minimum execution time: 2_070_000 picoseconds. + Weight::from_parts(2_230_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Refungible CollectionAllowance (r:1 w:0) @@ -917,8 +938,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3576` - // Minimum execution time: 2_170_000 picoseconds. - Weight::from_parts(2_301_000, 3576) + // Minimum execution time: 1_270_000 picoseconds. + Weight::from_parts(1_420_000, 3576) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Refungible TokenProperties (r:1 w:1) @@ -927,8 +948,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `120` // Estimated: `36269` - // Minimum execution time: 2_098_000 picoseconds. - Weight::from_parts(2_251_000, 36269) + // Minimum execution time: 1_010_000 picoseconds. + Weight::from_parts(1_160_000, 36269) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) }