From be8d34cbce61e9bc2705ab52999d4448c4e99d37 Mon Sep 17 00:00:00 2001 From: Roznovjak Date: Thu, 29 Aug 2024 14:13:44 +0200 Subject: [PATCH] rebenchmark collator selection pallet with old benchmarking command --- .../src/weights/pallet_collator_selection.rs | 154 +++++++++--------- 1 file changed, 75 insertions(+), 79 deletions(-) diff --git a/runtime/basilisk/src/weights/pallet_collator_selection.rs b/runtime/basilisk/src/weights/pallet_collator_selection.rs index 9e1b55607c..99244e343a 100644 --- a/runtime/basilisk/src/weights/pallet_collator_selection.rs +++ b/runtime/basilisk/src/weights/pallet_collator_selection.rs @@ -18,28 +18,24 @@ //! Autogenerated weights for `pallet_collator_selection` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.0 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 //! DATE: 2024-08-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` -//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` // Executed Command: -// frame-omni-bencher -// v1 +// target/release/basilisk // benchmark // pallet -// --runtime -// target/release/wbuild/basilisk-runtime/basilisk_runtime.compact.compressed.wasm -// --extrinsic -// -// --heap-pages=4096 +// --chain=dev // --steps=50 // --repeat=20 +// --wasm-execution=compiled +// --pallet=pallet-collator-selection +// --extrinsic=* // --template=scripts/pallet-weight-template.hbs -// --pallet -// pallet_collator_selection -// --output=./weights/pallet_collator_selection +// --output=./weights/pallet_collator_selection.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -62,12 +58,12 @@ impl pallet_collator_selection::WeightInfo for Basilisk /// The range of component `b` is `[1, 50]`. fn set_invulnerables(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `45 + b * (79 ±0)` - // Estimated: `1034 + b * (2554 ±0)` - // Minimum execution time: 13_985_000 picoseconds. - Weight::from_parts(14_615_278, 1034) - // Standard Error: 3_714 - .saturating_add(Weight::from_parts(3_565_350, 0).saturating_mul(b.into())) + // Measured: `208 + b * (79 ±0)` + // Estimated: `1196 + b * (2554 ±0)` + // Minimum execution time: 14_901_000 picoseconds. + Weight::from_parts(14_367_733, 1196) + // Standard Error: 4_447 + .saturating_add(Weight::from_parts(3_130_684, 0).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(Weight::from_parts(0, 2554).saturating_mul(b.into())) @@ -84,18 +80,18 @@ impl pallet_collator_selection::WeightInfo for Basilisk /// The range of component `c` is `[1, 19]`. fn add_invulnerable(b: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `631 + b * (41 ±0) + c * (48 ±0)` - // Estimated: `4120 + b * (42 ±0) + c * (45 ±0)` - // Minimum execution time: 51_128_000 picoseconds. - Weight::from_parts(51_063_721, 4120) - // Standard Error: 1_150 - .saturating_add(Weight::from_parts(102_421, 0).saturating_mul(b.into())) - // Standard Error: 3_031 - .saturating_add(Weight::from_parts(19_138, 0).saturating_mul(c.into())) + // Measured: `870 + b * (40 ±0) + c * (48 ±0)` + // Estimated: `4383 + b * (42 ±0) + c * (44 ±0)` + // Minimum execution time: 43_770_000 picoseconds. + Weight::from_parts(43_216_211, 4383) + // Standard Error: 2_623 + .saturating_add(Weight::from_parts(146_157, 0).saturating_mul(b.into())) + // Standard Error: 6_910 + .saturating_add(Weight::from_parts(2_452, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_parts(0, 42).saturating_mul(b.into())) - .saturating_add(Weight::from_parts(0, 45).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 44).saturating_mul(c.into())) } /// Storage: `CollatorSelection::CandidateList` (r:1 w:0) /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(961), added: 1456, mode: `MaxEncodedLen`) @@ -104,12 +100,12 @@ impl pallet_collator_selection::WeightInfo for Basilisk /// The range of component `b` is `[5, 50]`. fn remove_invulnerable(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `8 + b * (32 ±0)` + // Measured: `186 + b * (32 ±0)` // Estimated: `3086` - // Minimum execution time: 14_448_000 picoseconds. - Weight::from_parts(14_826_194, 3086) - // Standard Error: 691 - .saturating_add(Weight::from_parts(61_661, 0).saturating_mul(b.into())) + // Minimum execution time: 14_725_000 picoseconds. + Weight::from_parts(15_080_843, 3086) + // Standard Error: 584 + .saturating_add(Weight::from_parts(40_032, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -119,8 +115,8 @@ impl pallet_collator_selection::WeightInfo for Basilisk // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_986_000 picoseconds. - Weight::from_parts(7_212_000, 0) + // Minimum execution time: 6_146_000 picoseconds. + Weight::from_parts(6_343_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `CollatorSelection::CandidacyBond` (r:1 w:1) @@ -135,14 +131,14 @@ impl pallet_collator_selection::WeightInfo for Basilisk /// The range of component `k` is `[0, 20]`. fn set_candidacy_bond(c: u32, k: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + c * (167 ±0) + k * (114 ±0)` + // Measured: `0 + c * (168 ±0) + k * (119 ±0)` // Estimated: `3593 + c * (848 ±30) + k * (848 ±30)` - // Minimum execution time: 12_114_000 picoseconds. - Weight::from_parts(12_377_000, 3593) - // Standard Error: 213_404 - .saturating_add(Weight::from_parts(7_181_998, 0).saturating_mul(c.into())) - // Standard Error: 213_404 - .saturating_add(Weight::from_parts(6_998_294, 0).saturating_mul(k.into())) + // Minimum execution time: 11_959_000 picoseconds. + Weight::from_parts(12_164_000, 3593) + // Standard Error: 170_816 + .saturating_add(Weight::from_parts(5_837_076, 0).saturating_mul(c.into())) + // Standard Error: 170_816 + .saturating_add(Weight::from_parts(5_635_096, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) @@ -154,15 +150,15 @@ impl pallet_collator_selection::WeightInfo for Basilisk /// Proof: `CollatorSelection::CandidacyBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) /// Storage: `CollatorSelection::CandidateList` (r:1 w:1) /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(961), added: 1456, mode: `MaxEncodedLen`) - /// The range of component `c` is `[5, 20]`. + /// The range of component `c` is `[3, 20]`. fn update_bond(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `319 + c * (43 ±0)` + // Measured: `396 + c * (47 ±0)` // Estimated: `2446` - // Minimum execution time: 33_364_000 picoseconds. - Weight::from_parts(33_853_318, 2446) - // Standard Error: 4_272 - .saturating_add(Weight::from_parts(76_648, 0).saturating_mul(c.into())) + // Minimum execution time: 28_716_000 picoseconds. + Weight::from_parts(29_319_168, 2446) + // Standard Error: 3_024 + .saturating_add(Weight::from_parts(81_578, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -179,15 +175,15 @@ impl pallet_collator_selection::WeightInfo for Basilisk /// The range of component `c` is `[1, 19]`. fn register_as_candidate(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `241 + c * (64 ±0)` - // Estimated: `3710 + c * (64 ±0)` - // Minimum execution time: 43_425_000 picoseconds. - Weight::from_parts(44_309_516, 3710) - // Standard Error: 2_289 - .saturating_add(Weight::from_parts(206_723, 0).saturating_mul(c.into())) + // Measured: `617 + c * (61 ±0)` + // Estimated: `4082 + c * (61 ±0)` + // Minimum execution time: 38_583_000 picoseconds. + Weight::from_parts(38_636_146, 4082) + // Standard Error: 5_223 + .saturating_add(Weight::from_parts(345_390, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) - .saturating_add(Weight::from_parts(0, 64).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 61).saturating_mul(c.into())) } /// Storage: `CollatorSelection::Invulnerables` (r:1 w:0) /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(1601), added: 2096, mode: `MaxEncodedLen`) @@ -201,18 +197,18 @@ impl pallet_collator_selection::WeightInfo for Basilisk /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:2) /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) - /// The range of component `c` is `[5, 20]`. + /// The range of component `c` is `[3, 20]`. fn take_candidate_slot(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `342 + c * (64 ±0)` - // Estimated: `3809 + c * (64 ±0)` - // Minimum execution time: 65_966_000 picoseconds. - Weight::from_parts(65_968_469, 3809) - // Standard Error: 2_730 - .saturating_add(Weight::from_parts(194_093, 0).saturating_mul(c.into())) + // Measured: `717 + c * (61 ±0)` + // Estimated: `4182 + c * (61 ±0)` + // Minimum execution time: 59_479_000 picoseconds. + Weight::from_parts(60_898_260, 4182) + // Standard Error: 3_015 + .saturating_add(Weight::from_parts(71_266, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) - .saturating_add(Weight::from_parts(0, 64).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 61).saturating_mul(c.into())) } /// Storage: `CollatorSelection::CandidateList` (r:1 w:1) /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(961), added: 1456, mode: `MaxEncodedLen`) @@ -220,15 +216,15 @@ impl pallet_collator_selection::WeightInfo for Basilisk /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(1601), added: 2096, mode: `MaxEncodedLen`) /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1) /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) - /// The range of component `c` is `[5, 20]`. + /// The range of component `c` is `[3, 20]`. fn leave_intent(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `135 + c * (52 ±0)` + // Measured: `408 + c * (48 ±0)` // Estimated: `3086` - // Minimum execution time: 38_877_000 picoseconds. - Weight::from_parts(39_064_360, 3086) - // Standard Error: 2_784 - .saturating_add(Weight::from_parts(163_135, 0).saturating_mul(c.into())) + // Minimum execution time: 33_983_000 picoseconds. + Weight::from_parts(34_496_601, 3086) + // Standard Error: 2_285 + .saturating_add(Weight::from_parts(97_471, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -240,10 +236,10 @@ impl pallet_collator_selection::WeightInfo for Basilisk /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) fn note_author() -> Weight { // Proof Size summary in bytes: - // Measured: `52` + // Measured: `102` // Estimated: `6196` - // Minimum execution time: 55_729_000 picoseconds. - Weight::from_parts(56_273_000, 6196) + // Minimum execution time: 46_950_000 picoseconds. + Weight::from_parts(47_333_000, 6196) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -257,23 +253,23 @@ impl pallet_collator_selection::WeightInfo for Basilisk /// Proof: `CollatorSelection::DesiredCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `System::BlockWeight` (r:1 w:1) /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:16 w:16) + /// Storage: `System::Account` (r:18 w:18) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 20]`. /// The range of component `c` is `[1, 20]`. fn new_session(r: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `199 + c * (98 ±0) + r * (111 ±0)` - // Estimated: `16266974136295046 + c * (2519 ±0) + r * (2393 ±14)` - // Minimum execution time: 33_720_000 picoseconds. - Weight::from_parts(45_796_000, 16266974136295046) - // Standard Error: 341_578 - .saturating_add(Weight::from_parts(16_233_581, 0).saturating_mul(c.into())) + // Measured: `391 + c * (98 ±0) + r * (118 ±0)` + // Estimated: `2188621418662104 + c * (2519 ±0) + r * (2571 ±5)` + // Minimum execution time: 23_421_000 picoseconds. + Weight::from_parts(23_643_000, 2188621418662104) + // Standard Error: 290_277 + .saturating_add(Weight::from_parts(13_025_802, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into())) - .saturating_add(Weight::from_parts(0, 2393).saturating_mul(r.into())) + .saturating_add(Weight::from_parts(0, 2571).saturating_mul(r.into())) } } \ No newline at end of file