bridge_hub_westend_runtime/weights/snowbridge_pallet_outbound_queue_v2.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_v2`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-03-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `yangdebijibendiannao.local`, CPU: `<UNKNOWN>`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// target/release/frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --runtime
30// target/release/wbuild/bridge-hub-westend-runtime/bridge_hub_westend_runtime.wasm
31// --pallet=snowbridge_pallet_outbound_queue_v2
32// --extrinsic
33// *
34// --header=./cumulus/file_header.txt
35// --output=./cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/weights
36// --wasm-execution=compiled
37// --extra
38
39#![cfg_attr(rustfmt, rustfmt_skip)]
40#![allow(unused_parens)]
41#![allow(unused_imports)]
42#![allow(missing_docs)]
43
44use frame_support::{traits::Get, weights::Weight};
45use core::marker::PhantomData;
46
47/// Weight functions for `snowbridge_pallet_outbound_queue_v2`.
48pub struct WeightInfo<T>(PhantomData<T>);
49impl<T: frame_system::Config> snowbridge_pallet_outbound_queue_v2::WeightInfo for WeightInfo<T> {
50 /// Storage: `EthereumOutboundQueueV2::MessageLeaves` (r:1 w:1)
51 /// Proof: `EthereumOutboundQueueV2::MessageLeaves` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
52 /// Storage: `EthereumOutboundQueueV2::Nonce` (r:1 w:1)
53 /// Proof: `EthereumOutboundQueueV2::Nonce` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
54 /// Storage: `EthereumOutboundQueueV2::Messages` (r:1 w:1)
55 /// Proof: `EthereumOutboundQueueV2::Messages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56 /// Storage: `EthereumOutboundQueueV2::PendingOrders` (r:0 w:1)
57 /// Proof: `EthereumOutboundQueueV2::PendingOrders` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
58 fn do_process_message() -> Weight {
59 // Proof Size summary in bytes:
60 // Measured: `42`
61 // Estimated: `1527`
62 // Minimum execution time: 18_000_000 picoseconds.
63 Weight::from_parts(19_000_000, 0)
64 .saturating_add(Weight::from_parts(0, 1527))
65 .saturating_add(T::DbWeight::get().reads(3))
66 .saturating_add(T::DbWeight::get().writes(4))
67 }
68 /// Storage: `EthereumOutboundQueueV2::MessageLeaves` (r:1 w:0)
69 /// Proof: `EthereumOutboundQueueV2::MessageLeaves` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
70 fn commit() -> Weight {
71 // Proof Size summary in bytes:
72 // Measured: `1128`
73 // Estimated: `2613`
74 // Minimum execution time: 25_000_000 picoseconds.
75 Weight::from_parts(26_000_000, 0)
76 .saturating_add(Weight::from_parts(0, 2613))
77 .saturating_add(T::DbWeight::get().reads(1))
78 }
79 /// Storage: `EthereumOutboundQueueV2::MessageLeaves` (r:1 w:0)
80 /// Proof: `EthereumOutboundQueueV2::MessageLeaves` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
81 fn commit_single() -> Weight {
82 // Proof Size summary in bytes:
83 // Measured: `135`
84 // Estimated: `1620`
85 // Minimum execution time: 9_000_000 picoseconds.
86 Weight::from_parts(10_000_000, 0)
87 .saturating_add(Weight::from_parts(0, 1620))
88 .saturating_add(T::DbWeight::get().reads(1))
89 }
90 /// Storage: `EthereumOutboundQueueV2::MessageLeaves` (r:0 w:1)
91 /// Proof: `EthereumOutboundQueueV2::MessageLeaves` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92 /// Storage: `EthereumOutboundQueueV2::Messages` (r:0 w:1)
93 /// Proof: `EthereumOutboundQueueV2::Messages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94 fn on_initialize() -> Weight {
95 // Proof Size summary in bytes:
96 // Measured: `0`
97 // Estimated: `0`
98 // Minimum execution time: 0_000 picoseconds.
99 Weight::from_parts(1_000_000, 0)
100 .saturating_add(Weight::from_parts(0, 0))
101 .saturating_add(T::DbWeight::get().writes(2))
102 }
103 /// Storage: `EthereumOutboundQueueV2::Nonce` (r:1 w:1)
104 /// Proof: `EthereumOutboundQueueV2::Nonce` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
105 /// Storage: `EthereumOutboundQueueV2::PendingOrders` (r:0 w:32)
106 /// Proof: `EthereumOutboundQueueV2::PendingOrders` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
107 /// Storage: `EthereumOutboundQueueV2::MessageLeaves` (r:0 w:1)
108 /// Proof: `EthereumOutboundQueueV2::MessageLeaves` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
109 /// Storage: `EthereumOutboundQueueV2::Messages` (r:0 w:1)
110 /// Proof: `EthereumOutboundQueueV2::Messages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
111 fn process() -> Weight {
112 // Proof Size summary in bytes:
113 // Measured: `113`
114 // Estimated: `1493`
115 // Minimum execution time: 502_000_000 picoseconds.
116 Weight::from_parts(521_000_000, 0)
117 .saturating_add(Weight::from_parts(0, 1493))
118 .saturating_add(T::DbWeight::get().reads(1))
119 .saturating_add(T::DbWeight::get().writes(35))
120 }
121 /// Storage: `EthereumBeaconClient::LatestFinalizedBlockRoot` (r:1 w:0)
122 /// Proof: `EthereumBeaconClient::LatestFinalizedBlockRoot` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
123 /// Storage: `EthereumBeaconClient::FinalizedBeaconState` (r:1 w:0)
124 /// Proof: `EthereumBeaconClient::FinalizedBeaconState` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
125 /// Storage: UNKNOWN KEY `0xaed97c7854d601808b98ae43079dafb3` (r:1 w:0)
126 /// Proof: UNKNOWN KEY `0xaed97c7854d601808b98ae43079dafb3` (r:1 w:0)
127 /// Storage: `EthereumOutboundQueueV2::PendingOrders` (r:1 w:1)
128 /// Proof: `EthereumOutboundQueueV2::PendingOrders` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
129 fn submit_delivery_receipt() -> Weight {
130 // Proof Size summary in bytes:
131 // Measured: `320`
132 // Estimated: `3785`
133 // Minimum execution time: 67_000_000 picoseconds.
134 Weight::from_parts(68_000_000, 0)
135 .saturating_add(Weight::from_parts(0, 3785))
136 .saturating_add(T::DbWeight::get().reads(4))
137 .saturating_add(T::DbWeight::get().writes(1))
138 }
139}