snowbridge_pallet_outbound_queue/weights.rs
1
2//! Autogenerated weights for `snowbridge-pallet-outbound-queue`
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
5//! DATE: 2023-10-19, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `192.168.1.7`, 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=bridge-hub-rococo-dev
15// --pallet=snowbridge-pallet-outbound-queue
16// --extrinsic=*
17// --execution=wasm
18// --wasm-execution=compiled
19// --template
20// ../parachain/templates/module-weight-template.hbs
21// --output
22// ../parachain/pallets/outbound-queue/src/weights.rs
23
24#![cfg_attr(rustfmt, rustfmt_skip)]
25#![allow(unused_parens)]
26#![allow(unused_imports)]
27#![allow(missing_docs)]
28
29use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
30use core::marker::PhantomData;
31
32/// Weight functions needed for `snowbridge-pallet-outbound-queue`.
33pub trait WeightInfo {
34 fn do_process_message() -> Weight;
35 fn commit() -> Weight;
36 fn commit_single() -> Weight;
37}
38
39// For backwards compatibility and tests.
40impl WeightInfo for () {
41 /// Storage: EthereumOutboundQueue MessageLeaves (r:1 w:1)
42 /// Proof Skipped: EthereumOutboundQueue MessageLeaves (max_values: Some(1), max_size: None, mode: Measured)
43 /// Storage: EthereumOutboundQueue PendingHighPriorityMessageCount (r:1 w:1)
44 /// Proof: EthereumOutboundQueue PendingHighPriorityMessageCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
45 /// Storage: EthereumOutboundQueue Nonce (r:1 w:1)
46 /// Proof: EthereumOutboundQueue Nonce (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen)
47 /// Storage: EthereumOutboundQueue Messages (r:1 w:1)
48 /// Proof Skipped: EthereumOutboundQueue Messages (max_values: Some(1), max_size: None, mode: Measured)
49 fn do_process_message() -> Weight {
50 // Proof Size summary in bytes:
51 // Measured: `42`
52 // Estimated: `3485`
53 // Minimum execution time: 39_000_000 picoseconds.
54 Weight::from_parts(39_000_000, 3485)
55 .saturating_add(RocksDbWeight::get().reads(4_u64))
56 .saturating_add(RocksDbWeight::get().writes(4_u64))
57 }
58 /// Storage: EthereumOutboundQueue MessageLeaves (r:1 w:0)
59 /// Proof Skipped: EthereumOutboundQueue MessageLeaves (max_values: Some(1), max_size: None, mode: Measured)
60 /// Storage: System Digest (r:1 w:1)
61 /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
62 fn commit() -> Weight {
63 // Proof Size summary in bytes:
64 // Measured: `1094`
65 // Estimated: `2579`
66 // Minimum execution time: 28_000_000 picoseconds.
67 Weight::from_parts(28_000_000, 2579)
68 .saturating_add(RocksDbWeight::get().reads(2_u64))
69 .saturating_add(RocksDbWeight::get().writes(1_u64))
70 }
71
72 fn commit_single() -> Weight {
73 // Proof Size summary in bytes:
74 // Measured: `1094`
75 // Estimated: `2579`
76 // Minimum execution time: 9_000_000 picoseconds.
77 Weight::from_parts(9_000_000, 1586)
78 .saturating_add(RocksDbWeight::get().reads(2_u64))
79 .saturating_add(RocksDbWeight::get().writes(1_u64))
80 }
81}