From 0900b3de37ab670ff19aea199574fdf3ae7cd7dd Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Sat, 30 Sep 2023 15:53:35 +0000 Subject: [PATCH] chore: temporary bench nft/rft/common --- --- 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-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-09-30, 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,6 +36,7 @@ fn set_collection_properties(b: u32, ) -> Weight; fn delete_collection_properties(b: u32, ) -> Weight; fn check_accesslist() -> Weight; + fn init_token_properties_common() -> Weight; } /// Weights for pallet_common using the Substrate node and recommended hardware. @@ -48,10 +49,10 @@ // Proof Size summary in bytes: // Measured: `298` // Estimated: `44457` - // Minimum execution time: 4_862_000 picoseconds. - Weight::from_parts(5_003_000, 44457) - // Standard Error: 3_889 - .saturating_add(Weight::from_parts(4_918_195, 0).saturating_mul(b.into())) + // Minimum execution time: 2_831_000 picoseconds. + Weight::from_parts(8_612_860, 44457) + // Standard Error: 8_791 + .saturating_add(Weight::from_parts(2_512_039, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -62,10 +63,10 @@ // Proof Size summary in bytes: // Measured: `303 + b * (33030 ±0)` // Estimated: `44457` - // Minimum execution time: 4_739_000 picoseconds. - Weight::from_parts(4_887_000, 44457) - // Standard Error: 37_951 - .saturating_add(Weight::from_parts(23_410_931, 0).saturating_mul(b.into())) + // Minimum execution time: 2_650_000 picoseconds. + Weight::from_parts(2_750_000, 44457) + // Standard Error: 28_392 + .saturating_add(Weight::from_parts(8_897_514, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -75,10 +76,22 @@ // Proof Size summary in bytes: // Measured: `373` // Estimated: `3535` - // Minimum execution time: 4_183_000 picoseconds. - Weight::from_parts(4_391_000, 3535) + // Minimum execution time: 2_730_000 picoseconds. + Weight::from_parts(2_850_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 { + // Proof Size summary in bytes: + // Measured: `326` + // Estimated: `20191` + // Minimum execution time: 3_770_000 picoseconds. + Weight::from_parts(3_930_000, 20191) + .saturating_add(T::DbWeight::get().reads(2_u64)) + } } // For backwards compatibility and tests @@ -90,10 +103,10 @@ // Proof Size summary in bytes: // Measured: `298` // Estimated: `44457` - // Minimum execution time: 4_862_000 picoseconds. - Weight::from_parts(5_003_000, 44457) - // Standard Error: 3_889 - .saturating_add(Weight::from_parts(4_918_195, 0).saturating_mul(b.into())) + // Minimum execution time: 2_831_000 picoseconds. + Weight::from_parts(8_612_860, 44457) + // Standard Error: 8_791 + .saturating_add(Weight::from_parts(2_512_039, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -104,10 +117,10 @@ // Proof Size summary in bytes: // Measured: `303 + b * (33030 ±0)` // Estimated: `44457` - // Minimum execution time: 4_739_000 picoseconds. - Weight::from_parts(4_887_000, 44457) - // Standard Error: 37_951 - .saturating_add(Weight::from_parts(23_410_931, 0).saturating_mul(b.into())) + // Minimum execution time: 2_650_000 picoseconds. + Weight::from_parts(2_750_000, 44457) + // Standard Error: 28_392 + .saturating_add(Weight::from_parts(8_897_514, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -117,9 +130,21 @@ // Proof Size summary in bytes: // Measured: `373` // Estimated: `3535` - // Minimum execution time: 4_183_000 picoseconds. - Weight::from_parts(4_391_000, 3535) + // Minimum execution time: 2_730_000 picoseconds. + Weight::from_parts(2_850_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 { + // Proof Size summary in bytes: + // Measured: `326` + // Estimated: `20191` + // Minimum execution time: 3_770_000 picoseconds. + Weight::from_parts(3_930_000, 20191) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + } } --- 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-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-09-30, 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,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 init_token_properties(b: u32, ) -> Weight; fn delete_token_properties(b: u32, ) -> Weight; fn token_owner() -> Weight; fn set_allowance_for_all() -> Weight; @@ -69,8 +69,8 @@ // Proof Size summary in bytes: // Measured: `142` // Estimated: `3530` - // Minimum execution time: 10_723_000 picoseconds. - Weight::from_parts(11_038_000, 3530) + // Minimum execution time: 4_981_000 picoseconds. + Weight::from_parts(5_160_000, 3530) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -87,10 +87,10 @@ // Proof Size summary in bytes: // Measured: `142` // Estimated: `3530` - // Minimum execution time: 3_170_000 picoseconds. - Weight::from_parts(2_230_822, 3530) - // Standard Error: 417 - .saturating_add(Weight::from_parts(3_552_754, 0).saturating_mul(b.into())) + // Minimum execution time: 1_701_000 picoseconds. + Weight::from_parts(1_750_000, 3530) + // Standard Error: 549 + .saturating_add(Weight::from_parts(2_507_305, 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 +108,10 @@ // Proof Size summary in bytes: // Measured: `142` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 3_234_000 picoseconds. - Weight::from_parts(3_359_000, 3481) - // Standard Error: 598 - .saturating_add(Weight::from_parts(4_872_803, 0).saturating_mul(b.into())) + // Minimum execution time: 1_600_000 picoseconds. + Weight::from_parts(1_661_000, 3481) + // Standard Error: 1_210 + .saturating_add(Weight::from_parts(3_472_463, 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 +136,8 @@ // Proof Size summary in bytes: // Measured: `380` // Estimated: `3530` - // Minimum execution time: 17_970_000 picoseconds. - Weight::from_parts(18_458_000, 3530) + // Minimum execution time: 10_401_000 picoseconds. + Weight::from_parts(10_701_000, 3530) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -159,8 +159,8 @@ // Proof Size summary in bytes: // Measured: `380` // Estimated: `3530` - // Minimum execution time: 22_995_000 picoseconds. - Weight::from_parts(23_505_000, 3530) + // Minimum execution time: 12_982_000 picoseconds. + Weight::from_parts(13_522_000, 3530) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -185,10 +185,10 @@ // Proof Size summary in bytes: // Measured: `1500 + b * (58 ±0)` // Estimated: `5874 + b * (5032 ±0)` - // Minimum execution time: 22_854_000 picoseconds. - Weight::from_parts(23_291_000, 5874) - // Standard Error: 83_594 - .saturating_add(Weight::from_parts(59_695_924, 0).saturating_mul(b.into())) + // Minimum execution time: 13_201_000 picoseconds. + Weight::from_parts(13_371_000, 5874) + // Standard Error: 124_410 + .saturating_add(Weight::from_parts(41_526_223, 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 +207,8 @@ // Proof Size summary in bytes: // Measured: `380` // Estimated: `6070` - // Minimum execution time: 13_873_000 picoseconds. - Weight::from_parts(14_318_000, 6070) + // Minimum execution time: 8_681_000 picoseconds. + Weight::from_parts(8_891_000, 6070) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -220,8 +220,8 @@ // Proof Size summary in bytes: // Measured: `326` // Estimated: `3522` - // Minimum execution time: 7_895_000 picoseconds. - Weight::from_parts(8_131_000, 3522) + // Minimum execution time: 4_651_000 picoseconds. + Weight::from_parts(4_830_000, 3522) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -233,8 +233,8 @@ // Proof Size summary in bytes: // Measured: `313` // Estimated: `3522` - // Minimum execution time: 7_931_000 picoseconds. - Weight::from_parts(8_185_000, 3522) + // Minimum execution time: 4_721_000 picoseconds. + Weight::from_parts(4_851_000, 3522) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -244,8 +244,8 @@ // Proof Size summary in bytes: // Measured: `362` // Estimated: `3522` - // Minimum execution time: 4_111_000 picoseconds. - Weight::from_parts(4_280_000, 3522) + // Minimum execution time: 2_621_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 +266,8 @@ // Proof Size summary in bytes: // Measured: `463` // Estimated: `3530` - // Minimum execution time: 21_756_000 picoseconds. - Weight::from_parts(22_237_000, 3530) + // Minimum execution time: 13_432_000 picoseconds. + Weight::from_parts(13_681_000, 3530) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -278,17 +278,17 @@ // Proof Size summary in bytes: // Measured: `314` // Estimated: `20191` - // Minimum execution time: 1_411_000 picoseconds. - Weight::from_parts(1_505_000, 20191) - // Standard Error: 14_327 - .saturating_add(Weight::from_parts(8_366_431, 0).saturating_mul(b.into())) + // Minimum execution time: 610_000 picoseconds. + Weight::from_parts(640_000, 20191) + // Standard Error: 22_744 + .saturating_add(Weight::from_parts(5_938_386, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1_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: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]`. @@ -296,44 +296,41 @@ // Proof Size summary in bytes: // Measured: `640 + b * (261 ±0)` // Estimated: `36269` - // Minimum execution time: 3_628_000 picoseconds. - Weight::from_parts(1_438_616, 36269) - // Standard Error: 13_799 - .saturating_add(Weight::from_parts(5_486_048, 0).saturating_mul(b.into())) + // Minimum execution time: 360_000 picoseconds. + Weight::from_parts(3_526_074, 36269) + // Standard Error: 8_803 + .saturating_add(Weight::from_parts(2_784_005, 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 { + fn init_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `317 + b * (261 ±0)` - // Estimated: `20191` - // Minimum execution time: 1_016_000 picoseconds. - Weight::from_parts(4_628_460, 20191) - // Standard Error: 23_738 - .saturating_add(Weight::from_parts(5_023_391, 0).saturating_mul(b.into())) - .saturating_add(T::DbWeight::get().reads(1_u64)) + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 70_000 picoseconds. + Weight::from_parts(2_216_986, 0) + // Standard Error: 5_264 + .saturating_add(Weight::from_parts(2_408_457, 0).saturating_mul(b.into())) .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) + /// Storage: Nonfungible TokenProperties (r:1 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 delete_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `699 + b * (33291 ±0)` // Estimated: `36269` - // Minimum execution time: 3_576_000 picoseconds. - Weight::from_parts(3_709_000, 36269) - // Standard Error: 36_977 - .saturating_add(Weight::from_parts(23_798_574, 0).saturating_mul(b.into())) + // Minimum execution time: 360_000 picoseconds. + Weight::from_parts(380_000, 36269) + // Standard Error: 26_060 + .saturating_add(Weight::from_parts(9_230_365, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -343,8 +340,8 @@ // Proof Size summary in bytes: // Measured: `326` // Estimated: `3522` - // Minimum execution time: 3_614_000 picoseconds. - Weight::from_parts(3_776_000, 3522) + // Minimum execution time: 2_350_000 picoseconds. + Weight::from_parts(2_450_000, 3522) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:0 w:1) @@ -353,8 +350,8 @@ // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_345_000 picoseconds. - Weight::from_parts(4_555_000, 0) + // Minimum execution time: 2_040_000 picoseconds. + Weight::from_parts(2_150_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:1 w:0) @@ -363,8 +360,8 @@ // Proof Size summary in bytes: // Measured: `142` // Estimated: `3576` - // Minimum execution time: 2_810_000 picoseconds. - Weight::from_parts(2_982_000, 3576) + // Minimum execution time: 1_560_000 picoseconds. + Weight::from_parts(1_670_000, 3576) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Nonfungible TokenProperties (r:1 w:1) @@ -373,8 +370,8 @@ // Proof Size summary in bytes: // Measured: `279` // Estimated: `36269` - // Minimum execution time: 3_050_000 picoseconds. - Weight::from_parts(3_169_000, 36269) + // Minimum execution time: 1_710_000 picoseconds. + Weight::from_parts(1_781_000, 36269) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -394,8 +391,8 @@ // Proof Size summary in bytes: // Measured: `142` // Estimated: `3530` - // Minimum execution time: 10_723_000 picoseconds. - Weight::from_parts(11_038_000, 3530) + // Minimum execution time: 4_981_000 picoseconds. + Weight::from_parts(5_160_000, 3530) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -412,10 +409,10 @@ // Proof Size summary in bytes: // Measured: `142` // Estimated: `3530` - // Minimum execution time: 3_170_000 picoseconds. - Weight::from_parts(2_230_822, 3530) - // Standard Error: 417 - .saturating_add(Weight::from_parts(3_552_754, 0).saturating_mul(b.into())) + // Minimum execution time: 1_701_000 picoseconds. + Weight::from_parts(1_750_000, 3530) + // Standard Error: 549 + .saturating_add(Weight::from_parts(2_507_305, 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()))) @@ -433,10 +430,10 @@ // Proof Size summary in bytes: // Measured: `142` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 3_234_000 picoseconds. - Weight::from_parts(3_359_000, 3481) - // Standard Error: 598 - .saturating_add(Weight::from_parts(4_872_803, 0).saturating_mul(b.into())) + // Minimum execution time: 1_600_000 picoseconds. + Weight::from_parts(1_661_000, 3481) + // Standard Error: 1_210 + .saturating_add(Weight::from_parts(3_472_463, 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)) @@ -461,8 +458,8 @@ // Proof Size summary in bytes: // Measured: `380` // Estimated: `3530` - // Minimum execution time: 17_970_000 picoseconds. - Weight::from_parts(18_458_000, 3530) + // Minimum execution time: 10_401_000 picoseconds. + Weight::from_parts(10_701_000, 3530) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -484,8 +481,8 @@ // Proof Size summary in bytes: // Measured: `380` // Estimated: `3530` - // Minimum execution time: 22_995_000 picoseconds. - Weight::from_parts(23_505_000, 3530) + // Minimum execution time: 12_982_000 picoseconds. + Weight::from_parts(13_522_000, 3530) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -510,10 +507,10 @@ // Proof Size summary in bytes: // Measured: `1500 + b * (58 ±0)` // Estimated: `5874 + b * (5032 ±0)` - // Minimum execution time: 22_854_000 picoseconds. - Weight::from_parts(23_291_000, 5874) - // Standard Error: 83_594 - .saturating_add(Weight::from_parts(59_695_924, 0).saturating_mul(b.into())) + // Minimum execution time: 13_201_000 picoseconds. + Weight::from_parts(13_371_000, 5874) + // Standard Error: 124_410 + .saturating_add(Weight::from_parts(41_526_223, 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)) @@ -532,8 +529,8 @@ // Proof Size summary in bytes: // Measured: `380` // Estimated: `6070` - // Minimum execution time: 13_873_000 picoseconds. - Weight::from_parts(14_318_000, 6070) + // Minimum execution time: 8_681_000 picoseconds. + Weight::from_parts(8_891_000, 6070) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -545,8 +542,8 @@ // Proof Size summary in bytes: // Measured: `326` // Estimated: `3522` - // Minimum execution time: 7_895_000 picoseconds. - Weight::from_parts(8_131_000, 3522) + // Minimum execution time: 4_651_000 picoseconds. + Weight::from_parts(4_830_000, 3522) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -558,8 +555,8 @@ // Proof Size summary in bytes: // Measured: `313` // Estimated: `3522` - // Minimum execution time: 7_931_000 picoseconds. - Weight::from_parts(8_185_000, 3522) + // Minimum execution time: 4_721_000 picoseconds. + Weight::from_parts(4_851_000, 3522) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -569,8 +566,8 @@ // Proof Size summary in bytes: // Measured: `362` // Estimated: `3522` - // Minimum execution time: 4_111_000 picoseconds. - Weight::from_parts(4_280_000, 3522) + // Minimum execution time: 2_621_000 picoseconds. + Weight::from_parts(2_760_000, 3522) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Nonfungible Allowance (r:1 w:1) @@ -591,8 +588,8 @@ // Proof Size summary in bytes: // Measured: `463` // Estimated: `3530` - // Minimum execution time: 21_756_000 picoseconds. - Weight::from_parts(22_237_000, 3530) + // Minimum execution time: 13_432_000 picoseconds. + Weight::from_parts(13_681_000, 3530) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -603,17 +600,17 @@ // Proof Size summary in bytes: // Measured: `314` // Estimated: `20191` - // Minimum execution time: 1_411_000 picoseconds. - Weight::from_parts(1_505_000, 20191) - // Standard Error: 14_327 - .saturating_add(Weight::from_parts(8_366_431, 0).saturating_mul(b.into())) + // Minimum execution time: 610_000 picoseconds. + Weight::from_parts(640_000, 20191) + // Standard Error: 22_744 + .saturating_add(Weight::from_parts(5_938_386, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_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: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]`. @@ -621,44 +618,41 @@ // Proof Size summary in bytes: // Measured: `640 + b * (261 ±0)` // Estimated: `36269` - // Minimum execution time: 3_628_000 picoseconds. - Weight::from_parts(1_438_616, 36269) - // Standard Error: 13_799 - .saturating_add(Weight::from_parts(5_486_048, 0).saturating_mul(b.into())) + // Minimum execution time: 360_000 picoseconds. + Weight::from_parts(3_526_074, 36269) + // Standard Error: 8_803 + .saturating_add(Weight::from_parts(2_784_005, 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 { + fn init_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `317 + b * (261 ±0)` - // Estimated: `20191` - // Minimum execution time: 1_016_000 picoseconds. - Weight::from_parts(4_628_460, 20191) - // Standard Error: 23_738 - .saturating_add(Weight::from_parts(5_023_391, 0).saturating_mul(b.into())) - .saturating_add(RocksDbWeight::get().reads(1_u64)) + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 70_000 picoseconds. + Weight::from_parts(2_216_986, 0) + // Standard Error: 5_264 + .saturating_add(Weight::from_parts(2_408_457, 0).saturating_mul(b.into())) .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) + /// Storage: Nonfungible TokenProperties (r:1 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 delete_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `699 + b * (33291 ±0)` // Estimated: `36269` - // Minimum execution time: 3_576_000 picoseconds. - Weight::from_parts(3_709_000, 36269) - // Standard Error: 36_977 - .saturating_add(Weight::from_parts(23_798_574, 0).saturating_mul(b.into())) + // Minimum execution time: 360_000 picoseconds. + Weight::from_parts(380_000, 36269) + // Standard Error: 26_060 + .saturating_add(Weight::from_parts(9_230_365, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -668,8 +662,8 @@ // Proof Size summary in bytes: // Measured: `326` // Estimated: `3522` - // Minimum execution time: 3_614_000 picoseconds. - Weight::from_parts(3_776_000, 3522) + // Minimum execution time: 2_350_000 picoseconds. + Weight::from_parts(2_450_000, 3522) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:0 w:1) @@ -678,8 +672,8 @@ // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_345_000 picoseconds. - Weight::from_parts(4_555_000, 0) + // Minimum execution time: 2_040_000 picoseconds. + Weight::from_parts(2_150_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Nonfungible CollectionAllowance (r:1 w:0) @@ -688,8 +682,8 @@ // Proof Size summary in bytes: // Measured: `142` // Estimated: `3576` - // Minimum execution time: 2_810_000 picoseconds. - Weight::from_parts(2_982_000, 3576) + // Minimum execution time: 1_560_000 picoseconds. + Weight::from_parts(1_670_000, 3576) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Nonfungible TokenProperties (r:1 w:1) @@ -698,8 +692,8 @@ // Proof Size summary in bytes: // Measured: `279` // Estimated: `36269` - // Minimum execution time: 3_050_000 picoseconds. - Weight::from_parts(3_169_000, 36269) + // Minimum execution time: 1_710_000 picoseconds. + Weight::from_parts(1_781_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-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-09-30, 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,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 init_token_properties(b: u32, ) -> Weight; fn delete_token_properties(b: u32, ) -> Weight; fn repartition_item() -> Weight; fn token_owner() -> Weight; @@ -78,8 +78,8 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3530` - // Minimum execution time: 12_168_000 picoseconds. - Weight::from_parts(12_531_000, 3530) + // Minimum execution time: 5_410_000 picoseconds. + Weight::from_parts(5_630_000, 3530) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -98,10 +98,10 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3530` - // Minimum execution time: 2_583_000 picoseconds. - Weight::from_parts(2_726_000, 3530) - // Standard Error: 1_051 - .saturating_add(Weight::from_parts(4_727_433, 0).saturating_mul(b.into())) + // Minimum execution time: 1_210_000 picoseconds. + Weight::from_parts(1_280_000, 3530) + // Standard Error: 1_172 + .saturating_add(Weight::from_parts(3_145_627, 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 +121,10 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 2_565_000 picoseconds. - Weight::from_parts(2_710_000, 3481) - // Standard Error: 862 - .saturating_add(Weight::from_parts(5_951_711, 0).saturating_mul(b.into())) + // Minimum execution time: 1_230_000 picoseconds. + Weight::from_parts(1_310_000, 3481) + // Standard Error: 1_385 + .saturating_add(Weight::from_parts(3_942_825, 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 +146,10 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 4_281_000 picoseconds. - Weight::from_parts(3_252_037, 3481) - // Standard Error: 568 - .saturating_add(Weight::from_parts(4_380_356, 0).saturating_mul(b.into())) + // Minimum execution time: 1_610_000 picoseconds. + Weight::from_parts(1_650_000, 3481) + // Standard Error: 1_090 + .saturating_add(Weight::from_parts(3_125_098, 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 +168,8 @@ // Proof Size summary in bytes: // Measured: `456` // Estimated: `8682` - // Minimum execution time: 22_354_000 picoseconds. - Weight::from_parts(22_787_000, 8682) + // Minimum execution time: 12_180_000 picoseconds. + Weight::from_parts(12_580_000, 8682) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -189,8 +189,8 @@ // Proof Size summary in bytes: // Measured: `341` // Estimated: `3554` - // Minimum execution time: 21_689_000 picoseconds. - Weight::from_parts(22_199_000, 3554) + // Minimum execution time: 12_230_000 picoseconds. + Weight::from_parts(12_550_000, 3554) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -202,8 +202,8 @@ // Proof Size summary in bytes: // Measured: `365` // Estimated: `6118` - // Minimum execution time: 13_673_000 picoseconds. - Weight::from_parts(14_067_000, 6118) + // Minimum execution time: 7_630_000 picoseconds. + Weight::from_parts(7_919_000, 6118) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -219,8 +219,8 @@ // Proof Size summary in bytes: // Measured: `341` // Estimated: `6118` - // Minimum execution time: 15_863_000 picoseconds. - Weight::from_parts(16_197_000, 6118) + // Minimum execution time: 8_840_000 picoseconds. + Weight::from_parts(9_080_000, 6118) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -236,8 +236,8 @@ // Proof Size summary in bytes: // Measured: `456` // Estimated: `6118` - // Minimum execution time: 18_123_000 picoseconds. - Weight::from_parts(18_501_000, 6118) + // Minimum execution time: 10_270_000 picoseconds. + Weight::from_parts(10_670_000, 6118) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -253,8 +253,8 @@ // Proof Size summary in bytes: // Measured: `341` // Estimated: `6118` - // Minimum execution time: 17_966_000 picoseconds. - Weight::from_parts(18_305_000, 6118) + // Minimum execution time: 10_199_000 picoseconds. + Weight::from_parts(10_479_000, 6118) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -266,8 +266,8 @@ // Proof Size summary in bytes: // Measured: `223` // Estimated: `3554` - // Minimum execution time: 8_636_000 picoseconds. - Weight::from_parts(8_882_000, 3554) + // Minimum execution time: 4_750_000 picoseconds. + Weight::from_parts(4_910_000, 3554) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -279,8 +279,8 @@ // Proof Size summary in bytes: // Measured: `211` // Estimated: `3554` - // Minimum execution time: 8_756_000 picoseconds. - Weight::from_parts(8_978_000, 3554) + // Minimum execution time: 4_700_000 picoseconds. + Weight::from_parts(4_840_000, 3554) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -294,8 +294,8 @@ // Proof Size summary in bytes: // Measured: `495` // Estimated: `6118` - // Minimum execution time: 19_417_000 picoseconds. - Weight::from_parts(19_945_000, 6118) + // Minimum execution time: 11_419_000 picoseconds. + Weight::from_parts(11_800_000, 6118) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -313,8 +313,8 @@ // Proof Size summary in bytes: // Measured: `471` // Estimated: `6118` - // Minimum execution time: 21_425_000 picoseconds. - Weight::from_parts(21_829_000, 6118) + // Minimum execution time: 12_440_000 picoseconds. + Weight::from_parts(12_740_000, 6118) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -332,8 +332,8 @@ // Proof Size summary in bytes: // Measured: `586` // Estimated: `6118` - // Minimum execution time: 23_854_000 picoseconds. - Weight::from_parts(24_352_000, 6118) + // Minimum execution time: 14_030_000 picoseconds. + Weight::from_parts(14_380_000, 6118) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -351,8 +351,8 @@ // Proof Size summary in bytes: // Measured: `471` // Estimated: `6118` - // Minimum execution time: 23_775_000 picoseconds. - Weight::from_parts(24_236_000, 6118) + // Minimum execution time: 14_200_000 picoseconds. + Weight::from_parts(14_560_000, 6118) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -374,8 +374,8 @@ // Proof Size summary in bytes: // Measured: `471` // Estimated: `3570` - // Minimum execution time: 27_885_000 picoseconds. - Weight::from_parts(28_492_000, 3570) + // Minimum execution time: 16_590_000 picoseconds. + Weight::from_parts(17_079_000, 3570) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -386,17 +386,17 @@ // Proof Size summary in bytes: // Measured: `314` // Estimated: `20191` - // Minimum execution time: 1_299_000 picoseconds. - Weight::from_parts(1_410_000, 20191) - // Standard Error: 14_247 - .saturating_add(Weight::from_parts(8_221_449, 0).saturating_mul(b.into())) + // Minimum execution time: 560_000 picoseconds. + Weight::from_parts(590_000, 20191) + // Standard Error: 20_539 + .saturating_add(Weight::from_parts(5_317_277, 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 TokenProperties (r:1 w:1) + /// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, 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]`. @@ -404,44 +404,41 @@ // Proof Size summary in bytes: // Measured: `502 + b * (261 ±0)` // Estimated: `36269` - // Minimum execution time: 2_717_000 picoseconds. - Weight::from_parts(6_076_231, 36269) - // Standard Error: 10_349 - .saturating_add(Weight::from_parts(4_950_943, 0).saturating_mul(b.into())) + // Minimum execution time: 340_000 picoseconds. + Weight::from_parts(4_825_296, 36269) + // Standard Error: 4_846 + .saturating_add(Weight::from_parts(2_632_821, 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 { + fn init_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `317 + b * (261 ±0)` - // Estimated: `20191` - // Minimum execution time: 936_000 picoseconds. - Weight::from_parts(1_015_000, 20191) - // Standard Error: 9_051 - .saturating_add(Weight::from_parts(5_454_224, 0).saturating_mul(b.into())) - .saturating_add(T::DbWeight::get().reads(1_u64)) + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 70_000 picoseconds. + Weight::from_parts(70_000, 0) + // Standard Error: 2_858 + .saturating_add(Weight::from_parts(2_259_760, 0).saturating_mul(b.into())) .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) + /// Storage: Refungible TokenProperties (r:1 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 delete_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `561 + b * (33291 ±0)` // Estimated: `36269` - // Minimum execution time: 2_707_000 picoseconds. - Weight::from_parts(2_851_000, 36269) - // Standard Error: 36_568 - .saturating_add(Weight::from_parts(23_557_445, 0).saturating_mul(b.into())) + // Minimum execution time: 320_000 picoseconds. + Weight::from_parts(350_000, 36269) + // Standard Error: 24_256 + .saturating_add(Weight::from_parts(8_471_382, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -453,8 +450,8 @@ // Proof Size summary in bytes: // Measured: `288` // Estimated: `3554` - // Minimum execution time: 10_556_000 picoseconds. - Weight::from_parts(10_904_000, 3554) + // Minimum execution time: 5_600_000 picoseconds. + Weight::from_parts(5_850_000, 3554) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -464,8 +461,8 @@ // Proof Size summary in bytes: // Measured: `288` // Estimated: `6118` - // Minimum execution time: 4_708_000 picoseconds. - Weight::from_parts(4_974_000, 6118) + // Minimum execution time: 2_430_000 picoseconds. + Weight::from_parts(2_590_000, 6118) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: Refungible CollectionAllowance (r:0 w:1) @@ -474,8 +471,8 @@ // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_332_000 picoseconds. - Weight::from_parts(4_506_000, 0) + // Minimum execution time: 1_970_000 picoseconds. + Weight::from_parts(2_050_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Refungible CollectionAllowance (r:1 w:0) @@ -484,8 +481,8 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3576` - // Minimum execution time: 2_207_000 picoseconds. - Weight::from_parts(2_358_000, 3576) + // Minimum execution time: 1_140_000 picoseconds. + Weight::from_parts(1_240_000, 3576) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Refungible TokenProperties (r:1 w:1) @@ -494,8 +491,8 @@ // Proof Size summary in bytes: // Measured: `120` // Estimated: `36269` - // Minimum execution time: 2_230_000 picoseconds. - Weight::from_parts(2_337_000, 36269) + // Minimum execution time: 1_000_000 picoseconds. + Weight::from_parts(1_060_000, 36269) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -517,8 +514,8 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3530` - // Minimum execution time: 12_168_000 picoseconds. - Weight::from_parts(12_531_000, 3530) + // Minimum execution time: 5_410_000 picoseconds. + Weight::from_parts(5_630_000, 3530) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -537,10 +534,10 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3530` - // Minimum execution time: 2_583_000 picoseconds. - Weight::from_parts(2_726_000, 3530) - // Standard Error: 1_051 - .saturating_add(Weight::from_parts(4_727_433, 0).saturating_mul(b.into())) + // Minimum execution time: 1_210_000 picoseconds. + Weight::from_parts(1_280_000, 3530) + // Standard Error: 1_172 + .saturating_add(Weight::from_parts(3_145_627, 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()))) @@ -560,10 +557,10 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 2_565_000 picoseconds. - Weight::from_parts(2_710_000, 3481) - // Standard Error: 862 - .saturating_add(Weight::from_parts(5_951_711, 0).saturating_mul(b.into())) + // Minimum execution time: 1_230_000 picoseconds. + Weight::from_parts(1_310_000, 3481) + // Standard Error: 1_385 + .saturating_add(Weight::from_parts(3_942_825, 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)) @@ -585,10 +582,10 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3481 + b * (2540 ±0)` - // Minimum execution time: 4_281_000 picoseconds. - Weight::from_parts(3_252_037, 3481) - // Standard Error: 568 - .saturating_add(Weight::from_parts(4_380_356, 0).saturating_mul(b.into())) + // Minimum execution time: 1_610_000 picoseconds. + Weight::from_parts(1_650_000, 3481) + // Standard Error: 1_090 + .saturating_add(Weight::from_parts(3_125_098, 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)) @@ -607,8 +604,8 @@ // Proof Size summary in bytes: // Measured: `456` // Estimated: `8682` - // Minimum execution time: 22_354_000 picoseconds. - Weight::from_parts(22_787_000, 8682) + // Minimum execution time: 12_180_000 picoseconds. + Weight::from_parts(12_580_000, 8682) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -628,8 +625,8 @@ // Proof Size summary in bytes: // Measured: `341` // Estimated: `3554` - // Minimum execution time: 21_689_000 picoseconds. - Weight::from_parts(22_199_000, 3554) + // Minimum execution time: 12_230_000 picoseconds. + Weight::from_parts(12_550_000, 3554) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -641,8 +638,8 @@ // Proof Size summary in bytes: // Measured: `365` // Estimated: `6118` - // Minimum execution time: 13_673_000 picoseconds. - Weight::from_parts(14_067_000, 6118) + // Minimum execution time: 7_630_000 picoseconds. + Weight::from_parts(7_919_000, 6118) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -658,8 +655,8 @@ // Proof Size summary in bytes: // Measured: `341` // Estimated: `6118` - // Minimum execution time: 15_863_000 picoseconds. - Weight::from_parts(16_197_000, 6118) + // Minimum execution time: 8_840_000 picoseconds. + Weight::from_parts(9_080_000, 6118) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -675,8 +672,8 @@ // Proof Size summary in bytes: // Measured: `456` // Estimated: `6118` - // Minimum execution time: 18_123_000 picoseconds. - Weight::from_parts(18_501_000, 6118) + // Minimum execution time: 10_270_000 picoseconds. + Weight::from_parts(10_670_000, 6118) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -692,8 +689,8 @@ // Proof Size summary in bytes: // Measured: `341` // Estimated: `6118` - // Minimum execution time: 17_966_000 picoseconds. - Weight::from_parts(18_305_000, 6118) + // Minimum execution time: 10_199_000 picoseconds. + Weight::from_parts(10_479_000, 6118) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -705,8 +702,8 @@ // Proof Size summary in bytes: // Measured: `223` // Estimated: `3554` - // Minimum execution time: 8_636_000 picoseconds. - Weight::from_parts(8_882_000, 3554) + // Minimum execution time: 4_750_000 picoseconds. + Weight::from_parts(4_910_000, 3554) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -718,8 +715,8 @@ // Proof Size summary in bytes: // Measured: `211` // Estimated: `3554` - // Minimum execution time: 8_756_000 picoseconds. - Weight::from_parts(8_978_000, 3554) + // Minimum execution time: 4_700_000 picoseconds. + Weight::from_parts(4_840_000, 3554) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -733,8 +730,8 @@ // Proof Size summary in bytes: // Measured: `495` // Estimated: `6118` - // Minimum execution time: 19_417_000 picoseconds. - Weight::from_parts(19_945_000, 6118) + // Minimum execution time: 11_419_000 picoseconds. + Weight::from_parts(11_800_000, 6118) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -752,8 +749,8 @@ // Proof Size summary in bytes: // Measured: `471` // Estimated: `6118` - // Minimum execution time: 21_425_000 picoseconds. - Weight::from_parts(21_829_000, 6118) + // Minimum execution time: 12_440_000 picoseconds. + Weight::from_parts(12_740_000, 6118) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -771,8 +768,8 @@ // Proof Size summary in bytes: // Measured: `586` // Estimated: `6118` - // Minimum execution time: 23_854_000 picoseconds. - Weight::from_parts(24_352_000, 6118) + // Minimum execution time: 14_030_000 picoseconds. + Weight::from_parts(14_380_000, 6118) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -790,8 +787,8 @@ // Proof Size summary in bytes: // Measured: `471` // Estimated: `6118` - // Minimum execution time: 23_775_000 picoseconds. - Weight::from_parts(24_236_000, 6118) + // Minimum execution time: 14_200_000 picoseconds. + Weight::from_parts(14_560_000, 6118) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -813,8 +810,8 @@ // Proof Size summary in bytes: // Measured: `471` // Estimated: `3570` - // Minimum execution time: 27_885_000 picoseconds. - Weight::from_parts(28_492_000, 3570) + // Minimum execution time: 16_590_000 picoseconds. + Weight::from_parts(17_079_000, 3570) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -825,17 +822,17 @@ // Proof Size summary in bytes: // Measured: `314` // Estimated: `20191` - // Minimum execution time: 1_299_000 picoseconds. - Weight::from_parts(1_410_000, 20191) - // Standard Error: 14_247 - .saturating_add(Weight::from_parts(8_221_449, 0).saturating_mul(b.into())) + // Minimum execution time: 560_000 picoseconds. + Weight::from_parts(590_000, 20191) + // Standard Error: 20_539 + .saturating_add(Weight::from_parts(5_317_277, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(1_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: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]`. @@ -843,44 +840,41 @@ // Proof Size summary in bytes: // Measured: `502 + b * (261 ±0)` // Estimated: `36269` - // Minimum execution time: 2_717_000 picoseconds. - Weight::from_parts(6_076_231, 36269) - // Standard Error: 10_349 - .saturating_add(Weight::from_parts(4_950_943, 0).saturating_mul(b.into())) + // Minimum execution time: 340_000 picoseconds. + Weight::from_parts(4_825_296, 36269) + // Standard Error: 4_846 + .saturating_add(Weight::from_parts(2_632_821, 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 { + fn init_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `317 + b * (261 ±0)` - // Estimated: `20191` - // Minimum execution time: 936_000 picoseconds. - Weight::from_parts(1_015_000, 20191) - // Standard Error: 9_051 - .saturating_add(Weight::from_parts(5_454_224, 0).saturating_mul(b.into())) - .saturating_add(RocksDbWeight::get().reads(1_u64)) + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 70_000 picoseconds. + Weight::from_parts(70_000, 0) + // Standard Error: 2_858 + .saturating_add(Weight::from_parts(2_259_760, 0).saturating_mul(b.into())) .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) + /// Storage: Refungible TokenProperties (r:1 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 delete_token_properties(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `561 + b * (33291 ±0)` // Estimated: `36269` - // Minimum execution time: 2_707_000 picoseconds. - Weight::from_parts(2_851_000, 36269) - // Standard Error: 36_568 - .saturating_add(Weight::from_parts(23_557_445, 0).saturating_mul(b.into())) + // Minimum execution time: 320_000 picoseconds. + Weight::from_parts(350_000, 36269) + // Standard Error: 24_256 + .saturating_add(Weight::from_parts(8_471_382, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -892,8 +886,8 @@ // Proof Size summary in bytes: // Measured: `288` // Estimated: `3554` - // Minimum execution time: 10_556_000 picoseconds. - Weight::from_parts(10_904_000, 3554) + // Minimum execution time: 5_600_000 picoseconds. + Weight::from_parts(5_850_000, 3554) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -903,8 +897,8 @@ // Proof Size summary in bytes: // Measured: `288` // Estimated: `6118` - // Minimum execution time: 4_708_000 picoseconds. - Weight::from_parts(4_974_000, 6118) + // Minimum execution time: 2_430_000 picoseconds. + Weight::from_parts(2_590_000, 6118) .saturating_add(RocksDbWeight::get().reads(2_u64)) } /// Storage: Refungible CollectionAllowance (r:0 w:1) @@ -913,8 +907,8 @@ // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_332_000 picoseconds. - Weight::from_parts(4_506_000, 0) + // Minimum execution time: 1_970_000 picoseconds. + Weight::from_parts(2_050_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Refungible CollectionAllowance (r:1 w:0) @@ -923,8 +917,8 @@ // Proof Size summary in bytes: // Measured: `4` // Estimated: `3576` - // Minimum execution time: 2_207_000 picoseconds. - Weight::from_parts(2_358_000, 3576) + // Minimum execution time: 1_140_000 picoseconds. + Weight::from_parts(1_240_000, 3576) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Refungible TokenProperties (r:1 w:1) @@ -933,8 +927,8 @@ // Proof Size summary in bytes: // Measured: `120` // Estimated: `36269` - // Minimum execution time: 2_230_000 picoseconds. - Weight::from_parts(2_337_000, 36269) + // Minimum execution time: 1_000_000 picoseconds. + Weight::from_parts(1_060_000, 36269) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } -- gitstuff