snowbridge_pallet_system/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 upgrade() -> Weight;
36 fn set_operating_mode() -> Weight;
37 fn set_token_transfer_fees() -> Weight;
38 fn set_pricing_parameters() -> Weight;
39 fn register_token() -> Weight;
40}
41
42// For backwards compatibility and tests.
43impl WeightInfo for () {
44 /// Storage: ParachainInfo ParachainId (r:1 w:0)
45 /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
46 /// Storage: EthereumOutboundQueue PalletOperatingMode (r:1 w:0)
47 /// Proof: EthereumOutboundQueue PalletOperatingMode (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
48 /// Storage: MessageQueue BookStateFor (r:1 w:1)
49 /// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
50 /// Storage: MessageQueue ServiceHead (r:1 w:1)
51 /// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
52 /// Storage: MessageQueue Pages (r:0 w:1)
53 /// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
54 fn upgrade() -> Weight {
55 // Proof Size summary in bytes:
56 // Measured: `80`
57 // Estimated: `3517`
58 // Minimum execution time: 44_000_000 picoseconds.
59 Weight::from_parts(44_000_000, 3517)
60 .saturating_add(RocksDbWeight::get().reads(4_u64))
61 .saturating_add(RocksDbWeight::get().writes(3_u64))
62 }
63 /// Storage: ParachainInfo ParachainId (r:1 w:0)
64 /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
65 /// Storage: EthereumOutboundQueue PalletOperatingMode (r:1 w:0)
66 /// Proof: EthereumOutboundQueue PalletOperatingMode (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
67 /// Storage: MessageQueue BookStateFor (r:1 w:1)
68 /// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
69 /// Storage: MessageQueue ServiceHead (r:1 w:1)
70 /// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
71 /// Storage: MessageQueue Pages (r:0 w:1)
72 /// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
73 fn set_operating_mode() -> Weight {
74 // Proof Size summary in bytes:
75 // Measured: `80`
76 // Estimated: `3517`
77 // Minimum execution time: 31_000_000 picoseconds.
78 Weight::from_parts(31_000_000, 3517)
79 .saturating_add(RocksDbWeight::get().reads(4_u64))
80 .saturating_add(RocksDbWeight::get().writes(3_u64))
81 }
82 /// Storage: ParachainInfo ParachainId (r:1 w:0)
83 /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
84 /// Storage: EthereumOutboundQueue PalletOperatingMode (r:1 w:0)
85 /// Proof: EthereumOutboundQueue PalletOperatingMode (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
86 /// Storage: MessageQueue BookStateFor (r:1 w:1)
87 /// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
88 /// Storage: MessageQueue ServiceHead (r:1 w:1)
89 /// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
90 /// Storage: MessageQueue Pages (r:0 w:1)
91 /// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
92 fn set_token_transfer_fees() -> Weight {
93 // Proof Size summary in bytes:
94 // Measured: `80`
95 // Estimated: `3517`
96 // Minimum execution time: 31_000_000 picoseconds.
97 Weight::from_parts(42_000_000, 3517)
98 .saturating_add(RocksDbWeight::get().reads(4_u64))
99 .saturating_add(RocksDbWeight::get().writes(3_u64))
100 }
101
102 /// Storage: ParachainInfo ParachainId (r:1 w:0)
103 /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
104 /// Storage: EthereumOutboundQueue PalletOperatingMode (r:1 w:0)
105 /// Proof: EthereumOutboundQueue PalletOperatingMode (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
106 /// Storage: MessageQueue BookStateFor (r:1 w:1)
107 /// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
108 /// Storage: MessageQueue ServiceHead (r:1 w:1)
109 /// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
110 /// Storage: MessageQueue Pages (r:0 w:1)
111 /// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
112 fn set_pricing_parameters() -> Weight {
113 // Proof Size summary in bytes:
114 // Measured: `80`
115 // Estimated: `3517`
116 // Minimum execution time: 31_000_000 picoseconds.
117 Weight::from_parts(42_000_000, 3517)
118 .saturating_add(RocksDbWeight::get().reads(4_u64))
119 .saturating_add(RocksDbWeight::get().writes(3_u64))
120 }
121
122 fn register_token() -> Weight {
123 // Proof Size summary in bytes:
124 // Measured: `256`
125 // Estimated: `6044`
126 // Minimum execution time: 45_000_000 picoseconds.
127 Weight::from_parts(45_000_000, 6044)
128 .saturating_add(RocksDbWeight::get().reads(5_u64))
129 .saturating_add(RocksDbWeight::get().writes(3_u64))
130 }
131}