pallet_staking_async_parachain_runtime/weights/cumulus_pallet_parachain_system.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! Autogenerated weights for `cumulus_pallet_parachain_system`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2023-03-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `i9`, CPU: `13th Gen Intel(R) Core(TM) i9-13900K`
24//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
25
26// Executed Command:
27// ./target/release/polkadot-parachain
28// benchmark
29// pallet
30// --chain
31// statemine-dev
32// --pallet
33// cumulus_pallet_parachain_system
34// --extrinsic
35// *
36// --execution
37// wasm
38// --wasm-execution
39// compiled
40// --output
41// parachains/runtimes/assets/statemine/src/weights
42// --steps
43// 50
44// --repeat
45// 20
46
47#![cfg_attr(rustfmt, rustfmt_skip)]
48#![allow(unused_parens)]
49#![allow(unused_imports)]
50
51use frame_support::{traits::Get, weights::Weight};
52use core::marker::PhantomData;
53
54/// Weight functions for `cumulus_pallet_parachain_system`.
55pub struct WeightInfo<T>(PhantomData<T>);
56impl<T: frame_system::Config> cumulus_pallet_parachain_system::WeightInfo for WeightInfo<T> {
57 /// Storage: ParachainSystem LastDmqMqcHead (r:1 w:1)
58 /// Proof Skipped: ParachainSystem LastDmqMqcHead (max_values: Some(1), max_size: None, mode: Measured)
59 /// Storage: ParachainSystem ReservedDmpWeightOverride (r:1 w:0)
60 /// Proof Skipped: ParachainSystem ReservedDmpWeightOverride (max_values: Some(1), max_size: None, mode: Measured)
61 /// Storage: MessageQueue BookStateFor (r:1 w:1)
62 /// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
63 /// Storage: MessageQueue ServiceHead (r:1 w:1)
64 /// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
65 /// Storage: ParachainSystem ProcessedDownwardMessages (r:0 w:1)
66 /// Proof Skipped: ParachainSystem ProcessedDownwardMessages (max_values: Some(1), max_size: None, mode: Measured)
67 /// Storage: MessageQueue Pages (r:0 w:16)
68 /// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
69 /// The range of component `n` is `[0, 1000]`.
70 fn enqueue_inbound_downward_messages(n: u32, ) -> Weight {
71 // Proof Size summary in bytes:
72 // Measured: `12`
73 // Estimated: `8013`
74 // Minimum execution time: 1_622_000 picoseconds.
75 Weight::from_parts(1_709_000, 0)
76 .saturating_add(Weight::from_parts(0, 8013))
77 // Standard Error: 22_138
78 .saturating_add(Weight::from_parts(23_923_169, 0).saturating_mul(n.into()))
79 .saturating_add(T::DbWeight::get().reads(4))
80 .saturating_add(T::DbWeight::get().writes(4))
81 }
82}