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