referrerpolicy=no-referrer-when-downgrade

glutton_westend_runtime/weights/
cumulus_pallet_parachain_system.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// 	http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `cumulus_pallet_parachain_system`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `5e986aeb5bce`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/glutton-westend-runtime/glutton_westend_runtime.wasm
31// --pallet=cumulus_pallet_parachain_system
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/glutton/glutton-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41// --genesis-builder-policy=none
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `cumulus_pallet_parachain_system`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> cumulus_pallet_parachain_system::WeightInfo for WeightInfo<T> {
54	/// Storage: `ParachainSystem::LastDmqMqcHead` (r:1 w:1)
55	/// Proof: `ParachainSystem::LastDmqMqcHead` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56	/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
57	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
58	/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
59	/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
60	/// Storage: `ParachainSystem::ProcessedDownwardMessages` (r:0 w:1)
61	/// Proof: `ParachainSystem::ProcessedDownwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
62	/// Storage: `MessageQueue::Pages` (r:0 w:1000)
63	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
64	/// The range of component `n` is `[0, 1000]`.
65	fn enqueue_inbound_downward_messages(n: u32, ) -> Weight {
66		// Proof Size summary in bytes:
67		//  Measured:  `0`
68		//  Estimated: `3517`
69		// Minimum execution time: 981_000 picoseconds.
70		Weight::from_parts(1_014_000, 0)
71			.saturating_add(Weight::from_parts(0, 3517))
72			// Standard Error: 88_968
73			.saturating_add(Weight::from_parts(337_201_827, 0).saturating_mul(n.into()))
74			.saturating_add(T::DbWeight::get().reads(3))
75			.saturating_add(T::DbWeight::get().writes(4))
76			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
77	}
78}