From 5ec8b824c3ad063259fc4a5bb7d1da026e970621 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Mon, 25 Sep 2023 15:00:49 +0000 Subject: [PATCH] chore: add temporary nft/rft weights --- --- 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-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-09-25, 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: @@ -46,6 +46,7 @@ fn burn_from() -> Weight; fn set_token_property_permissions(b: u32, ) -> Weight; fn set_token_properties(b: u32, ) -> Weight; + fn reset_token_properties(b: u32, ) -> Weight; fn delete_token_properties(b: u32, ) -> Weight; fn token_owner() -> Weight; fn set_allowance_for_all() -> Weight; @@ -60,8 +61,6 @@ /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Nonfungible AccountBalance (r:1 w:1) /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Nonfungible TokenProperties (r:1 w:1) - /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Nonfungible TokenData (r:0 w:1) @@ -70,19 +69,17 @@ /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn create_item() -> Weight { // Proof Size summary in bytes: - // Measured: `390` - // Estimated: `63471` - // Minimum execution time: 25_892_000 picoseconds. - Weight::from_parts(26_424_000, 63471) - .saturating_add(T::DbWeight::get().reads(4_u64)) - .saturating_add(T::DbWeight::get().writes(5_u64)) + // Measured: `456` + // Estimated: `20191` + // Minimum execution time: 10_660_000 picoseconds. + Weight::from_parts(10_960_000, 20191) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } /// Storage: Nonfungible TokensMinted (r:1 w:1) /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Nonfungible AccountBalance (r:1 w:1) /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Nonfungible TokenProperties (r:200 w:200) - /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Nonfungible TokenData (r:0 w:200) @@ -92,24 +89,20 @@ /// The range of component `b` is `[0, 200]`. fn create_multiple_items(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `390` - // Estimated: `28192 + b * (35279 ±0)` - // Minimum execution time: 4_612_000 picoseconds. - Weight::from_parts(6_399_460, 28192) - // Standard Error: 5_119 - .saturating_add(Weight::from_parts(7_230_389, 0).saturating_mul(b.into())) + // Measured: `456` + // Estimated: `20191` + // Minimum execution time: 2_200_000 picoseconds. + Weight::from_parts(612_529, 20191) + // Standard Error: 737 + .saturating_add(Weight::from_parts(3_807_625, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) - .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into()))) - .saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(b.into()))) } /// Storage: Nonfungible TokensMinted (r:1 w:1) /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Nonfungible AccountBalance (r:200 w:200) /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Nonfungible TokenProperties (r:200 w:200) - /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Nonfungible TokenData (r:0 w:200) @@ -119,17 +112,17 @@ /// The range of component `b` is `[0, 200]`. fn create_multiple_items_ex(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `390` - // Estimated: `25652 + b * (37819 ±0)` - // Minimum execution time: 4_538_000 picoseconds. - Weight::from_parts(4_686_000, 25652) - // Standard Error: 3_518 - .saturating_add(Weight::from_parts(8_905_771, 0).saturating_mul(b.into())) + // Measured: `456` + // Estimated: `20191 + b * (2540 ±0)` + // Minimum execution time: 2_190_000 picoseconds. + Weight::from_parts(2_280_000, 20191) + // Standard Error: 1_011 + .saturating_add(Weight::from_parts(4_931_681, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(b.into()))) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(1_u64)) - .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into()))) - .saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into()))) + .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into())) } /// Storage: Nonfungible TokenData (r:1 w:1) /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) @@ -148,9 +141,9 @@ fn burn_item() -> Weight { // Proof Size summary in bytes: // Measured: `380` - // Estimated: `17561` - // Minimum execution time: 24_230_000 picoseconds. - Weight::from_parts(24_672_000, 17561) + // Estimated: `3530` + // Minimum execution time: 13_470_000 picoseconds. + Weight::from_parts(13_840_000, 3530) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -171,9 +164,9 @@ fn burn_recursively_self_raw() -> Weight { // Proof Size summary in bytes: // Measured: `380` - // Estimated: `17561` - // Minimum execution time: 30_521_000 picoseconds. - Weight::from_parts(31_241_000, 17561) + // Estimated: `3530` + // Minimum execution time: 16_940_000 picoseconds. + Weight::from_parts(17_340_000, 3530) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -196,17 +189,17 @@ /// The range of component `b` is `[0, 200]`. fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1467 + b * (58 ±0)` - // Estimated: `24230 + b * (10097 ±0)` - // Minimum execution time: 31_734_000 picoseconds. - Weight::from_parts(32_162_000, 24230) - // Standard Error: 210_514 - .saturating_add(Weight::from_parts(71_382_804, 0).saturating_mul(b.into())) + // Measured: `1500 + b * (58 ±0)` + // Estimated: `5874 + b * (5032 ±0)` + // Minimum execution time: 16_910_000 picoseconds. + Weight::from_parts(17_170_000, 5874) + // Standard Error: 102_760 + .saturating_add(Weight::from_parts(45_644_966, 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)) .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into()))) - .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(0, 5032).saturating_mul(b.into())) } /// Storage: Nonfungible TokenData (r:1 w:1) /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) @@ -219,9 +212,9 @@ fn transfer_raw() -> Weight { // Proof Size summary in bytes: // Measured: `380` - // Estimated: `13114` - // Minimum execution time: 18_305_000 picoseconds. - Weight::from_parts(18_859_000, 13114) + // Estimated: `6070` + // Minimum execution time: 9_420_000 picoseconds. + Weight::from_parts(9_710_000, 6070) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -232,9 +225,9 @@ fn approve() -> Weight { // Proof Size summary in bytes: // Measured: `326` - // Estimated: `7044` - // Minimum execution time: 10_977_000 picoseconds. - Weight::from_parts(11_184_000, 7044) + // Estimated: `3522` + // Minimum execution time: 5_400_000 picoseconds. + Weight::from_parts(5_640_000, 3522) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -245,9 +238,9 @@ fn approve_from() -> Weight { // Proof Size summary in bytes: // Measured: `313` - // Estimated: `7044` - // Minimum execution time: 11_456_000 picoseconds. - Weight::from_parts(11_731_000, 7044) + // Estimated: `3522` + // Minimum execution time: 5_390_000 picoseconds. + Weight::from_parts(5_610_000, 3522) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -257,8 +250,8 @@ // Proof Size summary in bytes: // Measured: `362` // Estimated: `3522` - // Minimum execution time: 5_771_000 picoseconds. - Weight::from_parts(5_972_000, 3522) + // Minimum execution time: 2_970_000 picoseconds. + Weight::from_parts(3_170_000, 3522) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Nonfungible Allowance (r:1 w:1) @@ -278,9 +271,9 @@ fn burn_from() -> Weight { // Proof Size summary in bytes: // Measured: `463` - // Estimated: `17561` - // Minimum execution time: 30_633_000 picoseconds. - Weight::from_parts(31_136_000, 17561) + // Estimated: `3530` + // Minimum execution time: 15_400_000 picoseconds. + Weight::from_parts(15_850_000, 3530) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -289,12 +282,12 @@ /// The range of component `b` is `[0, 64]`. fn set_token_property_permissions(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `281` + // Measured: `314` // Estimated: `20191` - // Minimum execution time: 2_300_000 picoseconds. - Weight::from_parts(2_382_000, 20191) - // Standard Error: 45_076 - .saturating_add(Weight::from_parts(12_000_777, 0).saturating_mul(b.into())) + // Minimum execution time: 780_000 picoseconds. + Weight::from_parts(830_000, 20191) + // Standard Error: 35_354 + .saturating_add(Weight::from_parts(8_422_695, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -302,32 +295,52 @@ /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// Storage: Nonfungible TokenData (r:1 w:0) + /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. fn set_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `584 + b * (261 ±0)` - // Estimated: `56460` - // Minimum execution time: 12_422_000 picoseconds. - Weight::from_parts(5_523_689, 56460) - // Standard Error: 74_137 - .saturating_add(Weight::from_parts(6_320_501, 0).saturating_mul(b.into())) - .saturating_add(T::DbWeight::get().reads(2_u64)) + // Measured: `640 + b * (261 ±0)` + // Estimated: `36269` + // Minimum execution time: 5_530_000 picoseconds. + Weight::from_parts(10_829_898, 36269) + // Standard Error: 5_106 + .saturating_add(Weight::from_parts(2_601_900, 0).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: Common CollectionPropertyPermissions (r:1 w:0) + /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// 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 reset_token_properties(b: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `317 + b * (261 ±0)` + // Estimated: `20191` + // Minimum execution time: 3_690_000 picoseconds. + Weight::from_parts(9_633_879, 20191) + // Standard Error: 6_573 + .saturating_add(Weight::from_parts(2_694_801, 0).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } /// Storage: Nonfungible TokenProperties (r:1 w:1) /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// Storage: Nonfungible TokenData (r:1 w:0) + /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. fn delete_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `589 + b * (33291 ±0)` - // Estimated: `56460` - // Minimum execution time: 12_006_000 picoseconds. - Weight::from_parts(12_216_000, 56460) - // Standard Error: 83_431 - .saturating_add(Weight::from_parts(24_556_999, 0).saturating_mul(b.into())) - .saturating_add(T::DbWeight::get().reads(2_u64)) + // Measured: `699 + b * (33291 ±0)` + // Estimated: `36269` + // Minimum execution time: 5_860_000 picoseconds. + Weight::from_parts(6_000_000, 36269) + // Standard Error: 26_204 + .saturating_add(Weight::from_parts(9_601_645, 0).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Nonfungible TokenData (r:1 w:0) @@ -336,8 +349,8 @@ // Proof Size summary in bytes: // Measured: `326` // Estimated: `3522` - // Minimum execution time: 4_827_000 picoseconds. - Weight::from_parts(4_984_000, 3522) + // Minimum execution time: 2_930_000 picoseconds. + Weight::from_parts(3_060_000, 3522) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:0 w:1) @@ -346,28 +359,28 @@ // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_151_000 picoseconds. - Weight::from_parts(6_394_000, 0) + // Minimum execution time: 2_680_000 picoseconds. + Weight::from_parts(2_780_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:1 w:0) /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen) fn allowance_for_all() -> Weight { // Proof Size summary in bytes: - // Measured: `109` + // Measured: `142` // Estimated: `3576` - // Minimum execution time: 3_791_000 picoseconds. - Weight::from_parts(3_950_000, 3576) + // Minimum execution time: 2_000_000 picoseconds. + Weight::from_parts(2_110_000, 3576) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Nonfungible TokenProperties (r:1 w:1) /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) fn repair_item() -> Weight { // Proof Size summary in bytes: - // Measured: `300` + // Measured: `279` // Estimated: `36269` - // Minimum execution time: 5_364_000 picoseconds. - Weight::from_parts(5_539_000, 36269) + // Minimum execution time: 2_200_000 picoseconds. + Weight::from_parts(2_340_000, 36269) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -379,8 +392,6 @@ /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Nonfungible AccountBalance (r:1 w:1) /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Nonfungible TokenProperties (r:1 w:1) - /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Nonfungible TokenData (r:0 w:1) @@ -389,19 +400,17 @@ /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn create_item() -> Weight { // Proof Size summary in bytes: - // Measured: `390` - // Estimated: `63471` - // Minimum execution time: 25_892_000 picoseconds. - Weight::from_parts(26_424_000, 63471) - .saturating_add(RocksDbWeight::get().reads(4_u64)) - .saturating_add(RocksDbWeight::get().writes(5_u64)) + // Measured: `456` + // Estimated: `20191` + // Minimum execution time: 10_660_000 picoseconds. + Weight::from_parts(10_960_000, 20191) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) } /// Storage: Nonfungible TokensMinted (r:1 w:1) /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Nonfungible AccountBalance (r:1 w:1) /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Nonfungible TokenProperties (r:200 w:200) - /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Nonfungible TokenData (r:0 w:200) @@ -411,24 +420,20 @@ /// The range of component `b` is `[0, 200]`. fn create_multiple_items(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `390` - // Estimated: `28192 + b * (35279 ±0)` - // Minimum execution time: 4_612_000 picoseconds. - Weight::from_parts(6_399_460, 28192) - // Standard Error: 5_119 - .saturating_add(Weight::from_parts(7_230_389, 0).saturating_mul(b.into())) + // Measured: `456` + // Estimated: `20191` + // Minimum execution time: 2_200_000 picoseconds. + Weight::from_parts(612_529, 20191) + // Standard Error: 737 + .saturating_add(Weight::from_parts(3_807_625, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) - .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(RocksDbWeight::get().writes(2_u64)) - .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into()))) - .saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into())) + .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(b.into()))) } /// Storage: Nonfungible TokensMinted (r:1 w:1) /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Nonfungible AccountBalance (r:200 w:200) /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Nonfungible TokenProperties (r:200 w:200) - /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Nonfungible TokenData (r:0 w:200) @@ -438,17 +443,17 @@ /// The range of component `b` is `[0, 200]`. fn create_multiple_items_ex(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `390` - // Estimated: `25652 + b * (37819 ±0)` - // Minimum execution time: 4_538_000 picoseconds. - Weight::from_parts(4_686_000, 25652) - // Standard Error: 3_518 - .saturating_add(Weight::from_parts(8_905_771, 0).saturating_mul(b.into())) + // Measured: `456` + // Estimated: `20191 + b * (2540 ±0)` + // Minimum execution time: 2_190_000 picoseconds. + Weight::from_parts(2_280_000, 20191) + // Standard Error: 1_011 + .saturating_add(Weight::from_parts(4_931_681, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) - .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(b.into()))) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(RocksDbWeight::get().writes(1_u64)) - .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into()))) - .saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into())) + .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into()))) + .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into())) } /// Storage: Nonfungible TokenData (r:1 w:1) /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) @@ -467,9 +472,9 @@ fn burn_item() -> Weight { // Proof Size summary in bytes: // Measured: `380` - // Estimated: `17561` - // Minimum execution time: 24_230_000 picoseconds. - Weight::from_parts(24_672_000, 17561) + // Estimated: `3530` + // Minimum execution time: 13_470_000 picoseconds. + Weight::from_parts(13_840_000, 3530) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -490,9 +495,9 @@ fn burn_recursively_self_raw() -> Weight { // Proof Size summary in bytes: // Measured: `380` - // Estimated: `17561` - // Minimum execution time: 30_521_000 picoseconds. - Weight::from_parts(31_241_000, 17561) + // Estimated: `3530` + // Minimum execution time: 16_940_000 picoseconds. + Weight::from_parts(17_340_000, 3530) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -515,17 +520,17 @@ /// The range of component `b` is `[0, 200]`. fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1467 + b * (58 ±0)` - // Estimated: `24230 + b * (10097 ±0)` - // Minimum execution time: 31_734_000 picoseconds. - Weight::from_parts(32_162_000, 24230) - // Standard Error: 210_514 - .saturating_add(Weight::from_parts(71_382_804, 0).saturating_mul(b.into())) + // Measured: `1500 + b * (58 ±0)` + // Estimated: `5874 + b * (5032 ±0)` + // Minimum execution time: 16_910_000 picoseconds. + Weight::from_parts(17_170_000, 5874) + // Standard Error: 102_760 + .saturating_add(Weight::from_parts(45_644_966, 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)) .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into()))) - .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(0, 5032).saturating_mul(b.into())) } /// Storage: Nonfungible TokenData (r:1 w:1) /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) @@ -538,9 +543,9 @@ fn transfer_raw() -> Weight { // Proof Size summary in bytes: // Measured: `380` - // Estimated: `13114` - // Minimum execution time: 18_305_000 picoseconds. - Weight::from_parts(18_859_000, 13114) + // Estimated: `6070` + // Minimum execution time: 9_420_000 picoseconds. + Weight::from_parts(9_710_000, 6070) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -551,9 +556,9 @@ fn approve() -> Weight { // Proof Size summary in bytes: // Measured: `326` - // Estimated: `7044` - // Minimum execution time: 10_977_000 picoseconds. - Weight::from_parts(11_184_000, 7044) + // Estimated: `3522` + // Minimum execution time: 5_400_000 picoseconds. + Weight::from_parts(5_640_000, 3522) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -564,9 +569,9 @@ fn approve_from() -> Weight { // Proof Size summary in bytes: // Measured: `313` - // Estimated: `7044` - // Minimum execution time: 11_456_000 picoseconds. - Weight::from_parts(11_731_000, 7044) + // Estimated: `3522` + // Minimum execution time: 5_390_000 picoseconds. + Weight::from_parts(5_610_000, 3522) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -576,8 +581,8 @@ // Proof Size summary in bytes: // Measured: `362` // Estimated: `3522` - // Minimum execution time: 5_771_000 picoseconds. - Weight::from_parts(5_972_000, 3522) + // Minimum execution time: 2_970_000 picoseconds. + Weight::from_parts(3_170_000, 3522) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Nonfungible Allowance (r:1 w:1) @@ -597,9 +602,9 @@ fn burn_from() -> Weight { // Proof Size summary in bytes: // Measured: `463` - // Estimated: `17561` - // Minimum execution time: 30_633_000 picoseconds. - Weight::from_parts(31_136_000, 17561) + // Estimated: `3530` + // Minimum execution time: 15_400_000 picoseconds. + Weight::from_parts(15_850_000, 3530) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -608,12 +613,12 @@ /// The range of component `b` is `[0, 64]`. fn set_token_property_permissions(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `281` + // Measured: `314` // Estimated: `20191` - // Minimum execution time: 2_300_000 picoseconds. - Weight::from_parts(2_382_000, 20191) - // Standard Error: 45_076 - .saturating_add(Weight::from_parts(12_000_777, 0).saturating_mul(b.into())) + // Minimum execution time: 780_000 picoseconds. + Weight::from_parts(830_000, 20191) + // Standard Error: 35_354 + .saturating_add(Weight::from_parts(8_422_695, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -621,32 +626,52 @@ /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// Storage: Nonfungible TokenData (r:1 w:0) + /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. fn set_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `584 + b * (261 ±0)` - // Estimated: `56460` - // Minimum execution time: 12_422_000 picoseconds. - Weight::from_parts(5_523_689, 56460) - // Standard Error: 74_137 - .saturating_add(Weight::from_parts(6_320_501, 0).saturating_mul(b.into())) - .saturating_add(RocksDbWeight::get().reads(2_u64)) + // Measured: `640 + b * (261 ±0)` + // Estimated: `36269` + // Minimum execution time: 5_530_000 picoseconds. + Weight::from_parts(10_829_898, 36269) + // Standard Error: 5_106 + .saturating_add(Weight::from_parts(2_601_900, 0).saturating_mul(b.into())) + .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: Common CollectionPropertyPermissions (r:1 w:0) + /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// 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 reset_token_properties(b: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `317 + b * (261 ±0)` + // Estimated: `20191` + // Minimum execution time: 3_690_000 picoseconds. + Weight::from_parts(9_633_879, 20191) + // Standard Error: 6_573 + .saturating_add(Weight::from_parts(2_694_801, 0).saturating_mul(b.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } /// Storage: Nonfungible TokenProperties (r:1 w:1) /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// Storage: Nonfungible TokenData (r:1 w:0) + /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. fn delete_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `589 + b * (33291 ±0)` - // Estimated: `56460` - // Minimum execution time: 12_006_000 picoseconds. - Weight::from_parts(12_216_000, 56460) - // Standard Error: 83_431 - .saturating_add(Weight::from_parts(24_556_999, 0).saturating_mul(b.into())) - .saturating_add(RocksDbWeight::get().reads(2_u64)) + // Measured: `699 + b * (33291 ±0)` + // Estimated: `36269` + // Minimum execution time: 5_860_000 picoseconds. + Weight::from_parts(6_000_000, 36269) + // Standard Error: 26_204 + .saturating_add(Weight::from_parts(9_601_645, 0).saturating_mul(b.into())) + .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Nonfungible TokenData (r:1 w:0) @@ -655,8 +680,8 @@ // Proof Size summary in bytes: // Measured: `326` // Estimated: `3522` - // Minimum execution time: 4_827_000 picoseconds. - Weight::from_parts(4_984_000, 3522) + // Minimum execution time: 2_930_000 picoseconds. + Weight::from_parts(3_060_000, 3522) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:0 w:1) @@ -665,28 +690,28 @@ // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_151_000 picoseconds. - Weight::from_parts(6_394_000, 0) + // Minimum execution time: 2_680_000 picoseconds. + Weight::from_parts(2_780_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:1 w:0) /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen) fn allowance_for_all() -> Weight { // Proof Size summary in bytes: - // Measured: `109` + // Measured: `142` // Estimated: `3576` - // Minimum execution time: 3_791_000 picoseconds. - Weight::from_parts(3_950_000, 3576) + // Minimum execution time: 2_000_000 picoseconds. + Weight::from_parts(2_110_000, 3576) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Nonfungible TokenProperties (r:1 w:1) /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) fn repair_item() -> Weight { // Proof Size summary in bytes: - // Measured: `300` + // Measured: `279` // Estimated: `36269` - // Minimum execution time: 5_364_000 picoseconds. - Weight::from_parts(5_539_000, 36269) + // Minimum execution time: 2_200_000 picoseconds. + Weight::from_parts(2_340_000, 36269) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } --- 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-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-09-25, 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: @@ -52,6 +52,7 @@ fn burn_from() -> Weight; fn set_token_property_permissions(b: u32, ) -> Weight; fn set_token_properties(b: u32, ) -> Weight; + fn reset_token_properties(b: u32, ) -> Weight; fn delete_token_properties(b: u32, ) -> Weight; fn repartition_item() -> Weight; fn token_owner() -> Weight; @@ -67,8 +68,6 @@ /// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Refungible AccountBalance (r:1 w:1) /// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Refungible TokenProperties (r:1 w:1) - /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Refungible Balance (r:0 w:1) @@ -79,19 +78,17 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn create_item() -> Weight { // Proof Size summary in bytes: - // Measured: `285` - // Estimated: `63471` - // Minimum execution time: 30_759_000 picoseconds. - Weight::from_parts(31_321_000, 63471) - .saturating_add(T::DbWeight::get().reads(4_u64)) - .saturating_add(T::DbWeight::get().writes(6_u64)) + // Measured: `318` + // Estimated: `20191` + // Minimum execution time: 11_620_000 picoseconds. + Weight::from_parts(12_110_000, 20191) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } /// Storage: Refungible TokensMinted (r:1 w:1) /// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Refungible AccountBalance (r:1 w:1) /// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Refungible TokenProperties (r:200 w:200) - /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Refungible Balance (r:0 w:200) @@ -103,24 +100,20 @@ /// The range of component `b` is `[0, 200]`. fn create_multiple_items(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `285` - // Estimated: `28192 + b * (35279 ±0)` - // Minimum execution time: 4_024_000 picoseconds. - Weight::from_parts(4_145_000, 28192) - // Standard Error: 3_332 - .saturating_add(Weight::from_parts(8_967_757, 0).saturating_mul(b.into())) + // Measured: `318` + // Estimated: `20191` + // Minimum execution time: 1_690_000 picoseconds. + Weight::from_parts(1_750_000, 20191) + // Standard Error: 1_647 + .saturating_add(Weight::from_parts(4_876_194, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) - .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into()))) - .saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into()))) } /// Storage: Refungible TokensMinted (r:1 w:1) /// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Refungible AccountBalance (r:200 w:200) /// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Refungible TokenProperties (r:200 w:200) - /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Refungible Balance (r:0 w:200) @@ -132,24 +125,22 @@ /// The range of component `b` is `[0, 200]`. fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `285` - // Estimated: `25652 + b * (37819 ±0)` - // Minimum execution time: 3_715_000 picoseconds. - Weight::from_parts(3_881_000, 25652) - // Standard Error: 3_275 - .saturating_add(Weight::from_parts(10_525_271, 0).saturating_mul(b.into())) + // Measured: `318` + // Estimated: `20191 + b * (2540 ±0)` + // Minimum execution time: 1_730_000 picoseconds. + Weight::from_parts(1_790_000, 20191) + // Standard Error: 1_611 + .saturating_add(Weight::from_parts(6_002_948, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(b.into()))) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(1_u64)) - .saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(b.into()))) - .saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into()))) + .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into())) } /// Storage: Refungible TokensMinted (r:1 w:1) /// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Refungible AccountBalance (r:200 w:200) /// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Refungible TokenProperties (r:1 w:1) - /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Refungible Balance (r:0 w:200) @@ -161,15 +152,15 @@ /// The range of component `b` is `[0, 200]`. fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `285` - // Estimated: `60931 + b * (2540 ±0)` - // Minimum execution time: 13_150_000 picoseconds. - Weight::from_parts(15_655_930, 60931) - // Standard Error: 4_170 - .saturating_add(Weight::from_parts(5_673_702, 0).saturating_mul(b.into())) - .saturating_add(T::DbWeight::get().reads(3_u64)) + // Measured: `318` + // Estimated: `20191 + b * (2540 ±0)` + // Minimum execution time: 6_260_000 picoseconds. + Weight::from_parts(2_297_892, 20191) + // Standard Error: 1_302 + .saturating_add(Weight::from_parts(4_093_180, 0).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) - .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into()))) .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into())) } @@ -183,10 +174,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn burn_item_partial() -> Weight { // Proof Size summary in bytes: - // Measured: `490` - // Estimated: `15717` - // Minimum execution time: 28_992_000 picoseconds. - Weight::from_parts(29_325_000, 15717) + // Measured: `456` + // Estimated: `8682` + // Minimum execution time: 17_330_000 picoseconds. + Weight::from_parts(17_910_000, 8682) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -204,10 +195,10 @@ /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) fn burn_item_fully() -> Weight { // Proof Size summary in bytes: - // Measured: `375` - // Estimated: `14070` - // Minimum execution time: 27_980_000 picoseconds. - Weight::from_parts(28_582_000, 14070) + // Measured: `341` + // Estimated: `3554` + // Minimum execution time: 16_920_000 picoseconds. + Weight::from_parts(17_630_000, 3554) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -217,10 +208,10 @@ /// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) fn transfer_normal() -> Weight { // Proof Size summary in bytes: - // Measured: `398` - // Estimated: `9623` - // Minimum execution time: 18_746_000 picoseconds. - Weight::from_parts(19_096_000, 9623) + // Measured: `365` + // Estimated: `6118` + // Minimum execution time: 10_600_000 picoseconds. + Weight::from_parts(10_950_000, 6118) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -234,10 +225,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_creating() -> Weight { // Proof Size summary in bytes: - // Measured: `375` - // Estimated: `13153` - // Minimum execution time: 21_719_000 picoseconds. - Weight::from_parts(22_219_000, 13153) + // Measured: `341` + // Estimated: `6118` + // Minimum execution time: 12_160_000 picoseconds. + Weight::from_parts(12_570_000, 6118) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -251,10 +242,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_removing() -> Weight { // Proof Size summary in bytes: - // Measured: `490` - // Estimated: `13153` - // Minimum execution time: 24_784_000 picoseconds. - Weight::from_parts(25_231_000, 13153) + // Measured: `456` + // Estimated: `6118` + // Minimum execution time: 14_300_000 picoseconds. + Weight::from_parts(14_760_000, 6118) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -268,10 +259,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_creating_removing() -> Weight { // Proof Size summary in bytes: - // Measured: `375` - // Estimated: `15693` - // Minimum execution time: 24_865_000 picoseconds. - Weight::from_parts(25_253_000, 15693) + // Measured: `341` + // Estimated: `6118` + // Minimum execution time: 14_050_000 picoseconds. + Weight::from_parts(14_490_000, 6118) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -281,10 +272,10 @@ /// Proof: Refungible Allowance (max_values: None, max_size: Some(105), added: 2580, mode: MaxEncodedLen) fn approve() -> Weight { // Proof Size summary in bytes: - // Measured: `256` + // Measured: `223` // Estimated: `3554` - // Minimum execution time: 12_318_000 picoseconds. - Weight::from_parts(12_597_000, 3554) + // Minimum execution time: 6_210_000 picoseconds. + Weight::from_parts(6_500_000, 3554) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -294,10 +285,10 @@ /// Proof: Refungible Allowance (max_values: None, max_size: Some(105), added: 2580, mode: MaxEncodedLen) fn approve_from() -> Weight { // Proof Size summary in bytes: - // Measured: `244` + // Measured: `211` // Estimated: `3554` - // Minimum execution time: 12_276_000 picoseconds. - Weight::from_parts(12_557_000, 3554) + // Minimum execution time: 6_280_000 picoseconds. + Weight::from_parts(6_540_000, 3554) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -309,10 +300,10 @@ /// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) fn transfer_from_normal() -> Weight { // Proof Size summary in bytes: - // Measured: `528` - // Estimated: `13193` - // Minimum execution time: 26_852_000 picoseconds. - Weight::from_parts(27_427_000, 13193) + // Measured: `495` + // Estimated: `6118` + // Minimum execution time: 15_570_000 picoseconds. + Weight::from_parts(15_990_000, 6118) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -328,10 +319,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_from_creating() -> Weight { // Proof Size summary in bytes: - // Measured: `505` - // Estimated: `16723` - // Minimum execution time: 29_893_000 picoseconds. - Weight::from_parts(30_345_000, 16723) + // Measured: `471` + // Estimated: `6118` + // Minimum execution time: 17_030_000 picoseconds. + Weight::from_parts(17_430_000, 6118) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -347,10 +338,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_from_removing() -> Weight { // Proof Size summary in bytes: - // Measured: `620` - // Estimated: `16723` - // Minimum execution time: 32_784_000 picoseconds. - Weight::from_parts(33_322_000, 16723) + // Measured: `586` + // Estimated: `6118` + // Minimum execution time: 19_300_000 picoseconds. + Weight::from_parts(19_760_000, 6118) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -366,10 +357,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_from_creating_removing() -> Weight { // Proof Size summary in bytes: - // Measured: `505` - // Estimated: `19263` - // Minimum execution time: 32_987_000 picoseconds. - Weight::from_parts(33_428_000, 19263) + // Measured: `471` + // Estimated: `6118` + // Minimum execution time: 19_190_000 picoseconds. + Weight::from_parts(19_560_000, 6118) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -389,10 +380,10 @@ /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) fn burn_from() -> Weight { // Proof Size summary in bytes: - // Measured: `505` - // Estimated: `17640` - // Minimum execution time: 38_277_000 picoseconds. - Weight::from_parts(38_983_000, 17640) + // Measured: `471` + // Estimated: `3570` + // Minimum execution time: 22_590_000 picoseconds. + Weight::from_parts(23_290_000, 3570) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -401,12 +392,12 @@ /// The range of component `b` is `[0, 64]`. fn set_token_property_permissions(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `281` + // Measured: `314` // Estimated: `20191` - // Minimum execution time: 2_254_000 picoseconds. - Weight::from_parts(2_335_000, 20191) - // Standard Error: 44_906 - .saturating_add(Weight::from_parts(12_118_499, 0).saturating_mul(b.into())) + // Minimum execution time: 780_000 picoseconds. + Weight::from_parts(850_000, 20191) + // Standard Error: 38_209 + .saturating_add(Weight::from_parts(9_042_866, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -414,32 +405,52 @@ /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// Storage: Refungible TotalSupply (r:1 w:0) + /// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. fn set_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `458 + b * (261 ±0)` - // Estimated: `56460` - // Minimum execution time: 11_249_000 picoseconds. - Weight::from_parts(11_420_000, 56460) - // Standard Error: 72_033 - .saturating_add(Weight::from_parts(7_008_012, 0).saturating_mul(b.into())) - .saturating_add(T::DbWeight::get().reads(2_u64)) + // Measured: `502 + b * (261 ±0)` + // Estimated: `36269` + // Minimum execution time: 5_160_000 picoseconds. + Weight::from_parts(15_283_437, 36269) + // Standard Error: 12_988 + .saturating_add(Weight::from_parts(2_757_274, 0).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Common CollectionPropertyPermissions (r:1 w:0) + /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// 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 reset_token_properties(b: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `317 + b * (261 ±0)` + // Estimated: `20191` + // Minimum execution time: 3_560_000 picoseconds. + Weight::from_parts(6_788_279, 20191) + // Standard Error: 5_443 + .saturating_add(Weight::from_parts(2_641_825, 0).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Refungible TokenProperties (r:1 w:1) /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// Storage: Refungible TotalSupply (r:1 w:0) + /// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. fn delete_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `463 + b * (33291 ±0)` - // Estimated: `56460` - // Minimum execution time: 11_368_000 picoseconds. - Weight::from_parts(11_546_000, 56460) - // Standard Error: 85_444 - .saturating_add(Weight::from_parts(24_644_980, 0).saturating_mul(b.into())) - .saturating_add(T::DbWeight::get().reads(2_u64)) + // Measured: `561 + b * (33291 ±0)` + // Estimated: `36269` + // Minimum execution time: 4_650_000 picoseconds. + Weight::from_parts(4_820_000, 36269) + // Standard Error: 24_035 + .saturating_add(Weight::from_parts(8_828_039, 0).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Refungible TotalSupply (r:1 w:1) @@ -448,10 +459,10 @@ /// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) fn repartition_item() -> Weight { // Proof Size summary in bytes: - // Measured: `321` - // Estimated: `7059` - // Minimum execution time: 13_586_000 picoseconds. - Weight::from_parts(14_489_000, 7059) + // Measured: `288` + // Estimated: `3554` + // Minimum execution time: 7_260_000 picoseconds. + Weight::from_parts(7_520_000, 3554) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -459,10 +470,10 @@ /// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) fn token_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `321` + // Measured: `288` // Estimated: `6118` - // Minimum execution time: 7_049_000 picoseconds. - Weight::from_parts(7_320_000, 6118) + // Minimum execution time: 3_200_000 picoseconds. + Weight::from_parts(3_360_000, 6118) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: Refungible CollectionAllowance (r:0 w:1) @@ -471,8 +482,8 @@ // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_432_000 picoseconds. - Weight::from_parts(6_642_000, 0) + // Minimum execution time: 2_420_000 picoseconds. + Weight::from_parts(2_540_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Refungible CollectionAllowance (r:1 w:0) @@ -481,18 +492,18 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3576` - // Minimum execution time: 3_030_000 picoseconds. - Weight::from_parts(3_206_000, 3576) + // Minimum execution time: 1_370_000 picoseconds. + Weight::from_parts(1_470_000, 3576) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Refungible TokenProperties (r:1 w:1) /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) fn repair_item() -> Weight { // Proof Size summary in bytes: - // Measured: `174` + // Measured: `120` // Estimated: `36269` - // Minimum execution time: 4_371_000 picoseconds. - Weight::from_parts(4_555_000, 36269) + // Minimum execution time: 1_350_000 picoseconds. + Weight::from_parts(1_420_000, 36269) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -504,8 +515,6 @@ /// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Refungible AccountBalance (r:1 w:1) /// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Refungible TokenProperties (r:1 w:1) - /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Refungible Balance (r:0 w:1) @@ -516,19 +525,17 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn create_item() -> Weight { // Proof Size summary in bytes: - // Measured: `285` - // Estimated: `63471` - // Minimum execution time: 30_759_000 picoseconds. - Weight::from_parts(31_321_000, 63471) - .saturating_add(RocksDbWeight::get().reads(4_u64)) - .saturating_add(RocksDbWeight::get().writes(6_u64)) + // Measured: `318` + // Estimated: `20191` + // Minimum execution time: 11_620_000 picoseconds. + Weight::from_parts(12_110_000, 20191) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) } /// Storage: Refungible TokensMinted (r:1 w:1) /// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Refungible AccountBalance (r:1 w:1) /// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Refungible TokenProperties (r:200 w:200) - /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Refungible Balance (r:0 w:200) @@ -540,24 +547,20 @@ /// The range of component `b` is `[0, 200]`. fn create_multiple_items(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `285` - // Estimated: `28192 + b * (35279 ±0)` - // Minimum execution time: 4_024_000 picoseconds. - Weight::from_parts(4_145_000, 28192) - // Standard Error: 3_332 - .saturating_add(Weight::from_parts(8_967_757, 0).saturating_mul(b.into())) + // Measured: `318` + // Estimated: `20191` + // Minimum execution time: 1_690_000 picoseconds. + Weight::from_parts(1_750_000, 20191) + // Standard Error: 1_647 + .saturating_add(Weight::from_parts(4_876_194, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) - .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(RocksDbWeight::get().writes(2_u64)) - .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into()))) - .saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into())) + .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into()))) } /// Storage: Refungible TokensMinted (r:1 w:1) /// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Refungible AccountBalance (r:200 w:200) /// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Refungible TokenProperties (r:200 w:200) - /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Refungible Balance (r:0 w:200) @@ -569,24 +572,22 @@ /// The range of component `b` is `[0, 200]`. fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `285` - // Estimated: `25652 + b * (37819 ±0)` - // Minimum execution time: 3_715_000 picoseconds. - Weight::from_parts(3_881_000, 25652) - // Standard Error: 3_275 - .saturating_add(Weight::from_parts(10_525_271, 0).saturating_mul(b.into())) + // Measured: `318` + // Estimated: `20191 + b * (2540 ±0)` + // Minimum execution time: 1_730_000 picoseconds. + Weight::from_parts(1_790_000, 20191) + // Standard Error: 1_611 + .saturating_add(Weight::from_parts(6_002_948, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) - .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(b.into()))) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(RocksDbWeight::get().writes(1_u64)) - .saturating_add(RocksDbWeight::get().writes((5_u64).saturating_mul(b.into()))) - .saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into())) + .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into()))) + .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into())) } /// Storage: Refungible TokensMinted (r:1 w:1) /// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) /// Storage: Refungible AccountBalance (r:200 w:200) /// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) - /// Storage: Refungible TokenProperties (r:1 w:1) - /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) /// Storage: Refungible Balance (r:0 w:200) @@ -598,15 +599,15 @@ /// The range of component `b` is `[0, 200]`. fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `285` - // Estimated: `60931 + b * (2540 ±0)` - // Minimum execution time: 13_150_000 picoseconds. - Weight::from_parts(15_655_930, 60931) - // Standard Error: 4_170 - .saturating_add(Weight::from_parts(5_673_702, 0).saturating_mul(b.into())) - .saturating_add(RocksDbWeight::get().reads(3_u64)) + // Measured: `318` + // Estimated: `20191 + b * (2540 ±0)` + // Minimum execution time: 6_260_000 picoseconds. + Weight::from_parts(2_297_892, 20191) + // Standard Error: 1_302 + .saturating_add(Weight::from_parts(4_093_180, 0).saturating_mul(b.into())) + .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into()))) - .saturating_add(RocksDbWeight::get().writes(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into()))) .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into())) } @@ -620,10 +621,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn burn_item_partial() -> Weight { // Proof Size summary in bytes: - // Measured: `490` - // Estimated: `15717` - // Minimum execution time: 28_992_000 picoseconds. - Weight::from_parts(29_325_000, 15717) + // Measured: `456` + // Estimated: `8682` + // Minimum execution time: 17_330_000 picoseconds. + Weight::from_parts(17_910_000, 8682) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -641,10 +642,10 @@ /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) fn burn_item_fully() -> Weight { // Proof Size summary in bytes: - // Measured: `375` - // Estimated: `14070` - // Minimum execution time: 27_980_000 picoseconds. - Weight::from_parts(28_582_000, 14070) + // Measured: `341` + // Estimated: `3554` + // Minimum execution time: 16_920_000 picoseconds. + Weight::from_parts(17_630_000, 3554) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -654,10 +655,10 @@ /// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) fn transfer_normal() -> Weight { // Proof Size summary in bytes: - // Measured: `398` - // Estimated: `9623` - // Minimum execution time: 18_746_000 picoseconds. - Weight::from_parts(19_096_000, 9623) + // Measured: `365` + // Estimated: `6118` + // Minimum execution time: 10_600_000 picoseconds. + Weight::from_parts(10_950_000, 6118) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -671,10 +672,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_creating() -> Weight { // Proof Size summary in bytes: - // Measured: `375` - // Estimated: `13153` - // Minimum execution time: 21_719_000 picoseconds. - Weight::from_parts(22_219_000, 13153) + // Measured: `341` + // Estimated: `6118` + // Minimum execution time: 12_160_000 picoseconds. + Weight::from_parts(12_570_000, 6118) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -688,10 +689,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_removing() -> Weight { // Proof Size summary in bytes: - // Measured: `490` - // Estimated: `13153` - // Minimum execution time: 24_784_000 picoseconds. - Weight::from_parts(25_231_000, 13153) + // Measured: `456` + // Estimated: `6118` + // Minimum execution time: 14_300_000 picoseconds. + Weight::from_parts(14_760_000, 6118) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -705,10 +706,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_creating_removing() -> Weight { // Proof Size summary in bytes: - // Measured: `375` - // Estimated: `15693` - // Minimum execution time: 24_865_000 picoseconds. - Weight::from_parts(25_253_000, 15693) + // Measured: `341` + // Estimated: `6118` + // Minimum execution time: 14_050_000 picoseconds. + Weight::from_parts(14_490_000, 6118) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -718,10 +719,10 @@ /// Proof: Refungible Allowance (max_values: None, max_size: Some(105), added: 2580, mode: MaxEncodedLen) fn approve() -> Weight { // Proof Size summary in bytes: - // Measured: `256` + // Measured: `223` // Estimated: `3554` - // Minimum execution time: 12_318_000 picoseconds. - Weight::from_parts(12_597_000, 3554) + // Minimum execution time: 6_210_000 picoseconds. + Weight::from_parts(6_500_000, 3554) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -731,10 +732,10 @@ /// Proof: Refungible Allowance (max_values: None, max_size: Some(105), added: 2580, mode: MaxEncodedLen) fn approve_from() -> Weight { // Proof Size summary in bytes: - // Measured: `244` + // Measured: `211` // Estimated: `3554` - // Minimum execution time: 12_276_000 picoseconds. - Weight::from_parts(12_557_000, 3554) + // Minimum execution time: 6_280_000 picoseconds. + Weight::from_parts(6_540_000, 3554) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -746,10 +747,10 @@ /// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) fn transfer_from_normal() -> Weight { // Proof Size summary in bytes: - // Measured: `528` - // Estimated: `13193` - // Minimum execution time: 26_852_000 picoseconds. - Weight::from_parts(27_427_000, 13193) + // Measured: `495` + // Estimated: `6118` + // Minimum execution time: 15_570_000 picoseconds. + Weight::from_parts(15_990_000, 6118) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -765,10 +766,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_from_creating() -> Weight { // Proof Size summary in bytes: - // Measured: `505` - // Estimated: `16723` - // Minimum execution time: 29_893_000 picoseconds. - Weight::from_parts(30_345_000, 16723) + // Measured: `471` + // Estimated: `6118` + // Minimum execution time: 17_030_000 picoseconds. + Weight::from_parts(17_430_000, 6118) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -784,10 +785,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_from_removing() -> Weight { // Proof Size summary in bytes: - // Measured: `620` - // Estimated: `16723` - // Minimum execution time: 32_784_000 picoseconds. - Weight::from_parts(33_322_000, 16723) + // Measured: `586` + // Estimated: `6118` + // Minimum execution time: 19_300_000 picoseconds. + Weight::from_parts(19_760_000, 6118) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -803,10 +804,10 @@ /// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_from_creating_removing() -> Weight { // Proof Size summary in bytes: - // Measured: `505` - // Estimated: `19263` - // Minimum execution time: 32_987_000 picoseconds. - Weight::from_parts(33_428_000, 19263) + // Measured: `471` + // Estimated: `6118` + // Minimum execution time: 19_190_000 picoseconds. + Weight::from_parts(19_560_000, 6118) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -826,10 +827,10 @@ /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) fn burn_from() -> Weight { // Proof Size summary in bytes: - // Measured: `505` - // Estimated: `17640` - // Minimum execution time: 38_277_000 picoseconds. - Weight::from_parts(38_983_000, 17640) + // Measured: `471` + // Estimated: `3570` + // Minimum execution time: 22_590_000 picoseconds. + Weight::from_parts(23_290_000, 3570) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -838,12 +839,12 @@ /// The range of component `b` is `[0, 64]`. fn set_token_property_permissions(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `281` + // Measured: `314` // Estimated: `20191` - // Minimum execution time: 2_254_000 picoseconds. - Weight::from_parts(2_335_000, 20191) - // Standard Error: 44_906 - .saturating_add(Weight::from_parts(12_118_499, 0).saturating_mul(b.into())) + // Minimum execution time: 780_000 picoseconds. + Weight::from_parts(850_000, 20191) + // Standard Error: 38_209 + .saturating_add(Weight::from_parts(9_042_866, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -851,32 +852,52 @@ /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// Storage: Refungible TotalSupply (r:1 w:0) + /// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. fn set_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `458 + b * (261 ±0)` - // Estimated: `56460` - // Minimum execution time: 11_249_000 picoseconds. - Weight::from_parts(11_420_000, 56460) - // Standard Error: 72_033 - .saturating_add(Weight::from_parts(7_008_012, 0).saturating_mul(b.into())) - .saturating_add(RocksDbWeight::get().reads(2_u64)) + // Measured: `502 + b * (261 ±0)` + // Estimated: `36269` + // Minimum execution time: 5_160_000 picoseconds. + Weight::from_parts(15_283_437, 36269) + // Standard Error: 12_988 + .saturating_add(Weight::from_parts(2_757_274, 0).saturating_mul(b.into())) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: Common CollectionPropertyPermissions (r:1 w:0) + /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// 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 reset_token_properties(b: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `317 + b * (261 ±0)` + // Estimated: `20191` + // Minimum execution time: 3_560_000 picoseconds. + Weight::from_parts(6_788_279, 20191) + // Standard Error: 5_443 + .saturating_add(Weight::from_parts(2_641_825, 0).saturating_mul(b.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Refungible TokenProperties (r:1 w:1) /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) /// Storage: Common CollectionPropertyPermissions (r:1 w:0) /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen) + /// Storage: Refungible TotalSupply (r:1 w:0) + /// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) /// The range of component `b` is `[0, 64]`. fn delete_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `463 + b * (33291 ±0)` - // Estimated: `56460` - // Minimum execution time: 11_368_000 picoseconds. - Weight::from_parts(11_546_000, 56460) - // Standard Error: 85_444 - .saturating_add(Weight::from_parts(24_644_980, 0).saturating_mul(b.into())) - .saturating_add(RocksDbWeight::get().reads(2_u64)) + // Measured: `561 + b * (33291 ±0)` + // Estimated: `36269` + // Minimum execution time: 4_650_000 picoseconds. + Weight::from_parts(4_820_000, 36269) + // Standard Error: 24_035 + .saturating_add(Weight::from_parts(8_828_039, 0).saturating_mul(b.into())) + .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Refungible TotalSupply (r:1 w:1) @@ -885,10 +906,10 @@ /// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) fn repartition_item() -> Weight { // Proof Size summary in bytes: - // Measured: `321` - // Estimated: `7059` - // Minimum execution time: 13_586_000 picoseconds. - Weight::from_parts(14_489_000, 7059) + // Measured: `288` + // Estimated: `3554` + // Minimum execution time: 7_260_000 picoseconds. + Weight::from_parts(7_520_000, 3554) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -896,10 +917,10 @@ /// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) fn token_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `321` + // Measured: `288` // Estimated: `6118` - // Minimum execution time: 7_049_000 picoseconds. - Weight::from_parts(7_320_000, 6118) + // Minimum execution time: 3_200_000 picoseconds. + Weight::from_parts(3_360_000, 6118) .saturating_add(RocksDbWeight::get().reads(2_u64)) } /// Storage: Refungible CollectionAllowance (r:0 w:1) @@ -908,8 +929,8 @@ // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_432_000 picoseconds. - Weight::from_parts(6_642_000, 0) + // Minimum execution time: 2_420_000 picoseconds. + Weight::from_parts(2_540_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Refungible CollectionAllowance (r:1 w:0) @@ -918,18 +939,18 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3576` - // Minimum execution time: 3_030_000 picoseconds. - Weight::from_parts(3_206_000, 3576) + // Minimum execution time: 1_370_000 picoseconds. + Weight::from_parts(1_470_000, 3576) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Refungible TokenProperties (r:1 w:1) /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen) fn repair_item() -> Weight { // Proof Size summary in bytes: - // Measured: `174` + // Measured: `120` // Estimated: `36269` - // Minimum execution time: 4_371_000 picoseconds. - Weight::from_parts(4_555_000, 36269) + // Minimum execution time: 1_350_000 picoseconds. + Weight::from_parts(1_420_000, 36269) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } -- gitstuff