// Copyright 2017-2022 Parity Technologies (UK) Ltd. // This file is part of Polkadot. // Polkadot is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // Polkadot is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with Polkadot. If not, see . //! Autogenerated weights for `runtime_parachains::hrmp` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! DATE: 2023-03-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 1024 // Executed Command: // ./target/production/polkadot // benchmark // pallet // --chain=rococo-dev // --steps=50 // --repeat=20 // --pallet=runtime_parachains::hrmp // --extrinsic=* // --execution=wasm // --wasm-execution=compiled // --header=./file_header.txt // --output=./runtime/rococo/src/weights/runtime_parachains_hrmp.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; /// Weight functions for `runtime_parachains::hrmp`. pub struct WeightInfo(PhantomData); impl runtime_parachains::hrmp::WeightInfo for WeightInfo { /// Storage: Paras ParaLifecycles (r:2 w:0) /// Proof Skipped: Paras ParaLifecycles (max_values: None, max_size: None, mode: Measured) /// Storage: Configuration ActiveConfig (r:1 w:0) /// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequests (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequests (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpChannels (r:1 w:0) /// Proof Skipped: Hrmp HrmpChannels (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpEgressChannelsIndex (r:1 w:0) /// Proof Skipped: Hrmp HrmpEgressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequestCount (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequestCount (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequestsList (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequestsList (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Dmp DownwardMessageQueues (r:1 w:1) /// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured) /// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1) /// Proof Skipped: Dmp DownwardMessageQueueHeads (max_values: None, max_size: None, mode: Measured) fn hrmp_init_open_channel() -> Weight { // Proof Size summary in bytes: // Measured: `719` // Estimated: `36171` // Minimum execution time: 40_335_000 picoseconds. Weight::from_parts(40_824_000, 0) .saturating_add(Weight::from_parts(0, 36171)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(5)) } /// Storage: Hrmp HrmpOpenChannelRequests (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequests (max_values: None, max_size: None, mode: Measured) /// Storage: Configuration ActiveConfig (r:1 w:0) /// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Paras ParaLifecycles (r:1 w:0) /// Proof Skipped: Paras ParaLifecycles (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpIngressChannelsIndex (r:1 w:0) /// Proof Skipped: Hrmp HrmpIngressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpAcceptedChannelRequestCount (r:1 w:1) /// Proof Skipped: Hrmp HrmpAcceptedChannelRequestCount (max_values: None, max_size: None, mode: Measured) /// Storage: Dmp DownwardMessageQueues (r:1 w:1) /// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured) /// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1) /// Proof Skipped: Dmp DownwardMessageQueueHeads (max_values: None, max_size: None, mode: Measured) fn hrmp_accept_open_channel() -> Weight { // Proof Size summary in bytes: // Measured: `951` // Estimated: `28932` // Minimum execution time: 43_130_000 picoseconds. Weight::from_parts(43_826_000, 0) .saturating_add(Weight::from_parts(0, 28932)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: Hrmp HrmpChannels (r:1 w:0) /// Proof Skipped: Hrmp HrmpChannels (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpCloseChannelRequests (r:1 w:1) /// Proof Skipped: Hrmp HrmpCloseChannelRequests (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpCloseChannelRequestsList (r:1 w:1) /// Proof Skipped: Hrmp HrmpCloseChannelRequestsList (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Configuration ActiveConfig (r:1 w:0) /// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Dmp DownwardMessageQueues (r:1 w:1) /// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured) /// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1) /// Proof Skipped: Dmp DownwardMessageQueueHeads (max_values: None, max_size: None, mode: Measured) fn hrmp_close_channel() -> Weight { // Proof Size summary in bytes: // Measured: `822` // Estimated: `21762` // Minimum execution time: 36_371_000 picoseconds. Weight::from_parts(36_901_000, 0) .saturating_add(Weight::from_parts(0, 21762)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: Hrmp HrmpIngressChannelsIndex (r:128 w:128) /// Proof Skipped: Hrmp HrmpIngressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpEgressChannelsIndex (r:128 w:128) /// Proof Skipped: Hrmp HrmpEgressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpChannels (r:254 w:254) /// Proof Skipped: Hrmp HrmpChannels (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpAcceptedChannelRequestCount (r:0 w:1) /// Proof Skipped: Hrmp HrmpAcceptedChannelRequestCount (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpChannelContents (r:0 w:254) /// Proof Skipped: Hrmp HrmpChannelContents (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequestCount (r:0 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequestCount (max_values: None, max_size: None, mode: Measured) /// The range of component `i` is `[0, 127]`. /// The range of component `e` is `[0, 127]`. fn force_clean_hrmp(i: u32, e: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `264 + i * (100 ±0) + e * (100 ±0)` // Estimated: `9486 + i * (5550 ±0) + e * (5550 ±0)` // Minimum execution time: 1_067_875_000 picoseconds. Weight::from_parts(1_073_769_000, 0) .saturating_add(Weight::from_parts(0, 9486)) // Standard Error: 95_826 .saturating_add(Weight::from_parts(3_089_576, 0).saturating_mul(i.into())) // Standard Error: 95_826 .saturating_add(Weight::from_parts(3_125_375, 0).saturating_mul(e.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(e.into()))) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(e.into()))) .saturating_add(Weight::from_parts(0, 5550).saturating_mul(i.into())) .saturating_add(Weight::from_parts(0, 5550).saturating_mul(e.into())) } /// Storage: Configuration ActiveConfig (r:1 w:0) /// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequestsList (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequestsList (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequests (r:128 w:128) /// Proof Skipped: Hrmp HrmpOpenChannelRequests (max_values: None, max_size: None, mode: Measured) /// Storage: Paras ParaLifecycles (r:256 w:0) /// Proof Skipped: Paras ParaLifecycles (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpIngressChannelsIndex (r:128 w:128) /// Proof Skipped: Hrmp HrmpIngressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpEgressChannelsIndex (r:128 w:128) /// Proof Skipped: Hrmp HrmpEgressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequestCount (r:128 w:128) /// Proof Skipped: Hrmp HrmpOpenChannelRequestCount (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpAcceptedChannelRequestCount (r:128 w:128) /// Proof Skipped: Hrmp HrmpAcceptedChannelRequestCount (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpChannels (r:0 w:128) /// Proof Skipped: Hrmp HrmpChannels (max_values: None, max_size: None, mode: Measured) /// The range of component `c` is `[0, 128]`. fn force_process_hrmp_open(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `794 + c * (136 ±0)` // Estimated: `15954 + c * (18549 ±0)` // Minimum execution time: 10_514_000 picoseconds. Weight::from_parts(5_697_794, 0) .saturating_add(Weight::from_parts(0, 15954)) // Standard Error: 16_431 .saturating_add(Weight::from_parts(18_685_009, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((6_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 18549).saturating_mul(c.into())) } /// Storage: Hrmp HrmpCloseChannelRequestsList (r:1 w:1) /// Proof Skipped: Hrmp HrmpCloseChannelRequestsList (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Hrmp HrmpChannels (r:128 w:128) /// Proof Skipped: Hrmp HrmpChannels (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpEgressChannelsIndex (r:128 w:128) /// Proof Skipped: Hrmp HrmpEgressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpIngressChannelsIndex (r:128 w:128) /// Proof Skipped: Hrmp HrmpIngressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpCloseChannelRequests (r:0 w:128) /// Proof Skipped: Hrmp HrmpCloseChannelRequests (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpChannelContents (r:0 w:128) /// Proof Skipped: Hrmp HrmpChannelContents (max_values: None, max_size: None, mode: Measured) /// The range of component `c` is `[0, 128]`. fn force_process_hrmp_close(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `335 + c * (124 ±0)` // Estimated: `6375 + c * (8175 ±0)` // Minimum execution time: 6_912_000 picoseconds. Weight::from_parts(5_970_987, 0) .saturating_add(Weight::from_parts(0, 6375)) // Standard Error: 9_971 .saturating_add(Weight::from_parts(11_348_517, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 8175).saturating_mul(c.into())) } /// Storage: Hrmp HrmpOpenChannelRequestsList (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequestsList (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequests (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequests (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequestCount (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequestCount (max_values: None, max_size: None, mode: Measured) /// The range of component `c` is `[0, 128]`. fn hrmp_cancel_open_request(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1026 + c * (13 ±0)` // Estimated: `10905 + c * (45 ±0)` // Minimum execution time: 22_649_000 picoseconds. Weight::from_parts(27_439_954, 0) .saturating_add(Weight::from_parts(0, 10905)) // Standard Error: 1_101 .saturating_add(Weight::from_parts(54_107, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 45).saturating_mul(c.into())) } /// Storage: Hrmp HrmpOpenChannelRequestsList (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequestsList (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequests (r:128 w:128) /// Proof Skipped: Hrmp HrmpOpenChannelRequests (max_values: None, max_size: None, mode: Measured) /// The range of component `c` is `[0, 128]`. fn clean_open_channel_requests(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `243 + c * (63 ±0)` // Estimated: `2955 + c * (2602 ±0)` // Minimum execution time: 5_030_000 picoseconds. Weight::from_parts(4_932_487, 0) .saturating_add(Weight::from_parts(0, 2955)) // Standard Error: 2_697 .saturating_add(Weight::from_parts(3_108_379, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2602).saturating_mul(c.into())) } /// Storage: Paras ParaLifecycles (r:2 w:0) /// Proof Skipped: Paras ParaLifecycles (max_values: None, max_size: None, mode: Measured) /// Storage: Configuration ActiveConfig (r:1 w:0) /// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequests (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequests (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpChannels (r:1 w:0) /// Proof Skipped: Hrmp HrmpChannels (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpEgressChannelsIndex (r:1 w:0) /// Proof Skipped: Hrmp HrmpEgressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequestCount (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequestCount (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpOpenChannelRequestsList (r:1 w:1) /// Proof Skipped: Hrmp HrmpOpenChannelRequestsList (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Dmp DownwardMessageQueues (r:2 w:2) /// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured) /// Storage: Dmp DownwardMessageQueueHeads (r:2 w:2) /// Proof Skipped: Dmp DownwardMessageQueueHeads (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpIngressChannelsIndex (r:1 w:0) /// Proof Skipped: Hrmp HrmpIngressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpAcceptedChannelRequestCount (r:1 w:1) /// Proof Skipped: Hrmp HrmpAcceptedChannelRequestCount (max_values: None, max_size: None, mode: Measured) fn force_open_hrmp_channel() -> Weight { // Proof Size summary in bytes: // Measured: `719` // Estimated: `49489` // Minimum execution time: 54_530_000 picoseconds. Weight::from_parts(55_259_000, 0) .saturating_add(Weight::from_parts(0, 49489)) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(8)) } }