// Copyright (C) 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::ump` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! DATE: 2023-04-28, 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("kusama-dev"), DB CACHE: 1024 // Executed Command: // ./target/production/polkadot // benchmark // pallet // --chain=kusama-dev // --steps=50 // --repeat=20 // --pallet=runtime_parachains::ump // --extrinsic=* // --execution=wasm // --wasm-execution=compiled // --header=./file_header.txt // --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] #![allow(missing_docs)] use frame_support::{traits::Get, weights::Weight}; use core::marker::PhantomData; /// Weight functions for `runtime_parachains::ump`. pub struct WeightInfo(PhantomData); impl runtime_parachains::ump::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 51200]`. fn process_upward_message(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 5_945_000 picoseconds. Weight::from_parts(6_047_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 8 .saturating_add(Weight::from_parts(1_364, 0).saturating_mul(s.into())) } /// Storage: Ump NeedsDispatch (r:1 w:1) /// Proof Skipped: Ump NeedsDispatch (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Ump NextDispatchRoundStartWith (r:1 w:1) /// Proof Skipped: Ump NextDispatchRoundStartWith (max_values: Some(1), max_size: None, mode: Measured) /// Storage: Ump RelayDispatchQueues (r:0 w:1) /// Proof Skipped: Ump RelayDispatchQueues (max_values: None, max_size: None, mode: Measured) /// Storage: Ump RelayDispatchQueueSize (r:0 w:1) /// Proof Skipped: Ump RelayDispatchQueueSize (max_values: None, max_size: None, mode: Measured) fn clean_ump_after_outgoing() -> Weight { // Proof Size summary in bytes: // Measured: `206` // Estimated: `1691` // Minimum execution time: 9_308_000 picoseconds. Weight::from_parts(9_501_000, 0) .saturating_add(Weight::from_parts(0, 1691)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: Ump Overweight (r:1 w:1) /// Proof Skipped: Ump Overweight (max_values: None, max_size: None, mode: Measured) /// Storage: Ump CounterForOverweight (r:1 w:1) /// Proof: Ump CounterForOverweight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) fn service_overweight() -> Weight { // Proof Size summary in bytes: // Measured: `223` // Estimated: `3688` // Minimum execution time: 23_650_000 picoseconds. Weight::from_parts(23_963_000, 0) .saturating_add(Weight::from_parts(0, 3688)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } }