bridge_hub_westend_runtime/weights/snowbridge_pallet_system_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_system`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
19//! DATE: 2023-10-09, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `crake.local`, CPU: `<UNKNOWN>`
22//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("bridge-hub-rococo-dev"), DB CACHE: 1024
23
24// Executed Command:
25// target/release/polkadot-parachain
26// benchmark
27// pallet
28// --chain
29// bridge-hub-rococo-dev
30// --pallet=snowbridge_pallet_system
31// --extrinsic=*
32// --execution=wasm
33// --wasm-execution=compiled
34// --output
35// parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/snowbridge_pallet_system.rs
36
37#![cfg_attr(rustfmt, rustfmt_skip)]
38#![allow(unused_parens)]
39#![allow(unused_imports)]
40#![allow(missing_docs)]
41
42use frame_support::{traits::Get, weights::Weight};
43use core::marker::PhantomData;
44
45/// Weight functions for `snowbridge_system`.
46pub struct WeightInfo<T>(PhantomData<T>);
47impl<T: frame_system::Config> snowbridge_pallet_system_v2::WeightInfo for WeightInfo<T> {
48 fn register_token() -> Weight {
49 // Proof Size summary in bytes:
50 // Measured: `256`
51 // Estimated: `6044`
52 // Minimum execution time: 45_000_000 picoseconds.
53 Weight::from_parts(45_000_000, 6044)
54 .saturating_add(T::DbWeight::get().reads(5_u64))
55 .saturating_add(T::DbWeight::get().writes(3_u64))
56 }
57
58 /// Storage: ParachainInfo ParachainId (r:1 w:0)
59 /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
60 /// Storage: EthereumOutboundQueue PalletOperatingMode (r:1 w:0)
61 /// Proof: EthereumOutboundQueue PalletOperatingMode (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
62 /// Storage: MessageQueue BookStateFor (r:1 w:1)
63 /// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
64 /// Storage: MessageQueue ServiceHead (r:1 w:1)
65 /// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
66 /// Storage: MessageQueue Pages (r:0 w:1)
67 /// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
68 fn upgrade() -> Weight {
69 // Proof Size summary in bytes:
70 // Measured: `80`
71 // Estimated: `3517`
72 // Minimum execution time: 47_000_000 picoseconds.
73 Weight::from_parts(47_000_000, 0)
74 .saturating_add(Weight::from_parts(0, 3517))
75 .saturating_add(T::DbWeight::get().reads(4))
76 .saturating_add(T::DbWeight::get().writes(3))
77 }
78
79 /// Storage: ParachainInfo ParachainId (r:1 w:0)
80 /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
81 /// Storage: EthereumOutboundQueue PalletOperatingMode (r:1 w:0)
82 /// Proof: EthereumOutboundQueue PalletOperatingMode (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
83 /// Storage: MessageQueue BookStateFor (r:1 w:1)
84 /// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
85 /// Storage: MessageQueue ServiceHead (r:1 w:1)
86 /// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
87 /// Storage: MessageQueue Pages (r:0 w:1)
88 /// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
89 fn set_operating_mode() -> Weight {
90 // Proof Size summary in bytes:
91 // Measured: `80`
92 // Estimated: `3517`
93 // Minimum execution time: 30_000_000 picoseconds.
94 Weight::from_parts(30_000_000, 0)
95 .saturating_add(Weight::from_parts(0, 3517))
96 .saturating_add(T::DbWeight::get().reads(4))
97 .saturating_add(T::DbWeight::get().writes(3))
98 }
99
100 fn add_tip() -> Weight {
101 // Proof Size summary in bytes:
102 // Measured: `80`
103 // Estimated: `3517`
104 // Minimum execution time: 30_000_000 picoseconds.
105 Weight::from_parts(30_000_000, 0)
106 .saturating_add(Weight::from_parts(0, 3517))
107 .saturating_add(T::DbWeight::get().reads(4))
108 .saturating_add(T::DbWeight::get().writes(3))
109 }
110}