1
// Copyright 2025 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8

            
9
// Moonbeam is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13

            
14
// You should have received a copy of the GNU General Public License
15
// along with Moonbeam.  If not, see <http://www.gnu.org/licenses/>.
16

            
17

            
18
//! Autogenerated weights for `pallet_bridge_parachains`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 51.0.0
21
//! DATE: 2026-02-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/production/wbuild/moonbeam-runtime/moonbeam_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=pallet_bridge_parachains
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --disable-log-color
42
// --output=./runtime/moonbeam/src/weights
43

            
44
#![cfg_attr(rustfmt, rustfmt_skip)]
45
#![allow(unused_parens)]
46
#![allow(unused_imports)]
47

            
48
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
49
use sp_std::marker::PhantomData;
50

            
51
/// Weights for `pallet_bridge_parachains`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_bridge_parachains::WeightInfo for WeightInfo<T> {
54
	/// Storage: `BridgeKusamaParachains::PalletOperatingMode` (r:1 w:0)
55
	/// Proof: `BridgeKusamaParachains::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
56
	/// Storage: `BridgeKusamaGrandpa::ImportedHeaders` (r:1 w:0)
57
	/// Proof: `BridgeKusamaGrandpa::ImportedHeaders` (`max_values`: Some(1024), `max_size`: Some(68), added: 1553, mode: `MaxEncodedLen`)
58
	/// Storage: `BridgeKusamaParachains::ParasInfo` (r:1 w:1)
59
	/// Proof: `BridgeKusamaParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`)
60
	/// Storage: `BridgeKusamaParachains::ImportedParaHashes` (r:1 w:1)
61
	/// Proof: `BridgeKusamaParachains::ImportedParaHashes` (`max_values`: Some(64), `max_size`: Some(64), added: 1054, mode: `MaxEncodedLen`)
62
	/// Storage: `BridgeKusamaGrandpa::FreeHeadersRemaining` (r:1 w:1)
63
	/// Proof: `BridgeKusamaGrandpa::FreeHeadersRemaining` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
64
	/// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:0 w:1)
65
	/// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(64), `max_size`: Some(196), added: 1186, mode: `MaxEncodedLen`)
66
	/// The range of component `p` is `[1, 2]`.
67
	fn submit_parachain_heads_with_n_parachains(_p: u32, ) -> Weight {
68
		// Proof Size summary in bytes:
69
		//  Measured:  `454`
70
		//  Estimated: `2543`
71
		// Minimum execution time: 42_073_000 picoseconds.
72
		Weight::from_parts(44_394_075, 2543)
73
			.saturating_add(T::DbWeight::get().reads(5_u64))
74
			.saturating_add(T::DbWeight::get().writes(4_u64))
75
	}
76
	/// Storage: `BridgeKusamaParachains::PalletOperatingMode` (r:1 w:0)
77
	/// Proof: `BridgeKusamaParachains::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
78
	/// Storage: `BridgeKusamaGrandpa::ImportedHeaders` (r:1 w:0)
79
	/// Proof: `BridgeKusamaGrandpa::ImportedHeaders` (`max_values`: Some(1024), `max_size`: Some(68), added: 1553, mode: `MaxEncodedLen`)
80
	/// Storage: `BridgeKusamaParachains::ParasInfo` (r:1 w:1)
81
	/// Proof: `BridgeKusamaParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`)
82
	/// Storage: `BridgeKusamaParachains::ImportedParaHashes` (r:1 w:1)
83
	/// Proof: `BridgeKusamaParachains::ImportedParaHashes` (`max_values`: Some(64), `max_size`: Some(64), added: 1054, mode: `MaxEncodedLen`)
84
	/// Storage: `BridgeKusamaGrandpa::FreeHeadersRemaining` (r:1 w:1)
85
	/// Proof: `BridgeKusamaGrandpa::FreeHeadersRemaining` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
86
	/// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:0 w:1)
87
	/// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(64), `max_size`: Some(196), added: 1186, mode: `MaxEncodedLen`)
88
	fn submit_parachain_heads_with_1kb_proof() -> Weight {
89
		// Proof Size summary in bytes:
90
		//  Measured:  `454`
91
		//  Estimated: `2543`
92
		// Minimum execution time: 43_626_000 picoseconds.
93
		Weight::from_parts(44_794_000, 2543)
94
			.saturating_add(T::DbWeight::get().reads(5_u64))
95
			.saturating_add(T::DbWeight::get().writes(4_u64))
96
	}
97
	/// Storage: `BridgeKusamaParachains::PalletOperatingMode` (r:1 w:0)
98
	/// Proof: `BridgeKusamaParachains::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
99
	/// Storage: `BridgeKusamaGrandpa::ImportedHeaders` (r:1 w:0)
100
	/// Proof: `BridgeKusamaGrandpa::ImportedHeaders` (`max_values`: Some(1024), `max_size`: Some(68), added: 1553, mode: `MaxEncodedLen`)
101
	/// Storage: `BridgeKusamaParachains::ParasInfo` (r:1 w:1)
102
	/// Proof: `BridgeKusamaParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`)
103
	/// Storage: `BridgeKusamaParachains::ImportedParaHashes` (r:1 w:1)
104
	/// Proof: `BridgeKusamaParachains::ImportedParaHashes` (`max_values`: Some(64), `max_size`: Some(64), added: 1054, mode: `MaxEncodedLen`)
105
	/// Storage: `BridgeKusamaGrandpa::FreeHeadersRemaining` (r:1 w:1)
106
	/// Proof: `BridgeKusamaGrandpa::FreeHeadersRemaining` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
107
	/// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:0 w:1)
108
	/// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(64), `max_size`: Some(196), added: 1186, mode: `MaxEncodedLen`)
109
	fn submit_parachain_heads_with_16kb_proof() -> Weight {
110
		// Proof Size summary in bytes:
111
		//  Measured:  `454`
112
		//  Estimated: `2543`
113
		// Minimum execution time: 70_755_000 picoseconds.
114
		Weight::from_parts(73_308_000, 2543)
115
			.saturating_add(T::DbWeight::get().reads(5_u64))
116
			.saturating_add(T::DbWeight::get().writes(4_u64))
117
	}
118
}