referrerpolicy=no-referrer-when-downgrade

bridge_hub_westend_runtime/weights/
snowbridge_pallet_outbound_queue.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 `snowbridge_pallet_outbound_queue`
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=snowbridge_pallet_outbound_queue
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 `snowbridge_pallet_outbound_queue`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> snowbridge_pallet_outbound_queue::WeightInfo for WeightInfo<T> {
53	/// Storage: `EthereumOutboundQueue::MessageLeaves` (r:1 w:1)
54	/// Proof: `EthereumOutboundQueue::MessageLeaves` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
55	/// Storage: `EthereumOutboundQueue::Nonce` (r:1 w:1)
56	/// Proof: `EthereumOutboundQueue::Nonce` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
57	/// Storage: `EthereumSystem::PricingParameters` (r:1 w:0)
58	/// Proof: `EthereumSystem::PricingParameters` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
59	/// Storage: `EthereumOutboundQueue::Messages` (r:1 w:1)
60	/// Proof: `EthereumOutboundQueue::Messages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
61	fn do_process_message() -> Weight {
62		// Proof Size summary in bytes:
63		//  Measured:  `80`
64		//  Estimated: `3513`
65		// Minimum execution time: 34_948_000 picoseconds.
66		Weight::from_parts(35_561_000, 0)
67			.saturating_add(Weight::from_parts(0, 3513))
68			.saturating_add(T::DbWeight::get().reads(4))
69			.saturating_add(T::DbWeight::get().writes(3))
70	}
71	/// Storage: `EthereumOutboundQueue::MessageLeaves` (r:1 w:0)
72	/// Proof: `EthereumOutboundQueue::MessageLeaves` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
73	fn commit() -> Weight {
74		// Proof Size summary in bytes:
75		//  Measured:  `1057`
76		//  Estimated: `2542`
77		// Minimum execution time: 29_045_000 picoseconds.
78		Weight::from_parts(29_579_000, 0)
79			.saturating_add(Weight::from_parts(0, 2542))
80			.saturating_add(T::DbWeight::get().reads(1))
81	}
82	/// Storage: `EthereumOutboundQueue::MessageLeaves` (r:1 w:0)
83	/// Proof: `EthereumOutboundQueue::MessageLeaves` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
84	fn commit_single() -> Weight {
85		// Proof Size summary in bytes:
86		//  Measured:  `64`
87		//  Estimated: `1549`
88		// Minimum execution time: 9_471_000 picoseconds.
89		Weight::from_parts(9_940_000, 0)
90			.saturating_add(Weight::from_parts(0, 1549))
91			.saturating_add(T::DbWeight::get().reads(1))
92	}
93}