referrerpolicy=no-referrer-when-downgrade

bridge_hub_westend_runtime/weights/
pallet_bridge_parachains.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 `pallet_bridge_parachains`
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: `d3b41be4aae8`, 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/bridge-hub-westend-runtime/bridge_hub_westend_runtime.wasm
31// --pallet=pallet_bridge_parachains
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/bridge-hubs/bridge-hub-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
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_bridge_parachains`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_bridge_parachains::WeightInfo for WeightInfo<T> {
53	/// Storage: `BridgeRococoParachains::PalletOperatingMode` (r:1 w:0)
54	/// Proof: `BridgeRococoParachains::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
55	/// Storage: `BridgeRococoGrandpa::ImportedHeaders` (r:1 w:0)
56	/// Proof: `BridgeRococoGrandpa::ImportedHeaders` (`max_values`: Some(1024), `max_size`: Some(68), added: 1553, mode: `MaxEncodedLen`)
57	/// Storage: `BridgeRococoParachains::ParasInfo` (r:1 w:1)
58	/// Proof: `BridgeRococoParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`)
59	/// Storage: `BridgeRococoParachains::ImportedParaHashes` (r:1 w:1)
60	/// Proof: `BridgeRococoParachains::ImportedParaHashes` (`max_values`: Some(64), `max_size`: Some(64), added: 1054, mode: `MaxEncodedLen`)
61	/// Storage: `BridgeRococoParachains::ImportedParaHeads` (r:0 w:1)
62	/// Proof: `BridgeRococoParachains::ImportedParaHeads` (`max_values`: Some(64), `max_size`: Some(196), added: 1186, mode: `MaxEncodedLen`)
63	/// The range of component `p` is `[1, 2]`.
64	fn submit_parachain_heads_with_n_parachains(p: u32, ) -> Weight {
65		// Proof Size summary in bytes:
66		//  Measured:  `83`
67		//  Estimated: `2543`
68		// Minimum execution time: 35_560_000 picoseconds.
69		Weight::from_parts(37_182_961, 0)
70			.saturating_add(Weight::from_parts(0, 2543))
71			// Standard Error: 100_736
72			.saturating_add(Weight::from_parts(42_669, 0).saturating_mul(p.into()))
73			.saturating_add(T::DbWeight::get().reads(4))
74			.saturating_add(T::DbWeight::get().writes(3))
75	}
76	/// Storage: `BridgeRococoParachains::PalletOperatingMode` (r:1 w:0)
77	/// Proof: `BridgeRococoParachains::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
78	/// Storage: `BridgeRococoGrandpa::ImportedHeaders` (r:1 w:0)
79	/// Proof: `BridgeRococoGrandpa::ImportedHeaders` (`max_values`: Some(1024), `max_size`: Some(68), added: 1553, mode: `MaxEncodedLen`)
80	/// Storage: `BridgeRococoParachains::ParasInfo` (r:1 w:1)
81	/// Proof: `BridgeRococoParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`)
82	/// Storage: `BridgeRococoParachains::ImportedParaHashes` (r:1 w:1)
83	/// Proof: `BridgeRococoParachains::ImportedParaHashes` (`max_values`: Some(64), `max_size`: Some(64), added: 1054, mode: `MaxEncodedLen`)
84	/// Storage: `BridgeRococoParachains::ImportedParaHeads` (r:0 w:1)
85	/// Proof: `BridgeRococoParachains::ImportedParaHeads` (`max_values`: Some(64), `max_size`: Some(196), added: 1186, mode: `MaxEncodedLen`)
86	fn submit_parachain_heads_with_1kb_proof() -> Weight {
87		// Proof Size summary in bytes:
88		//  Measured:  `83`
89		//  Estimated: `2543`
90		// Minimum execution time: 37_572_000 picoseconds.
91		Weight::from_parts(38_392_000, 0)
92			.saturating_add(Weight::from_parts(0, 2543))
93			.saturating_add(T::DbWeight::get().reads(4))
94			.saturating_add(T::DbWeight::get().writes(3))
95	}
96	/// Storage: `BridgeRococoParachains::PalletOperatingMode` (r:1 w:0)
97	/// Proof: `BridgeRococoParachains::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
98	/// Storage: `BridgeRococoGrandpa::ImportedHeaders` (r:1 w:0)
99	/// Proof: `BridgeRococoGrandpa::ImportedHeaders` (`max_values`: Some(1024), `max_size`: Some(68), added: 1553, mode: `MaxEncodedLen`)
100	/// Storage: `BridgeRococoParachains::ParasInfo` (r:1 w:1)
101	/// Proof: `BridgeRococoParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`)
102	/// Storage: `BridgeRococoParachains::ImportedParaHashes` (r:1 w:1)
103	/// Proof: `BridgeRococoParachains::ImportedParaHashes` (`max_values`: Some(64), `max_size`: Some(64), added: 1054, mode: `MaxEncodedLen`)
104	/// Storage: `BridgeRococoParachains::ImportedParaHeads` (r:0 w:1)
105	/// Proof: `BridgeRococoParachains::ImportedParaHeads` (`max_values`: Some(64), `max_size`: Some(196), added: 1186, mode: `MaxEncodedLen`)
106	fn submit_parachain_heads_with_16kb_proof() -> Weight {
107		// Proof Size summary in bytes:
108		//  Measured:  `83`
109		//  Estimated: `2543`
110		// Minimum execution time: 66_029_000 picoseconds.
111		Weight::from_parts(67_174_000, 0)
112			.saturating_add(Weight::from_parts(0, 2543))
113			.saturating_add(T::DbWeight::get().reads(4))
114			.saturating_add(T::DbWeight::get().writes(3))
115	}
116}