referrerpolicy=no-referrer-when-downgrade

snowbridge_pallet_outbound_queue_v2/
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	fn submit_delivery_receipt() -> Weight;
38	fn on_initialize() -> Weight;
39	fn process() -> Weight;
40}
41
42// For backwards compatibility and tests.
43impl WeightInfo for () {
44	/// Storage: EthereumOutboundQueue MessageLeaves (r:1 w:1)
45	/// Proof Skipped: EthereumOutboundQueue MessageLeaves (max_values: Some(1), max_size: None, mode: Measured)
46	/// Storage: EthereumOutboundQueue PendingHighPriorityMessageCount (r:1 w:1)
47	/// Proof: EthereumOutboundQueue PendingHighPriorityMessageCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
48	/// Storage: EthereumOutboundQueue Nonce (r:1 w:1)
49	/// Proof: EthereumOutboundQueue Nonce (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen)
50	/// Storage: EthereumOutboundQueue Messages (r:1 w:1)
51	/// Proof Skipped: EthereumOutboundQueue Messages (max_values: Some(1), max_size: None, mode: Measured)
52	fn do_process_message() -> Weight {
53		// Proof Size summary in bytes:
54		//  Measured:  `42`
55		//  Estimated: `3485`
56		// Minimum execution time: 39_000_000 picoseconds.
57		Weight::from_parts(39_000_000, 3485)
58			.saturating_add(RocksDbWeight::get().reads(4_u64))
59			.saturating_add(RocksDbWeight::get().writes(4_u64))
60	}
61	/// Storage: EthereumOutboundQueue MessageLeaves (r:1 w:0)
62	/// Proof Skipped: EthereumOutboundQueue MessageLeaves (max_values: Some(1), max_size: None, mode: Measured)
63	/// Storage: System Digest (r:1 w:1)
64	/// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
65	fn commit() -> Weight {
66		// Proof Size summary in bytes:
67		//  Measured:  `1094`
68		//  Estimated: `2579`
69		// Minimum execution time: 28_000_000 picoseconds.
70		Weight::from_parts(28_000_000, 2579)
71			.saturating_add(RocksDbWeight::get().reads(2_u64))
72			.saturating_add(RocksDbWeight::get().writes(1_u64))
73	}
74
75	fn commit_single() -> Weight {
76		// Proof Size summary in bytes:
77		//  Measured:  `1094`
78		//  Estimated: `2579`
79		// Minimum execution time: 9_000_000 picoseconds.
80		Weight::from_parts(9_000_000, 1586)
81			.saturating_add(RocksDbWeight::get().reads(2_u64))
82			.saturating_add(RocksDbWeight::get().writes(1_u64))
83	}
84
85	fn submit_delivery_receipt() -> Weight {
86		Weight::from_parts(70_000_000, 0)
87			.saturating_add(Weight::from_parts(0, 3601))
88			.saturating_add(RocksDbWeight::get().reads(2))
89			.saturating_add(RocksDbWeight::get().writes(2))
90	}
91
92	fn on_initialize() -> Weight {
93		Weight::from_parts(5_000_000, 0)
94			.saturating_add(RocksDbWeight::get().reads(2))
95			.saturating_add(RocksDbWeight::get().writes(5))
96	}
97
98	fn process() -> Weight {
99		Weight::from_parts(506_000_000, 0)
100			.saturating_add(Weight::from_parts(0, 1493))
101			.saturating_add(RocksDbWeight::get().reads(1))
102			.saturating_add(RocksDbWeight::get().writes(35))
103	}
104}