bridge_hub_westend_runtime/weights/snowbridge_pallet_system.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_system`
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_system
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_system`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> snowbridge_pallet_system::WeightInfo for WeightInfo<T> {
53 /// Storage: `EthereumSystem::Channels` (r:1 w:0)
54 /// Proof: `EthereumSystem::Channels` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
55 /// Storage: `EthereumSystem::PricingParameters` (r:1 w:0)
56 /// Proof: `EthereumSystem::PricingParameters` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
57 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
58 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(136), added: 2611, mode: `MaxEncodedLen`)
59 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
60 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
61 /// Storage: `MessageQueue::Pages` (r:0 w:1)
62 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105549), added: 108024, mode: `MaxEncodedLen`)
63 fn upgrade() -> Weight {
64 // Proof Size summary in bytes:
65 // Measured: `218`
66 // Estimated: `3601`
67 // Minimum execution time: 38_129_000 picoseconds.
68 Weight::from_parts(39_195_000, 0)
69 .saturating_add(Weight::from_parts(0, 3601))
70 .saturating_add(T::DbWeight::get().reads(4))
71 .saturating_add(T::DbWeight::get().writes(3))
72 }
73 /// Storage: `EthereumSystem::Channels` (r:1 w:0)
74 /// Proof: `EthereumSystem::Channels` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
75 /// Storage: `EthereumSystem::PricingParameters` (r:1 w:0)
76 /// Proof: `EthereumSystem::PricingParameters` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
77 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
78 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(136), added: 2611, mode: `MaxEncodedLen`)
79 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
80 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
81 /// Storage: `MessageQueue::Pages` (r:0 w:1)
82 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105549), added: 108024, mode: `MaxEncodedLen`)
83 fn set_operating_mode() -> Weight {
84 // Proof Size summary in bytes:
85 // Measured: `218`
86 // Estimated: `3601`
87 // Minimum execution time: 29_658_000 picoseconds.
88 Weight::from_parts(30_447_000, 0)
89 .saturating_add(Weight::from_parts(0, 3601))
90 .saturating_add(T::DbWeight::get().reads(4))
91 .saturating_add(T::DbWeight::get().writes(3))
92 }
93 /// Storage: `EthereumSystem::Channels` (r:1 w:0)
94 /// Proof: `EthereumSystem::Channels` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
95 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
96 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(136), added: 2611, mode: `MaxEncodedLen`)
97 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
98 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
99 /// Storage: `MessageQueue::Pages` (r:0 w:1)
100 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105549), added: 108024, mode: `MaxEncodedLen`)
101 /// Storage: `EthereumSystem::PricingParameters` (r:0 w:1)
102 /// Proof: `EthereumSystem::PricingParameters` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
103 fn set_pricing_parameters() -> Weight {
104 // Proof Size summary in bytes:
105 // Measured: `218`
106 // Estimated: `3601`
107 // Minimum execution time: 34_149_000 picoseconds.
108 Weight::from_parts(35_016_000, 0)
109 .saturating_add(Weight::from_parts(0, 3601))
110 .saturating_add(T::DbWeight::get().reads(3))
111 .saturating_add(T::DbWeight::get().writes(4))
112 }
113 /// Storage: `EthereumSystem::Channels` (r:1 w:0)
114 /// Proof: `EthereumSystem::Channels` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
115 /// Storage: `EthereumSystem::PricingParameters` (r:1 w:0)
116 /// Proof: `EthereumSystem::PricingParameters` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
117 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
118 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(136), added: 2611, mode: `MaxEncodedLen`)
119 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
120 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
121 /// Storage: `MessageQueue::Pages` (r:0 w:1)
122 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105549), added: 108024, mode: `MaxEncodedLen`)
123 fn set_token_transfer_fees() -> Weight {
124 // Proof Size summary in bytes:
125 // Measured: `218`
126 // Estimated: `3601`
127 // Minimum execution time: 31_403_000 picoseconds.
128 Weight::from_parts(32_813_000, 0)
129 .saturating_add(Weight::from_parts(0, 3601))
130 .saturating_add(T::DbWeight::get().reads(4))
131 .saturating_add(T::DbWeight::get().writes(3))
132 }
133 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
134 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
135 /// Storage: `EthereumSystem::ForeignToNativeId` (r:1 w:1)
136 /// Proof: `EthereumSystem::ForeignToNativeId` (`max_values`: None, `max_size`: Some(650), added: 3125, mode: `MaxEncodedLen`)
137 /// Storage: `EthereumSystem::Channels` (r:1 w:0)
138 /// Proof: `EthereumSystem::Channels` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
139 /// Storage: `EthereumSystem::PricingParameters` (r:1 w:0)
140 /// Proof: `EthereumSystem::PricingParameters` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
141 /// Storage: `EthereumOutboundQueue::OperatingMode` (r:1 w:0)
142 /// Proof: `EthereumOutboundQueue::OperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
143 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
144 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(136), added: 2611, mode: `MaxEncodedLen`)
145 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
146 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
147 /// Storage: `MessageQueue::Pages` (r:0 w:1)
148 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105549), added: 108024, mode: `MaxEncodedLen`)
149 /// Storage: `EthereumSystem::NativeToForeignId` (r:0 w:1)
150 /// Proof: `EthereumSystem::NativeToForeignId` (`max_values`: None, `max_size`: Some(650), added: 3125, mode: `MaxEncodedLen`)
151 fn register_token() -> Weight {
152 // Proof Size summary in bytes:
153 // Measured: `293`
154 // Estimated: `4115`
155 // Minimum execution time: 55_903_000 picoseconds.
156 Weight::from_parts(58_248_000, 0)
157 .saturating_add(Weight::from_parts(0, 4115))
158 .saturating_add(T::DbWeight::get().reads(7))
159 .saturating_add(T::DbWeight::get().writes(5))
160 }
161}