bridge_hub_westend_runtime/weights/snowbridge_pallet_ethereum_client.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_ethereum_client`
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_ethereum_client
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_ethereum_client`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> snowbridge_pallet_ethereum_client::WeightInfo for WeightInfo<T> {
53 /// Storage: `EthereumBeaconClient::FinalizedBeaconStateIndex` (r:1 w:1)
54 /// Proof: `EthereumBeaconClient::FinalizedBeaconStateIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
55 /// Storage: `EthereumBeaconClient::FinalizedBeaconStateMapping` (r:1 w:1)
56 /// Proof: `EthereumBeaconClient::FinalizedBeaconStateMapping` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
57 /// Storage: `EthereumBeaconClient::NextSyncCommittee` (r:0 w:1)
58 /// Proof: `EthereumBeaconClient::NextSyncCommittee` (`max_values`: Some(1), `max_size`: Some(92372), added: 92867, mode: `MaxEncodedLen`)
59 /// Storage: `EthereumBeaconClient::InitialCheckpointRoot` (r:0 w:1)
60 /// Proof: `EthereumBeaconClient::InitialCheckpointRoot` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
61 /// Storage: `EthereumBeaconClient::ValidatorsRoot` (r:0 w:1)
62 /// Proof: `EthereumBeaconClient::ValidatorsRoot` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
63 /// Storage: `EthereumBeaconClient::LatestFinalizedBlockRoot` (r:0 w:1)
64 /// Proof: `EthereumBeaconClient::LatestFinalizedBlockRoot` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
65 /// Storage: `EthereumBeaconClient::CurrentSyncCommittee` (r:0 w:1)
66 /// Proof: `EthereumBeaconClient::CurrentSyncCommittee` (`max_values`: Some(1), `max_size`: Some(92372), added: 92867, mode: `MaxEncodedLen`)
67 /// Storage: `EthereumBeaconClient::FinalizedBeaconState` (r:0 w:1)
68 /// Proof: `EthereumBeaconClient::FinalizedBeaconState` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
69 fn force_checkpoint() -> Weight {
70 // Proof Size summary in bytes:
71 // Measured: `42`
72 // Estimated: `3501`
73 // Minimum execution time: 105_684_862_000 picoseconds.
74 Weight::from_parts(105_818_568_000, 0)
75 .saturating_add(Weight::from_parts(0, 3501))
76 .saturating_add(T::DbWeight::get().reads(2))
77 .saturating_add(T::DbWeight::get().writes(8))
78 }
79 /// Storage: `EthereumBeaconClient::OperatingMode` (r:1 w:0)
80 /// Proof: `EthereumBeaconClient::OperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
81 /// Storage: `EthereumBeaconClient::LatestFinalizedBlockRoot` (r:1 w:0)
82 /// Proof: `EthereumBeaconClient::LatestFinalizedBlockRoot` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
83 /// Storage: `EthereumBeaconClient::FinalizedBeaconState` (r:1 w:0)
84 /// Proof: `EthereumBeaconClient::FinalizedBeaconState` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
85 /// Storage: `EthereumBeaconClient::NextSyncCommittee` (r:1 w:0)
86 /// Proof: `EthereumBeaconClient::NextSyncCommittee` (`max_values`: Some(1), `max_size`: Some(92372), added: 92867, mode: `MaxEncodedLen`)
87 /// Storage: `EthereumBeaconClient::CurrentSyncCommittee` (r:1 w:0)
88 /// Proof: `EthereumBeaconClient::CurrentSyncCommittee` (`max_values`: Some(1), `max_size`: Some(92372), added: 92867, mode: `MaxEncodedLen`)
89 /// Storage: `EthereumBeaconClient::ValidatorsRoot` (r:1 w:0)
90 /// Proof: `EthereumBeaconClient::ValidatorsRoot` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
91 /// Storage: `EthereumBeaconClient::LatestSyncCommitteeUpdatePeriod` (r:1 w:0)
92 /// Proof: `EthereumBeaconClient::LatestSyncCommitteeUpdatePeriod` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
93 fn submit() -> Weight {
94 // Proof Size summary in bytes:
95 // Measured: `92738`
96 // Estimated: `93857`
97 // Minimum execution time: 27_295_666_000 picoseconds.
98 Weight::from_parts(27_351_060_000, 0)
99 .saturating_add(Weight::from_parts(0, 93857))
100 .saturating_add(T::DbWeight::get().reads(7))
101 }
102 /// Storage: `EthereumBeaconClient::OperatingMode` (r:1 w:0)
103 /// Proof: `EthereumBeaconClient::OperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
104 /// Storage: `EthereumBeaconClient::LatestFinalizedBlockRoot` (r:1 w:0)
105 /// Proof: `EthereumBeaconClient::LatestFinalizedBlockRoot` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
106 /// Storage: `EthereumBeaconClient::FinalizedBeaconState` (r:1 w:0)
107 /// Proof: `EthereumBeaconClient::FinalizedBeaconState` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
108 /// Storage: `EthereumBeaconClient::NextSyncCommittee` (r:1 w:1)
109 /// Proof: `EthereumBeaconClient::NextSyncCommittee` (`max_values`: Some(1), `max_size`: Some(92372), added: 92867, mode: `MaxEncodedLen`)
110 /// Storage: `EthereumBeaconClient::CurrentSyncCommittee` (r:1 w:0)
111 /// Proof: `EthereumBeaconClient::CurrentSyncCommittee` (`max_values`: Some(1), `max_size`: Some(92372), added: 92867, mode: `MaxEncodedLen`)
112 /// Storage: `EthereumBeaconClient::ValidatorsRoot` (r:1 w:0)
113 /// Proof: `EthereumBeaconClient::ValidatorsRoot` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
114 /// Storage: `EthereumBeaconClient::LatestSyncCommitteeUpdatePeriod` (r:1 w:1)
115 /// Proof: `EthereumBeaconClient::LatestSyncCommitteeUpdatePeriod` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
116 fn submit_with_sync_committee() -> Weight {
117 // Proof Size summary in bytes:
118 // Measured: `92738`
119 // Estimated: `93857`
120 // Minimum execution time: 133_134_525_000 picoseconds.
121 Weight::from_parts(133_396_722_000, 0)
122 .saturating_add(Weight::from_parts(0, 93857))
123 .saturating_add(T::DbWeight::get().reads(7))
124 .saturating_add(T::DbWeight::get().writes(2))
125 }
126}