diff --git a/Cargo.lock b/Cargo.lock index c3553b77ad..03d48b22c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10230,9 +10230,9 @@ dependencies = [ [[package]] name = "polkadot-runtime-parachains" -version = "17.0.1" +version = "17.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd58e3a17e5df678f5737b018cbfec603af2c93bec56bbb9f8fb8b2b017b54b1" +checksum = "1d4cdf181c2419b35c2cbde813da2d8ee777b69b4a6fa346b962d144e3521976" dependencies = [ "bitflags 1.3.2", "bitvec", diff --git a/Cargo.toml b/Cargo.toml index 88d68d1b0c..bab208536e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -192,7 +192,7 @@ polkadot-system-emulated-network = { path = "integration-tests/emulated/networks primitive-types = { version = "0.12.2", default-features = false } frame-metadata-hash-extension = { version = "0.6.0", default-features = false } remote-externalities = { version = "0.46.0", package = "frame-remote-externalities" } -runtime-parachains = { version = "17.0.1", default-features = false, package = "polkadot-runtime-parachains" } +runtime-parachains = { version = "17.0.2", default-features = false, package = "polkadot-runtime-parachains" } sc-chain-spec = { version = "38.0.0" } sc-network = { version = "0.45.1" } scale-info = { version = "2.10.0", default-features = false } diff --git a/relay/kusama/src/weights/runtime_parachains_inclusion.rs b/relay/kusama/src/weights/runtime_parachains_inclusion.rs index 3f8fd9d67e..59ef256916 100644 --- a/relay/kusama/src/weights/runtime_parachains_inclusion.rs +++ b/relay/kusama/src/weights/runtime_parachains_inclusion.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `runtime_parachains::inclusion` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./kusama-chain-spec.json")`, DB CACHE: 1024 @@ -79,13 +79,13 @@ impl runtime_parachains::inclusion::WeightInfo for Weig /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `MessageQueue::BookStateFor` (r:1 w:1) /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(55), added: 2530, mode: `MaxEncodedLen`) - /// Storage: `MessageQueue::Pages` (r:1 w:32) + /// Storage: `MessageQueue::Pages` (r:1 w:2) /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65586), added: 68061, mode: `MaxEncodedLen`) - /// Storage: `Hrmp::HrmpChannelDigests` (r:33 w:33) + /// Storage: `Hrmp::HrmpChannelDigests` (r:3 w:3) /// Proof: `Hrmp::HrmpChannelDigests` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `Hrmp::HrmpChannels` (r:32 w:32) + /// Storage: `Hrmp::HrmpChannels` (r:2 w:2) /// Proof: `Hrmp::HrmpChannels` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `Hrmp::HrmpChannelContents` (r:32 w:32) + /// Storage: `Hrmp::HrmpChannelContents` (r:2 w:2) /// Proof: `Hrmp::HrmpChannelContents` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `Paras::FutureCodeUpgrades` (r:1 w:0) /// Proof: `Paras::FutureCodeUpgrades` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -105,28 +105,32 @@ impl runtime_parachains::inclusion::WeightInfo for Weig /// Proof: `Paras::UpgradeRestrictionSignal` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1) /// Proof: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1) - /// The range of component `u` is `[1, 32]`. - /// The range of component `h` is `[1, 32]`. + /// The range of component `u` is `[0, 2]`. + /// The range of component `h` is `[0, 2]`. /// The range of component `c` is `[0, 1]`. fn enact_candidate(u: u32, h: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `67261 + c * (15992 ±0) + h * (75 ±0)` - // Estimated: `70725 + c * (43359 ±0) + h * (2551 ±0)` - // Minimum execution time: 7_650_450_000 picoseconds. - Weight::from_parts(1_567_213_345, 0) - .saturating_add(Weight::from_parts(0, 70725)) - // Standard Error: 718_878 - .saturating_add(Weight::from_parts(217_391_080, 0).saturating_mul(u.into())) - // Standard Error: 718_878 - .saturating_add(Weight::from_parts(274_408_333, 0).saturating_mul(h.into())) - .saturating_add(T::DbWeight::get().reads(12)) + // Measured: `1506 + c * (15992 ±0) + h * (92 ±0) + u * (65723 ±0)` + // Estimated: `69051 + c * (17748 ±492) + h * (15057 ±681) + u * (41474 ±681)` + // Minimum execution time: 573_244_000 picoseconds. + Weight::from_parts(114_100_622, 0) + .saturating_add(Weight::from_parts(0, 69051)) + // Standard Error: 617_253 + .saturating_add(Weight::from_parts(210_903_259, 0).saturating_mul(u.into())) + // Standard Error: 617_253 + .saturating_add(Weight::from_parts(256_002_021, 0).saturating_mul(h.into())) + // Standard Error: 1_022_862 + .saturating_add(Weight::from_parts(46_998_111, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(h.into()))) - .saturating_add(T::DbWeight::get().reads((8_u64).saturating_mul(c.into()))) - .saturating_add(T::DbWeight::get().writes(11)) - .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) - .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(h.into()))) - .saturating_add(T::DbWeight::get().writes((7_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 43359).saturating_mul(c.into())) - .saturating_add(Weight::from_parts(0, 2551).saturating_mul(h.into())) + .saturating_add(T::DbWeight::get().reads((9_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().writes(6)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(u.into()))) + .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(h.into()))) + .saturating_add(T::DbWeight::get().writes((8_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_parts(0, 17748).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 15057).saturating_mul(h.into())) + .saturating_add(Weight::from_parts(0, 41474).saturating_mul(u.into())) } } diff --git a/relay/polkadot/src/weights/runtime_parachains_inclusion.rs b/relay/polkadot/src/weights/runtime_parachains_inclusion.rs index a718134440..361c5f7e2d 100644 --- a/relay/polkadot/src/weights/runtime_parachains_inclusion.rs +++ b/relay/polkadot/src/weights/runtime_parachains_inclusion.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `runtime_parachains::inclusion` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./polkadot-chain-spec.json")`, DB CACHE: 1024 @@ -79,13 +79,13 @@ impl runtime_parachains::inclusion::WeightInfo for Weig /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `MessageQueue::BookStateFor` (r:1 w:1) /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(55), added: 2530, mode: `MaxEncodedLen`) - /// Storage: `MessageQueue::Pages` (r:1 w:32) + /// Storage: `MessageQueue::Pages` (r:1 w:2) /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65586), added: 68061, mode: `MaxEncodedLen`) - /// Storage: `Hrmp::HrmpChannelDigests` (r:33 w:33) + /// Storage: `Hrmp::HrmpChannelDigests` (r:3 w:3) /// Proof: `Hrmp::HrmpChannelDigests` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `Hrmp::HrmpChannels` (r:32 w:32) + /// Storage: `Hrmp::HrmpChannels` (r:2 w:2) /// Proof: `Hrmp::HrmpChannels` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `Hrmp::HrmpChannelContents` (r:32 w:32) + /// Storage: `Hrmp::HrmpChannelContents` (r:2 w:2) /// Proof: `Hrmp::HrmpChannelContents` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `Paras::FutureCodeUpgrades` (r:1 w:0) /// Proof: `Paras::FutureCodeUpgrades` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -105,28 +105,32 @@ impl runtime_parachains::inclusion::WeightInfo for Weig /// Proof: `Paras::UpgradeRestrictionSignal` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1) /// Proof: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1) - /// The range of component `u` is `[1, 32]`. - /// The range of component `h` is `[1, 32]`. + /// The range of component `u` is `[0, 2]`. + /// The range of component `h` is `[0, 2]`. /// The range of component `c` is `[0, 1]`. fn enact_candidate(u: u32, h: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `67294 + c * (15992 ±0) + h * (75 ±0)` - // Estimated: `70758 + c * (43376 ±0) + h * (2551 ±0)` - // Minimum execution time: 7_785_536_000 picoseconds. - Weight::from_parts(1_516_961_821, 0) - .saturating_add(Weight::from_parts(0, 70758)) - // Standard Error: 621_723 - .saturating_add(Weight::from_parts(217_942_625, 0).saturating_mul(u.into())) - // Standard Error: 621_723 - .saturating_add(Weight::from_parts(275_848_278, 0).saturating_mul(h.into())) - .saturating_add(T::DbWeight::get().reads(12)) + // Measured: `1539 + c * (15992 ±0) + h * (92 ±0) + u * (65723 ±0)` + // Estimated: `69051 + c * (17748 ±492) + h * (15057 ±0) + u * (41474 ±267)` + // Minimum execution time: 570_604_000 picoseconds. + Weight::from_parts(149_241_060, 0) + .saturating_add(Weight::from_parts(0, 69051)) + // Standard Error: 550_794 + .saturating_add(Weight::from_parts(202_814_455, 0).saturating_mul(u.into())) + // Standard Error: 550_794 + .saturating_add(Weight::from_parts(244_329_331, 0).saturating_mul(h.into())) + // Standard Error: 912_732 + .saturating_add(Weight::from_parts(34_086_055, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(h.into()))) - .saturating_add(T::DbWeight::get().reads((8_u64).saturating_mul(c.into()))) - .saturating_add(T::DbWeight::get().writes(11)) - .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) - .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(h.into()))) - .saturating_add(T::DbWeight::get().writes((7_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 43376).saturating_mul(c.into())) - .saturating_add(Weight::from_parts(0, 2551).saturating_mul(h.into())) + .saturating_add(T::DbWeight::get().reads((9_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().writes(6)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(u.into()))) + .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(h.into()))) + .saturating_add(T::DbWeight::get().writes((8_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_parts(0, 17748).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 15057).saturating_mul(h.into())) + .saturating_add(Weight::from_parts(0, 41474).saturating_mul(u.into())) } }