referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
pallet_xcm_bridge_hub_router.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Substrate.
3// SPDX-License-Identifier: Apache-2.0
4
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// 	http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17//! Autogenerated weights for `pallet_xcm_bridge_hub_router`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2024-12-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `runner-acd6uxux-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-westend-dev")`, DB CACHE: 1024
24
25// Executed Command:
26// target/production/polkadot-parachain
27// benchmark
28// pallet
29// --steps=50
30// --repeat=20
31// --extrinsic=*
32// --wasm-execution=compiled
33// --heap-pages=4096
34// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
35// --pallet=pallet_xcm_bridge_hub_router
36// --chain=asset-hub-next-westend-dev
37// --header=./cumulus/file_header.txt
38// --output=./cumulus/parachains/runtimes/assets/asset-hub-next-westend/src/weights/
39
40#![cfg_attr(rustfmt, rustfmt_skip)]
41#![allow(unused_parens)]
42#![allow(unused_imports)]
43#![allow(missing_docs)]
44
45use frame_support::{traits::Get, weights::Weight};
46use core::marker::PhantomData;
47
48/// Weight functions for `pallet_xcm_bridge_hub_router`.
49pub struct WeightInfo<T>(PhantomData<T>);
50impl<T: frame_system::Config> pallet_xcm_bridge_hub_router::WeightInfo for WeightInfo<T> {
51	/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
52	/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
53	/// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0)
54	/// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
55	/// Storage: `ToRococoXcmRouter::Bridge` (r:1 w:1)
56	/// Proof: `ToRococoXcmRouter::Bridge` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`)
57	fn on_initialize_when_non_congested() -> Weight {
58		// Proof Size summary in bytes:
59		//  Measured:  `259`
60		//  Estimated: `5487`
61		// Minimum execution time: 14_643_000 picoseconds.
62		Weight::from_parts(14_992_000, 0)
63			.saturating_add(Weight::from_parts(0, 5487))
64			.saturating_add(T::DbWeight::get().reads(3))
65			.saturating_add(T::DbWeight::get().writes(1))
66	}
67	/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
68	/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
69	/// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0)
70	/// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
71	fn on_initialize_when_congested() -> Weight {
72		// Proof Size summary in bytes:
73		//  Measured:  `144`
74		//  Estimated: `5487`
75		// Minimum execution time: 5_367_000 picoseconds.
76		Weight::from_parts(5_604_000, 0)
77			.saturating_add(Weight::from_parts(0, 5487))
78			.saturating_add(T::DbWeight::get().reads(2))
79	}
80	/// Storage: `ToRococoXcmRouter::Bridge` (r:1 w:1)
81	/// Proof: `ToRococoXcmRouter::Bridge` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`)
82	fn report_bridge_status() -> Weight {
83		// Proof Size summary in bytes:
84		//  Measured:  `150`
85		//  Estimated: `1502`
86		// Minimum execution time: 12_562_000 picoseconds.
87		Weight::from_parts(12_991_000, 0)
88			.saturating_add(Weight::from_parts(0, 1502))
89			.saturating_add(T::DbWeight::get().reads(1))
90			.saturating_add(T::DbWeight::get().writes(1))
91	}
92}