diff --git a/cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/pallet_broker.rs b/cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/pallet_broker.rs index 3e4bbf379c3f..d62b2c95be4a 100644 --- a/cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/pallet_broker.rs +++ b/cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/pallet_broker.rs @@ -17,9 +17,9 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-12-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `runner-acd6uxux-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `runner-ys-ssygq-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("coretime-rococo-dev")`, DB CACHE: 1024 // Executed Command: @@ -54,8 +54,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_250_000 picoseconds. - Weight::from_parts(2_419_000, 0) + // Minimum execution time: 2_295_000 picoseconds. + Weight::from_parts(2_452_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -65,8 +65,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `10888` // Estimated: `13506` - // Minimum execution time: 25_785_000 picoseconds. - Weight::from_parts(26_335_000, 0) + // Minimum execution time: 25_606_000 picoseconds. + Weight::from_parts(26_145_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -77,8 +77,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `12090` // Estimated: `13506` - // Minimum execution time: 24_549_000 picoseconds. - Weight::from_parts(25_010_000, 0) + // Minimum execution time: 24_317_000 picoseconds. + Weight::from_parts(24_691_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -93,12 +93,24 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `466` // Estimated: `1951` - // Minimum execution time: 14_135_000 picoseconds. - Weight::from_parts(14_603_000, 0) + // Minimum execution time: 14_388_000 picoseconds. + Weight::from_parts(14_875_000, 0) .saturating_add(Weight::from_parts(0, 1951)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(401), added: 896, mode: `MaxEncodedLen`) + fn remove_lease() -> Weight { + // Proof Size summary in bytes: + // Measured: `470` + // Estimated: `1886` + // Minimum execution time: 11_376_000 picoseconds. + Weight::from_parts(11_900_000, 0) + .saturating_add(Weight::from_parts(0, 1886)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } /// Storage: `Broker::Configuration` (r:1 w:0) /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) /// Storage: `Broker::Leases` (r:1 w:1) @@ -134,11 +146,11 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `12599` // Estimated: `15065 + n * (1 ±0)` - // Minimum execution time: 54_087_000 picoseconds. - Weight::from_parts(145_466_213, 0) + // Minimum execution time: 55_287_000 picoseconds. + Weight::from_parts(144_394_274, 0) .saturating_add(Weight::from_parts(0, 15065)) - // Standard Error: 2_407 - .saturating_add(Weight::from_parts(20_971, 0).saturating_mul(n.into())) + // Standard Error: 2_344 + .saturating_add(Weight::from_parts(20_874, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(60)) .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into())) @@ -157,8 +169,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `437` // Estimated: `3593` - // Minimum execution time: 58_341_000 picoseconds. - Weight::from_parts(59_505_000, 0) + // Minimum execution time: 58_959_000 picoseconds. + Weight::from_parts(60_166_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -181,8 +193,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `658` // Estimated: `4698` - // Minimum execution time: 92_983_000 picoseconds. - Weight::from_parts(99_237_000, 0) + // Minimum execution time: 91_778_000 picoseconds. + Weight::from_parts(96_532_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) @@ -193,8 +205,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3551` - // Minimum execution time: 17_512_000 picoseconds. - Weight::from_parts(18_099_000, 0) + // Minimum execution time: 17_289_000 picoseconds. + Weight::from_parts(18_378_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -205,8 +217,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3551` - // Minimum execution time: 18_715_000 picoseconds. - Weight::from_parts(19_768_000, 0) + // Minimum execution time: 19_306_000 picoseconds. + Weight::from_parts(19_901_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -217,8 +229,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3551` - // Minimum execution time: 20_349_000 picoseconds. - Weight::from_parts(21_050_000, 0) + // Minimum execution time: 20_283_000 picoseconds. + Weight::from_parts(21_311_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) @@ -235,8 +247,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `937` // Estimated: `4681` - // Minimum execution time: 31_876_000 picoseconds. - Weight::from_parts(33_536_000, 0) + // Minimum execution time: 32_688_000 picoseconds. + Weight::from_parts(33_879_000, 0) .saturating_add(Weight::from_parts(0, 4681)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) @@ -255,8 +267,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1003` // Estimated: `5996` - // Minimum execution time: 39_500_000 picoseconds. - Weight::from_parts(40_666_000, 0) + // Minimum execution time: 39_737_000 picoseconds. + Weight::from_parts(40_972_000, 0) .saturating_add(Weight::from_parts(0, 5996)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -272,11 +284,11 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `671` // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 65_843_000 picoseconds. - Weight::from_parts(65_768_512, 0) + // Minimum execution time: 66_200_000 picoseconds. + Weight::from_parts(67_053_397, 0) .saturating_add(Weight::from_parts(0, 6196)) - // Standard Error: 40_994 - .saturating_add(Weight::from_parts(2_084_877, 0).saturating_mul(m.into())) + // Standard Error: 44_657 + .saturating_add(Weight::from_parts(1_623_775, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(5)) @@ -298,8 +310,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `323` // Estimated: `3788` - // Minimum execution time: 73_250_000 picoseconds. - Weight::from_parts(75_059_000, 0) + // Minimum execution time: 74_203_000 picoseconds. + Weight::from_parts(75_776_000, 0) .saturating_add(Weight::from_parts(0, 3788)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) @@ -312,8 +324,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `466` // Estimated: `3551` - // Minimum execution time: 55_088_000 picoseconds. - Weight::from_parts(65_329_000, 0) + // Minimum execution time: 38_397_000 picoseconds. + Weight::from_parts(41_410_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -328,8 +340,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `463` // Estimated: `3533` - // Minimum execution time: 102_280_000 picoseconds. - Weight::from_parts(130_319_000, 0) + // Minimum execution time: 60_602_000 picoseconds. + Weight::from_parts(89_734_000, 0) .saturating_add(Weight::from_parts(0, 3533)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -346,8 +358,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `979` // Estimated: `3593` - // Minimum execution time: 78_195_000 picoseconds. - Weight::from_parts(105_946_000, 0) + // Minimum execution time: 77_131_000 picoseconds. + Weight::from_parts(103_375_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(1)) @@ -360,8 +372,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `957` // Estimated: `4698` - // Minimum execution time: 41_642_000 picoseconds. - Weight::from_parts(48_286_000, 0) + // Minimum execution time: 39_193_000 picoseconds. + Weight::from_parts(45_285_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -381,8 +393,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3539` - // Minimum execution time: 23_727_000 picoseconds. - Weight::from_parts(25_029_439, 0) + // Minimum execution time: 24_928_000 picoseconds. + Weight::from_parts(26_137_815, 0) .saturating_add(Weight::from_parts(0, 3539)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) @@ -394,11 +406,11 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `266` // Estimated: `1487` - // Minimum execution time: 7_887_000 picoseconds. - Weight::from_parts(8_477_863, 0) + // Minimum execution time: 8_116_000 picoseconds. + Weight::from_parts(8_651_025, 0) .saturating_add(Weight::from_parts(0, 1487)) // Standard Error: 18 - .saturating_add(Weight::from_parts(76, 0).saturating_mul(n.into())) + .saturating_add(Weight::from_parts(46, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -412,8 +424,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `461` // Estimated: `6196` - // Minimum execution time: 52_505_000 picoseconds. - Weight::from_parts(53_392_000, 0) + // Minimum execution time: 54_210_000 picoseconds. + Weight::from_parts(55_365_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -444,12 +456,12 @@ impl pallet_broker::WeightInfo for WeightInfo { fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `32497` - // Estimated: `233641 + n * (198 ±9)` - // Minimum execution time: 28_834_000 picoseconds. - Weight::from_parts(2_467_159_777, 0) + // Estimated: `233641 + n * (198 ±12)` + // Minimum execution time: 29_063_000 picoseconds. + Weight::from_parts(2_597_456_039, 0) .saturating_add(Weight::from_parts(0, 233641)) - // Standard Error: 149_483 - .saturating_add(Weight::from_parts(4_045_956, 0).saturating_mul(n.into())) + // Standard Error: 157_245 + .saturating_add(Weight::from_parts(3_908_113, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(126)) .saturating_add(T::DbWeight::get().writes(181)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -463,8 +475,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3493` - // Minimum execution time: 7_689_000 picoseconds. - Weight::from_parts(7_988_000, 0) + // Minimum execution time: 7_353_000 picoseconds. + Weight::from_parts(7_703_000, 0) .saturating_add(Weight::from_parts(0, 3493)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -487,8 +499,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1321` // Estimated: `4786` - // Minimum execution time: 37_394_000 picoseconds. - Weight::from_parts(38_379_000, 0) + // Minimum execution time: 38_113_000 picoseconds. + Weight::from_parts(39_292_000, 0) .saturating_add(Weight::from_parts(0, 4786)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) @@ -507,8 +519,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3539` - // Minimum execution time: 19_203_000 picoseconds. - Weight::from_parts(19_797_000, 0) + // Minimum execution time: 19_980_000 picoseconds. + Weight::from_parts(20_705_000, 0) .saturating_add(Weight::from_parts(0, 3539)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) @@ -519,8 +531,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_129_000 picoseconds. - Weight::from_parts(2_266_000, 0) + // Minimum execution time: 2_103_000 picoseconds. + Weight::from_parts(2_230_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -530,8 +542,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_233_000 picoseconds. - Weight::from_parts(2_351_000, 0) + // Minimum execution time: 2_210_000 picoseconds. + Weight::from_parts(2_420_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -549,8 +561,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `408` // Estimated: `1893` - // Minimum execution time: 15_716_000 picoseconds. - Weight::from_parts(16_160_000, 0) + // Minimum execution time: 15_536_000 picoseconds. + Weight::from_parts(16_159_000, 0) .saturating_add(Weight::from_parts(0, 1893)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(1)) @@ -565,10 +577,10 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `11125` + // Measured: `11141` // Estimated: `13506` - // Minimum execution time: 32_286_000 picoseconds. - Weight::from_parts(33_830_000, 0) + // Minimum execution time: 37_827_000 picoseconds. + Weight::from_parts(39_090_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -579,8 +591,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `470` // Estimated: `1886` - // Minimum execution time: 8_887_000 picoseconds. - Weight::from_parts(9_178_000, 0) + // Minimum execution time: 8_827_000 picoseconds. + Weight::from_parts(9_142_000, 0) .saturating_add(Weight::from_parts(0, 1886)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -605,8 +617,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2829` // Estimated: `6196` - // Minimum execution time: 130_799_000 picoseconds. - Weight::from_parts(139_893_000, 0) + // Minimum execution time: 120_188_000 picoseconds. + Weight::from_parts(125_542_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(7)) @@ -617,8 +629,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1307` // Estimated: `2487` - // Minimum execution time: 22_945_000 picoseconds. - Weight::from_parts(24_855_000, 0) + // Minimum execution time: 22_811_000 picoseconds. + Weight::from_parts(24_929_000, 0) .saturating_add(Weight::from_parts(0, 2487)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -639,8 +651,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `323` // Estimated: `3788` - // Minimum execution time: 56_864_000 picoseconds. - Weight::from_parts(59_119_000, 0) + // Minimum execution time: 57_666_000 picoseconds. + Weight::from_parts(59_562_000, 0) .saturating_add(Weight::from_parts(0, 3788)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs index a0eee2d99efa..b487f26c4dd5 100644 --- a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs +++ b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs @@ -17,9 +17,9 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-12-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `runner-acd6uxux-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `runner-ys-ssygq-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("coretime-westend-dev")`, DB CACHE: 1024 // Executed Command: @@ -54,8 +54,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_274_000 picoseconds. - Weight::from_parts(2_421_000, 0) + // Minimum execution time: 2_314_000 picoseconds. + Weight::from_parts(2_441_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -65,8 +65,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `10888` // Estimated: `13506` - // Minimum execution time: 26_257_000 picoseconds. - Weight::from_parts(26_802_000, 0) + // Minimum execution time: 25_768_000 picoseconds. + Weight::from_parts(26_621_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -77,8 +77,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `12090` // Estimated: `13506` - // Minimum execution time: 24_692_000 picoseconds. - Weight::from_parts(25_275_000, 0) + // Minimum execution time: 24_961_000 picoseconds. + Weight::from_parts(25_372_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -93,12 +93,24 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `146` // Estimated: `1631` - // Minimum execution time: 13_872_000 picoseconds. - Weight::from_parts(14_509_000, 0) + // Minimum execution time: 13_626_000 picoseconds. + Weight::from_parts(14_084_000, 0) .saturating_add(Weight::from_parts(0, 1631)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) + fn remove_lease() -> Weight { + // Proof Size summary in bytes: + // Measured: `150` + // Estimated: `1566` + // Minimum execution time: 11_132_000 picoseconds. + Weight::from_parts(11_502_000, 0) + .saturating_add(Weight::from_parts(0, 1566)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } /// Storage: `Broker::Configuration` (r:1 w:0) /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) /// Storage: `Broker::Leases` (r:1 w:1) @@ -134,11 +146,11 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `12279` // Estimated: `14805 + n * (1 ±0)` - // Minimum execution time: 52_916_000 picoseconds. - Weight::from_parts(96_122_236, 0) + // Minimum execution time: 52_850_000 picoseconds. + Weight::from_parts(95_757_777, 0) .saturating_add(Weight::from_parts(0, 14805)) - // Standard Error: 969 - .saturating_add(Weight::from_parts(5_732, 0).saturating_mul(n.into())) + // Standard Error: 927 + .saturating_add(Weight::from_parts(4_408, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(27)) .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into())) @@ -157,8 +169,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `437` // Estimated: `3593` - // Minimum execution time: 56_955_000 picoseconds. - Weight::from_parts(59_005_000, 0) + // Minimum execution time: 57_993_000 picoseconds. + Weight::from_parts(59_938_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -181,8 +193,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `658` // Estimated: `4698` - // Minimum execution time: 108_853_000 picoseconds. - Weight::from_parts(117_467_000, 0) + // Minimum execution time: 106_441_000 picoseconds. + Weight::from_parts(115_980_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) @@ -193,8 +205,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3551` - // Minimum execution time: 16_922_000 picoseconds. - Weight::from_parts(17_544_000, 0) + // Minimum execution time: 17_045_000 picoseconds. + Weight::from_parts(17_958_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -205,8 +217,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3551` - // Minimum execution time: 18_762_000 picoseconds. - Weight::from_parts(19_162_000, 0) + // Minimum execution time: 18_436_000 picoseconds. + Weight::from_parts(19_641_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -217,8 +229,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3551` - // Minimum execution time: 20_297_000 picoseconds. - Weight::from_parts(20_767_000, 0) + // Minimum execution time: 20_350_000 picoseconds. + Weight::from_parts(20_869_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) @@ -235,8 +247,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `736` // Estimated: `4681` - // Minimum execution time: 31_347_000 picoseconds. - Weight::from_parts(32_259_000, 0) + // Minimum execution time: 31_403_000 picoseconds. + Weight::from_parts(32_090_000, 0) .saturating_add(Weight::from_parts(0, 4681)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) @@ -255,8 +267,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `802` // Estimated: `5996` - // Minimum execution time: 38_310_000 picoseconds. - Weight::from_parts(39_777_000, 0) + // Minimum execution time: 37_624_000 picoseconds. + Weight::from_parts(39_084_000, 0) .saturating_add(Weight::from_parts(0, 5996)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -272,11 +284,11 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `671` // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 65_960_000 picoseconds. - Weight::from_parts(66_194_985, 0) + // Minimum execution time: 65_934_000 picoseconds. + Weight::from_parts(66_163_231, 0) .saturating_add(Weight::from_parts(0, 6196)) - // Standard Error: 42_455 - .saturating_add(Weight::from_parts(1_808_497, 0).saturating_mul(m.into())) + // Standard Error: 57_731 + .saturating_add(Weight::from_parts(2_348_138, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(5)) @@ -298,8 +310,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `321` // Estimated: `3786` - // Minimum execution time: 69_918_000 picoseconds. - Weight::from_parts(72_853_000, 0) + // Minimum execution time: 71_406_000 picoseconds. + Weight::from_parts(72_979_000, 0) .saturating_add(Weight::from_parts(0, 3786)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) @@ -312,8 +324,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `466` // Estimated: `3551` - // Minimum execution time: 44_775_000 picoseconds. - Weight::from_parts(58_978_000, 0) + // Minimum execution time: 48_188_000 picoseconds. + Weight::from_parts(59_052_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -328,8 +340,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `463` // Estimated: `3533` - // Minimum execution time: 67_098_000 picoseconds. - Weight::from_parts(93_626_000, 0) + // Minimum execution time: 67_941_000 picoseconds. + Weight::from_parts(98_304_000, 0) .saturating_add(Weight::from_parts(0, 3533)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -346,8 +358,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `979` // Estimated: `3593` - // Minimum execution time: 89_463_000 picoseconds. - Weight::from_parts(113_286_000, 0) + // Minimum execution time: 84_833_000 picoseconds. + Weight::from_parts(115_783_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(1)) @@ -360,8 +372,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `556` // Estimated: `4698` - // Minimum execution time: 42_073_000 picoseconds. - Weight::from_parts(52_211_000, 0) + // Minimum execution time: 41_438_000 picoseconds. + Weight::from_parts(56_576_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -381,8 +393,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3539` - // Minimum execution time: 22_937_000 picoseconds. - Weight::from_parts(23_898_154, 0) + // Minimum execution time: 22_698_000 picoseconds. + Weight::from_parts(23_975_694, 0) .saturating_add(Weight::from_parts(0, 3539)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) @@ -394,8 +406,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `266` // Estimated: `1487` - // Minimum execution time: 7_650_000 picoseconds. - Weight::from_parts(8_166_809, 0) + // Minimum execution time: 7_421_000 picoseconds. + Weight::from_parts(8_113_556, 0) .saturating_add(Weight::from_parts(0, 1487)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -410,8 +422,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `461` // Estimated: `6196` - // Minimum execution time: 53_023_000 picoseconds. - Weight::from_parts(54_564_000, 0) + // Minimum execution time: 53_326_000 picoseconds. + Weight::from_parts(54_618_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -442,12 +454,12 @@ impl pallet_broker::WeightInfo for WeightInfo { fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `16480` - // Estimated: `69404 + n * (8 ±1)` - // Minimum execution time: 29_313_000 picoseconds. - Weight::from_parts(746_062_644, 0) + // Estimated: `69404 + n * (8 ±0)` + // Minimum execution time: 29_180_000 picoseconds. + Weight::from_parts(749_325_807, 0) .saturating_add(Weight::from_parts(0, 69404)) - // Standard Error: 22_496 - .saturating_add(Weight::from_parts(1_545_204, 0).saturating_mul(n.into())) + // Standard Error: 22_661 + .saturating_add(Weight::from_parts(1_520_046, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(44)) .saturating_add(T::DbWeight::get().writes(57)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -461,8 +473,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3493` - // Minimum execution time: 7_625_000 picoseconds. - Weight::from_parts(7_910_000, 0) + // Minimum execution time: 7_586_000 picoseconds. + Weight::from_parts(7_890_000, 0) .saturating_add(Weight::from_parts(0, 3493)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -485,8 +497,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1321` // Estimated: `4786` - // Minimum execution time: 36_572_000 picoseconds. - Weight::from_parts(37_316_000, 0) + // Minimum execution time: 36_405_000 picoseconds. + Weight::from_parts(37_071_000, 0) .saturating_add(Weight::from_parts(0, 4786)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) @@ -505,8 +517,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3539` - // Minimum execution time: 18_362_000 picoseconds. - Weight::from_parts(18_653_000, 0) + // Minimum execution time: 18_207_000 picoseconds. + Weight::from_parts(18_754_000, 0) .saturating_add(Weight::from_parts(0, 3539)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) @@ -517,8 +529,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_193_000 picoseconds. - Weight::from_parts(2_393_000, 0) + // Minimum execution time: 1_962_000 picoseconds. + Weight::from_parts(2_180_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -528,8 +540,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_344_000 picoseconds. - Weight::from_parts(2_486_000, 0) + // Minimum execution time: 2_117_000 picoseconds. + Weight::from_parts(2_413_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -547,8 +559,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `408` // Estimated: `1893` - // Minimum execution time: 15_443_000 picoseconds. - Weight::from_parts(15_753_000, 0) + // Minimum execution time: 15_255_000 picoseconds. + Weight::from_parts(15_714_000, 0) .saturating_add(Weight::from_parts(0, 1893)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(1)) @@ -563,10 +575,10 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `11125` + // Measured: `11141` // Estimated: `13506` - // Minimum execution time: 31_464_000 picoseconds. - Weight::from_parts(32_798_000, 0) + // Minimum execution time: 37_086_000 picoseconds. + Weight::from_parts(38_364_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -577,8 +589,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `150` // Estimated: `1566` - // Minimum execution time: 8_637_000 picoseconds. - Weight::from_parts(8_883_000, 0) + // Minimum execution time: 8_307_000 picoseconds. + Weight::from_parts(8_570_000, 0) .saturating_add(Weight::from_parts(0, 1566)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -603,8 +615,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1451` // Estimated: `6196` - // Minimum execution time: 120_585_000 picoseconds. - Weight::from_parts(148_755_000, 0) + // Minimum execution time: 122_057_000 picoseconds. + Weight::from_parts(136_578_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(6)) @@ -615,8 +627,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `506` // Estimated: `1686` - // Minimum execution time: 18_235_000 picoseconds. - Weight::from_parts(19_113_000, 0) + // Minimum execution time: 17_059_000 picoseconds. + Weight::from_parts(17_950_000, 0) .saturating_add(Weight::from_parts(0, 1686)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -627,8 +639,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 4_863_000 picoseconds. - Weight::from_parts(5_045_000, 0) + // Minimum execution time: 5_012_000 picoseconds. + Weight::from_parts(5_336_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) } diff --git a/prdoc/pr_7026.prdoc b/prdoc/pr_7026.prdoc new file mode 100644 index 000000000000..8e50f61ea17b --- /dev/null +++ b/prdoc/pr_7026.prdoc @@ -0,0 +1,17 @@ +# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 +# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json + +title: "[pallet-broker] add extrinsic to remove a lease" + +doc: + - audience: Runtime User + description: | + A new `remove_lease` extrinsic is introduced to the broker pallet to allow a lease to be removed by the root origin. + +crates: + - name: pallet-broker + bump: major + - name: coretime-rococo-runtime + bump: patch + - name: coretime-westend-runtime + bump: patch diff --git a/substrate/frame/broker/src/benchmarking.rs b/substrate/frame/broker/src/benchmarking.rs index 516518740f7d..2d78e99b8496 100644 --- a/substrate/frame/broker/src/benchmarking.rs +++ b/substrate/frame/broker/src/benchmarking.rs @@ -191,6 +191,25 @@ mod benches { Ok(()) } + #[benchmark] + fn remove_lease() -> Result<(), BenchmarkError> { + let task = 1u32; + let until = 10u32.into(); + + // Assume Leases to be almost filled for worst case + setup_leases::(T::MaxLeasedCores::get(), task, until); + + let origin = + T::AdminOrigin::try_successful_origin().map_err(|_| BenchmarkError::Weightless)?; + + #[extrinsic_call] + _(origin as T::RuntimeOrigin, task); + + assert_eq!(Leases::::get().len(), T::MaxLeasedCores::get().saturating_sub(1) as usize); + + Ok(()) + } + #[benchmark] fn start_sales(n: Linear<0, { MAX_CORE_COUNT.into() }>) -> Result<(), BenchmarkError> { let config = new_config_record::(); diff --git a/substrate/frame/broker/src/dispatchable_impls.rs b/substrate/frame/broker/src/dispatchable_impls.rs index 489be12bdd15..b784dbe58d88 100644 --- a/substrate/frame/broker/src/dispatchable_impls.rs +++ b/substrate/frame/broker/src/dispatchable_impls.rs @@ -91,6 +91,15 @@ impl Pallet { Ok(()) } + pub(crate) fn do_remove_lease(task: TaskId) -> DispatchResult { + let mut r = Leases::::get(); + let i = r.iter().position(|lease| lease.task == task).ok_or(Error::::LeaseNotFound)?; + r.remove(i); + Leases::::put(r); + Self::deposit_event(Event::::LeaseRemoved { task }); + Ok(()) + } + pub(crate) fn do_start_sales( end_price: BalanceOf, extra_cores: CoreIndex, diff --git a/substrate/frame/broker/src/lib.rs b/substrate/frame/broker/src/lib.rs index 01368fd6404d..97f178066deb 100644 --- a/substrate/frame/broker/src/lib.rs +++ b/substrate/frame/broker/src/lib.rs @@ -333,6 +333,11 @@ pub mod pallet { /// longer apply). until: Timeslice, }, + /// A lease has been removed. + LeaseRemoved { + /// The task to which a core was assigned. + task: TaskId, + }, /// A lease is about to end. LeaseEnding { /// The task to which a core was assigned. @@ -512,6 +517,8 @@ pub mod pallet { TooManyReservations, /// The maximum amount of leases has already been reached. TooManyLeases, + /// The lease does not exist. + LeaseNotFound, /// The revenue for the Instantaneous Core Sales of this period is not (yet) known and thus /// this operation cannot proceed. UnknownRevenue, @@ -969,6 +976,16 @@ pub mod pallet { Ok(Pays::No.into()) } + /// Remove a lease. + /// + /// - `origin`: Must be Root or pass `AdminOrigin`. + /// - `task`: The workload of the lease which should be removed. + #[pallet::call_index(24)] + pub fn remove_lease(origin: OriginFor, task: TaskId) -> DispatchResult { + T::AdminOrigin::ensure_origin_or_root(origin)?; + Self::do_remove_lease(task) + } + #[pallet::call_index(99)] #[pallet::weight(T::WeightInfo::swap_leases())] pub fn swap_leases(origin: OriginFor, id: TaskId, other: TaskId) -> DispatchResult { diff --git a/substrate/frame/broker/src/tests.rs b/substrate/frame/broker/src/tests.rs index a130a2050d9a..0e667b2780c1 100644 --- a/substrate/frame/broker/src/tests.rs +++ b/substrate/frame/broker/src/tests.rs @@ -1205,6 +1205,18 @@ fn leases_are_limited() { }); } +#[test] +fn remove_lease_works() { + TestExt::new().execute_with(|| { + Leases::::put( + BoundedVec::try_from(vec![LeaseRecordItem { task: 1u32, until: 10u32 }]).unwrap(), + ); + assert_noop!(Broker::do_remove_lease(2), Error::::LeaseNotFound); + assert_ok!(Broker::do_remove_lease(1)); + assert_noop!(Broker::do_remove_lease(1), Error::::LeaseNotFound); + }); +} + #[test] fn purchase_requires_valid_status_and_sale_info() { TestExt::new().execute_with(|| { diff --git a/substrate/frame/broker/src/weights.rs b/substrate/frame/broker/src/weights.rs index 87e588551661..04da5cfa7bc6 100644 --- a/substrate/frame/broker/src/weights.rs +++ b/substrate/frame/broker/src/weights.rs @@ -18,26 +18,28 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-12-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `runner-acd6uxux-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `30454897a3c5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` // Executed Command: // target/production/substrate-node // benchmark // pallet -// --steps=50 -// --repeat=20 // --extrinsic=* +// --chain=dev +// --pallet=pallet_broker +// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2 +// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/broker/src/weights.rs // --wasm-execution=compiled +// --steps=50 +// --repeat=20 // --heap-pages=4096 -// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json -// --pallet=pallet_broker -// --chain=dev -// --header=./substrate/HEADER-APACHE2 -// --output=./substrate/frame/broker/src/weights.rs -// --template=./substrate/.maintain/frame-weight-template.hbs +// --template=substrate/.maintain/frame-weight-template.hbs +// --no-storage-info +// --no-min-squares +// --no-median-slopes #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -53,6 +55,7 @@ pub trait WeightInfo { fn reserve() -> Weight; fn unreserve() -> Weight; fn set_lease() -> Weight; + fn remove_lease() -> Weight; fn start_sales(n: u32, ) -> Weight; fn purchase() -> Weight; fn renew() -> Weight; @@ -93,8 +96,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_498_000 picoseconds. - Weight::from_parts(2_660_000, 0) + // Minimum execution time: 2_589_000 picoseconds. + Weight::from_parts(2_841_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Broker::Reservations` (r:1 w:1) @@ -103,8 +106,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `5016` // Estimated: `7496` - // Minimum execution time: 23_090_000 picoseconds. - Weight::from_parts(23_664_000, 7496) + // Minimum execution time: 23_357_000 picoseconds. + Weight::from_parts(24_315_000, 7496) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -114,8 +117,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `6218` // Estimated: `7496` - // Minimum execution time: 21_782_000 picoseconds. - Weight::from_parts(22_708_000, 7496) + // Minimum execution time: 21_666_000 picoseconds. + Weight::from_parts(22_712_000, 7496) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -125,8 +128,19 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `239` // Estimated: `1526` - // Minimum execution time: 14_966_000 picoseconds. - Weight::from_parts(15_592_000, 1526) + // Minimum execution time: 15_351_000 picoseconds. + Weight::from_parts(16_422_000, 1526) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) + fn remove_lease() -> Weight { + // Proof Size summary in bytes: + // Measured: `247` + // Estimated: `1526` + // Minimum execution time: 14_616_000 picoseconds. + Weight::from_parts(15_290_000, 1526) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -151,10 +165,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `6330` // Estimated: `8499` - // Minimum execution time: 31_757_000 picoseconds. - Weight::from_parts(57_977_268, 8499) - // Standard Error: 576 - .saturating_add(Weight::from_parts(3_102, 0).saturating_mul(n.into())) + // Minimum execution time: 32_743_000 picoseconds. + Weight::from_parts(59_810_335, 8499) + // Standard Error: 586 + .saturating_add(Weight::from_parts(3_049, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } @@ -168,8 +182,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `470` // Estimated: `1542` - // Minimum execution time: 40_469_000 picoseconds. - Weight::from_parts(41_360_000, 1542) + // Minimum execution time: 41_273_000 picoseconds. + Weight::from_parts(43_397_000, 1542) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -187,8 +201,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `588` // Estimated: `4698` - // Minimum execution time: 60_724_000 picoseconds. - Weight::from_parts(63_445_000, 4698) + // Minimum execution time: 66_821_000 picoseconds. + Weight::from_parts(72_346_000, 4698) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -198,8 +212,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `496` // Estimated: `3551` - // Minimum execution time: 23_734_000 picoseconds. - Weight::from_parts(25_080_000, 3551) + // Minimum execution time: 24_390_000 picoseconds. + Weight::from_parts(25_317_000, 3551) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -209,8 +223,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `496` // Estimated: `3551` - // Minimum execution time: 25_917_000 picoseconds. - Weight::from_parts(26_715_000, 3551) + // Minimum execution time: 25_774_000 picoseconds. + Weight::from_parts(27_052_000, 3551) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -220,8 +234,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `496` // Estimated: `3551` - // Minimum execution time: 26_764_000 picoseconds. - Weight::from_parts(27_770_000, 3551) + // Minimum execution time: 27_366_000 picoseconds. + Weight::from_parts(28_619_000, 3551) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -237,8 +251,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `741` // Estimated: `4681` - // Minimum execution time: 37_617_000 picoseconds. - Weight::from_parts(39_333_000, 4681) + // Minimum execution time: 38_153_000 picoseconds. + Weight::from_parts(39_906_000, 4681) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -256,8 +270,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `776` // Estimated: `5996` - // Minimum execution time: 43_168_000 picoseconds. - Weight::from_parts(44_741_000, 5996) + // Minimum execution time: 45_936_000 picoseconds. + Weight::from_parts(47_473_000, 5996) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -272,10 +286,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `878` // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 75_317_000 picoseconds. - Weight::from_parts(76_792_860, 6196) - // Standard Error: 55_267 - .saturating_add(Weight::from_parts(1_878_133, 0).saturating_mul(m.into())) + // Minimum execution time: 78_451_000 picoseconds. + Weight::from_parts(81_063_275, 6196) + // Standard Error: 86_228 + .saturating_add(Weight::from_parts(1_573_967, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(5_u64)) @@ -287,8 +301,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 44_248_000 picoseconds. - Weight::from_parts(45_201_000, 3593) + // Minimum execution time: 47_892_000 picoseconds. + Weight::from_parts(49_255_000, 3593) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -300,8 +314,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `604` // Estimated: `3551` - // Minimum execution time: 39_853_000 picoseconds. - Weight::from_parts(44_136_000, 3551) + // Minimum execution time: 40_044_000 picoseconds. + Weight::from_parts(45_888_000, 3551) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -315,8 +329,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `601` // Estimated: `3533` - // Minimum execution time: 46_452_000 picoseconds. - Weight::from_parts(52_780_000, 3533) + // Minimum execution time: 49_667_000 picoseconds. + Weight::from_parts(56_662_000, 3533) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -332,8 +346,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1117` // Estimated: `3593` - // Minimum execution time: 64_905_000 picoseconds. - Weight::from_parts(72_914_000, 3593) + // Minimum execution time: 64_170_000 picoseconds. + Weight::from_parts(70_765_000, 3593) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -345,8 +359,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `661` // Estimated: `4698` - // Minimum execution time: 38_831_000 picoseconds. - Weight::from_parts(41_420_000, 4698) + // Minimum execution time: 38_029_000 picoseconds. + Weight::from_parts(41_015_000, 4698) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -355,8 +369,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_595_000 picoseconds. - Weight::from_parts(4_964_606, 0) + // Minimum execution time: 4_699_000 picoseconds. + Weight::from_parts(5_149_048, 0) } /// Storage: `Broker::CoreCountInbox` (r:1 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -365,8 +379,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `404` // Estimated: `1487` - // Minimum execution time: 8_640_000 picoseconds. - Weight::from_parts(9_153_332, 1487) + // Minimum execution time: 8_421_000 picoseconds. + Weight::from_parts(9_211_703, 1487) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -380,8 +394,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `667` // Estimated: `3593` - // Minimum execution time: 40_570_000 picoseconds. - Weight::from_parts(41_402_000, 3593) + // Minimum execution time: 42_648_000 picoseconds. + Weight::from_parts(43_508_000, 3593) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -410,10 +424,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `8548` // Estimated: `38070` - // Minimum execution time: 29_370_000 picoseconds. - Weight::from_parts(334_030_189, 38070) - // Standard Error: 6_912 - .saturating_add(Weight::from_parts(1_268_750, 0).saturating_mul(n.into())) + // Minimum execution time: 29_098_000 picoseconds. + Weight::from_parts(353_393_718, 38070) + // Standard Error: 7_428 + .saturating_add(Weight::from_parts(1_282_812, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(26_u64)) .saturating_add(T::DbWeight::get().writes(34_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -426,8 +440,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `180` // Estimated: `3493` - // Minimum execution time: 9_005_000 picoseconds. - Weight::from_parts(9_392_000, 3493) + // Minimum execution time: 8_895_000 picoseconds. + Weight::from_parts(9_332_000, 3493) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -439,8 +453,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1423` // Estimated: `4681` - // Minimum execution time: 19_043_000 picoseconds. - Weight::from_parts(20_089_000, 4681) + // Minimum execution time: 19_431_000 picoseconds. + Weight::from_parts(19_845_000, 4681) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -448,8 +462,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 149_000 picoseconds. - Weight::from_parts(183_000, 0) + // Minimum execution time: 136_000 picoseconds. + Weight::from_parts(164_000, 0) } /// Storage: `Broker::CoreCountInbox` (r:0 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -457,8 +471,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_248_000 picoseconds. - Weight::from_parts(2_425_000, 0) + // Minimum execution time: 2_421_000 picoseconds. + Weight::from_parts(2_555_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Broker::RevenueInbox` (r:0 w:1) @@ -467,8 +481,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_413_000 picoseconds. - Weight::from_parts(2_640_000, 0) + // Minimum execution time: 2_550_000 picoseconds. + Weight::from_parts(2_734_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Broker::Status` (r:1 w:1) @@ -483,8 +497,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `441` // Estimated: `1516` - // Minimum execution time: 17_083_000 picoseconds. - Weight::from_parts(18_077_000, 1516) + // Minimum execution time: 16_762_000 picoseconds. + Weight::from_parts(17_197_000, 1516) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -498,10 +512,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5253` + // Measured: `5269` // Estimated: `7496` - // Minimum execution time: 28_363_000 picoseconds. - Weight::from_parts(29_243_000, 7496) + // Minimum execution time: 33_703_000 picoseconds. + Weight::from_parts(34_970_000, 7496) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -511,8 +525,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `239` // Estimated: `1526` - // Minimum execution time: 11_620_000 picoseconds. - Weight::from_parts(12_063_000, 1526) + // Minimum execution time: 11_235_000 picoseconds. + Weight::from_parts(11_774_000, 1526) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -534,8 +548,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1121` // Estimated: `4698` - // Minimum execution time: 85_270_000 picoseconds. - Weight::from_parts(90_457_000, 4698) + // Minimum execution time: 85_024_000 picoseconds. + Weight::from_parts(99_624_000, 4698) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -545,8 +559,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `578` // Estimated: `1586` - // Minimum execution time: 22_479_000 picoseconds. - Weight::from_parts(23_687_000, 1586) + // Minimum execution time: 22_947_000 picoseconds. + Weight::from_parts(24_797_000, 1586) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -554,8 +568,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 245_000 picoseconds. - Weight::from_parts(290_000, 0) + // Minimum execution time: 230_000 picoseconds. + Weight::from_parts(272_000, 0) } } @@ -567,8 +581,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_498_000 picoseconds. - Weight::from_parts(2_660_000, 0) + // Minimum execution time: 2_589_000 picoseconds. + Weight::from_parts(2_841_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Broker::Reservations` (r:1 w:1) @@ -577,8 +591,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `5016` // Estimated: `7496` - // Minimum execution time: 23_090_000 picoseconds. - Weight::from_parts(23_664_000, 7496) + // Minimum execution time: 23_357_000 picoseconds. + Weight::from_parts(24_315_000, 7496) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -588,8 +602,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `6218` // Estimated: `7496` - // Minimum execution time: 21_782_000 picoseconds. - Weight::from_parts(22_708_000, 7496) + // Minimum execution time: 21_666_000 picoseconds. + Weight::from_parts(22_712_000, 7496) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -599,8 +613,19 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `239` // Estimated: `1526` - // Minimum execution time: 14_966_000 picoseconds. - Weight::from_parts(15_592_000, 1526) + // Minimum execution time: 15_351_000 picoseconds. + Weight::from_parts(16_422_000, 1526) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) + fn remove_lease() -> Weight { + // Proof Size summary in bytes: + // Measured: `247` + // Estimated: `1526` + // Minimum execution time: 14_616_000 picoseconds. + Weight::from_parts(15_290_000, 1526) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -625,10 +650,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `6330` // Estimated: `8499` - // Minimum execution time: 31_757_000 picoseconds. - Weight::from_parts(57_977_268, 8499) - // Standard Error: 576 - .saturating_add(Weight::from_parts(3_102, 0).saturating_mul(n.into())) + // Minimum execution time: 32_743_000 picoseconds. + Weight::from_parts(59_810_335, 8499) + // Standard Error: 586 + .saturating_add(Weight::from_parts(3_049, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(16_u64)) } @@ -642,8 +667,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `470` // Estimated: `1542` - // Minimum execution time: 40_469_000 picoseconds. - Weight::from_parts(41_360_000, 1542) + // Minimum execution time: 41_273_000 picoseconds. + Weight::from_parts(43_397_000, 1542) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -661,8 +686,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `588` // Estimated: `4698` - // Minimum execution time: 60_724_000 picoseconds. - Weight::from_parts(63_445_000, 4698) + // Minimum execution time: 66_821_000 picoseconds. + Weight::from_parts(72_346_000, 4698) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -672,8 +697,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `496` // Estimated: `3551` - // Minimum execution time: 23_734_000 picoseconds. - Weight::from_parts(25_080_000, 3551) + // Minimum execution time: 24_390_000 picoseconds. + Weight::from_parts(25_317_000, 3551) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -683,8 +708,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `496` // Estimated: `3551` - // Minimum execution time: 25_917_000 picoseconds. - Weight::from_parts(26_715_000, 3551) + // Minimum execution time: 25_774_000 picoseconds. + Weight::from_parts(27_052_000, 3551) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -694,8 +719,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `496` // Estimated: `3551` - // Minimum execution time: 26_764_000 picoseconds. - Weight::from_parts(27_770_000, 3551) + // Minimum execution time: 27_366_000 picoseconds. + Weight::from_parts(28_619_000, 3551) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -711,8 +736,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `741` // Estimated: `4681` - // Minimum execution time: 37_617_000 picoseconds. - Weight::from_parts(39_333_000, 4681) + // Minimum execution time: 38_153_000 picoseconds. + Weight::from_parts(39_906_000, 4681) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -730,8 +755,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `776` // Estimated: `5996` - // Minimum execution time: 43_168_000 picoseconds. - Weight::from_parts(44_741_000, 5996) + // Minimum execution time: 45_936_000 picoseconds. + Weight::from_parts(47_473_000, 5996) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -746,10 +771,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `878` // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 75_317_000 picoseconds. - Weight::from_parts(76_792_860, 6196) - // Standard Error: 55_267 - .saturating_add(Weight::from_parts(1_878_133, 0).saturating_mul(m.into())) + // Minimum execution time: 78_451_000 picoseconds. + Weight::from_parts(81_063_275, 6196) + // Standard Error: 86_228 + .saturating_add(Weight::from_parts(1_573_967, 0).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(RocksDbWeight::get().writes(5_u64)) @@ -761,8 +786,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 44_248_000 picoseconds. - Weight::from_parts(45_201_000, 3593) + // Minimum execution time: 47_892_000 picoseconds. + Weight::from_parts(49_255_000, 3593) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -774,8 +799,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `604` // Estimated: `3551` - // Minimum execution time: 39_853_000 picoseconds. - Weight::from_parts(44_136_000, 3551) + // Minimum execution time: 40_044_000 picoseconds. + Weight::from_parts(45_888_000, 3551) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -789,8 +814,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `601` // Estimated: `3533` - // Minimum execution time: 46_452_000 picoseconds. - Weight::from_parts(52_780_000, 3533) + // Minimum execution time: 49_667_000 picoseconds. + Weight::from_parts(56_662_000, 3533) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -806,8 +831,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1117` // Estimated: `3593` - // Minimum execution time: 64_905_000 picoseconds. - Weight::from_parts(72_914_000, 3593) + // Minimum execution time: 64_170_000 picoseconds. + Weight::from_parts(70_765_000, 3593) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -819,8 +844,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `661` // Estimated: `4698` - // Minimum execution time: 38_831_000 picoseconds. - Weight::from_parts(41_420_000, 4698) + // Minimum execution time: 38_029_000 picoseconds. + Weight::from_parts(41_015_000, 4698) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -829,8 +854,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_595_000 picoseconds. - Weight::from_parts(4_964_606, 0) + // Minimum execution time: 4_699_000 picoseconds. + Weight::from_parts(5_149_048, 0) } /// Storage: `Broker::CoreCountInbox` (r:1 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -839,8 +864,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `404` // Estimated: `1487` - // Minimum execution time: 8_640_000 picoseconds. - Weight::from_parts(9_153_332, 1487) + // Minimum execution time: 8_421_000 picoseconds. + Weight::from_parts(9_211_703, 1487) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -854,8 +879,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `667` // Estimated: `3593` - // Minimum execution time: 40_570_000 picoseconds. - Weight::from_parts(41_402_000, 3593) + // Minimum execution time: 42_648_000 picoseconds. + Weight::from_parts(43_508_000, 3593) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -884,10 +909,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `8548` // Estimated: `38070` - // Minimum execution time: 29_370_000 picoseconds. - Weight::from_parts(334_030_189, 38070) - // Standard Error: 6_912 - .saturating_add(Weight::from_parts(1_268_750, 0).saturating_mul(n.into())) + // Minimum execution time: 29_098_000 picoseconds. + Weight::from_parts(353_393_718, 38070) + // Standard Error: 7_428 + .saturating_add(Weight::from_parts(1_282_812, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(26_u64)) .saturating_add(RocksDbWeight::get().writes(34_u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -900,8 +925,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `180` // Estimated: `3493` - // Minimum execution time: 9_005_000 picoseconds. - Weight::from_parts(9_392_000, 3493) + // Minimum execution time: 8_895_000 picoseconds. + Weight::from_parts(9_332_000, 3493) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -913,8 +938,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1423` // Estimated: `4681` - // Minimum execution time: 19_043_000 picoseconds. - Weight::from_parts(20_089_000, 4681) + // Minimum execution time: 19_431_000 picoseconds. + Weight::from_parts(19_845_000, 4681) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -922,8 +947,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 149_000 picoseconds. - Weight::from_parts(183_000, 0) + // Minimum execution time: 136_000 picoseconds. + Weight::from_parts(164_000, 0) } /// Storage: `Broker::CoreCountInbox` (r:0 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -931,8 +956,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_248_000 picoseconds. - Weight::from_parts(2_425_000, 0) + // Minimum execution time: 2_421_000 picoseconds. + Weight::from_parts(2_555_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Broker::RevenueInbox` (r:0 w:1) @@ -941,8 +966,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_413_000 picoseconds. - Weight::from_parts(2_640_000, 0) + // Minimum execution time: 2_550_000 picoseconds. + Weight::from_parts(2_734_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Broker::Status` (r:1 w:1) @@ -957,8 +982,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `441` // Estimated: `1516` - // Minimum execution time: 17_083_000 picoseconds. - Weight::from_parts(18_077_000, 1516) + // Minimum execution time: 16_762_000 picoseconds. + Weight::from_parts(17_197_000, 1516) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -972,10 +997,10 @@ impl WeightInfo for () { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5253` + // Measured: `5269` // Estimated: `7496` - // Minimum execution time: 28_363_000 picoseconds. - Weight::from_parts(29_243_000, 7496) + // Minimum execution time: 33_703_000 picoseconds. + Weight::from_parts(34_970_000, 7496) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -985,8 +1010,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `239` // Estimated: `1526` - // Minimum execution time: 11_620_000 picoseconds. - Weight::from_parts(12_063_000, 1526) + // Minimum execution time: 11_235_000 picoseconds. + Weight::from_parts(11_774_000, 1526) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1008,8 +1033,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1121` // Estimated: `4698` - // Minimum execution time: 85_270_000 picoseconds. - Weight::from_parts(90_457_000, 4698) + // Minimum execution time: 85_024_000 picoseconds. + Weight::from_parts(99_624_000, 4698) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -1019,8 +1044,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `578` // Estimated: `1586` - // Minimum execution time: 22_479_000 picoseconds. - Weight::from_parts(23_687_000, 1586) + // Minimum execution time: 22_947_000 picoseconds. + Weight::from_parts(24_797_000, 1586) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1028,7 +1053,7 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 245_000 picoseconds. - Weight::from_parts(290_000, 0) + // Minimum execution time: 230_000 picoseconds. + Weight::from_parts(272_000, 0) } }