referrerpolicy=no-referrer-when-downgrade

asset_hub_westend_runtime/weights/
pallet_xcm_bridge_hub_router.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_xcm_bridge_hub_router`
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: `73b9817d6032`, 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/asset-hub-westend-runtime/asset_hub_westend_runtime.wasm
31// --pallet=pallet_xcm_bridge_hub_router
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/assets/asset-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_xcm_bridge_hub_router`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_xcm_bridge_hub_router::WeightInfo for WeightInfo<T> {
53	/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
54	/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
55	/// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0)
56	/// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
57	/// Storage: `ToRococoXcmRouter::Bridge` (r:1 w:1)
58	/// Proof: `ToRococoXcmRouter::Bridge` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`)
59	fn on_initialize_when_non_congested() -> Weight {
60		// Proof Size summary in bytes:
61		//  Measured:  `259`
62		//  Estimated: `5487`
63		// Minimum execution time: 11_878_000 picoseconds.
64		Weight::from_parts(12_382_000, 0)
65			.saturating_add(Weight::from_parts(0, 5487))
66			.saturating_add(T::DbWeight::get().reads(3))
67			.saturating_add(T::DbWeight::get().writes(1))
68	}
69	/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
70	/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
71	/// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0)
72	/// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
73	fn on_initialize_when_congested() -> Weight {
74		// Proof Size summary in bytes:
75		//  Measured:  `144`
76		//  Estimated: `5487`
77		// Minimum execution time: 5_094_000 picoseconds.
78		Weight::from_parts(5_316_000, 0)
79			.saturating_add(Weight::from_parts(0, 5487))
80			.saturating_add(T::DbWeight::get().reads(2))
81	}
82	/// Storage: `ToRococoXcmRouter::Bridge` (r:1 w:1)
83	/// Proof: `ToRococoXcmRouter::Bridge` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`)
84	fn report_bridge_status() -> Weight {
85		// Proof Size summary in bytes:
86		//  Measured:  `150`
87		//  Estimated: `1502`
88		// Minimum execution time: 9_591_000 picoseconds.
89		Weight::from_parts(10_157_000, 0)
90			.saturating_add(Weight::from_parts(0, 1502))
91			.saturating_add(T::DbWeight::get().reads(1))
92			.saturating_add(T::DbWeight::get().writes(1))
93	}
94}