moonbeam_runtime/weights/pallet_bridge_parachains.rs
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: 2025-12-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// --output=./runtime/moonbeam/src/weights
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46
47use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
48use sp_std::marker::PhantomData;
49
50/// Weights for `pallet_bridge_parachains`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_bridge_parachains::WeightInfo for WeightInfo<T> {
53 /// Storage: `BridgeKusamaParachains::PalletOperatingMode` (r:1 w:0)
54 /// Proof: `BridgeKusamaParachains::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
55 /// Storage: `BridgeKusamaGrandpa::ImportedHeaders` (r:1 w:0)
56 /// Proof: `BridgeKusamaGrandpa::ImportedHeaders` (`max_values`: Some(1024), `max_size`: Some(68), added: 1553, mode: `MaxEncodedLen`)
57 /// Storage: `BridgeKusamaParachains::ParasInfo` (r:1 w:1)
58 /// Proof: `BridgeKusamaParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`)
59 /// Storage: `BridgeKusamaParachains::ImportedParaHashes` (r:1 w:1)
60 /// Proof: `BridgeKusamaParachains::ImportedParaHashes` (`max_values`: Some(64), `max_size`: Some(64), added: 1054, mode: `MaxEncodedLen`)
61 /// Storage: `BridgeKusamaGrandpa::FreeHeadersRemaining` (r:1 w:1)
62 /// Proof: `BridgeKusamaGrandpa::FreeHeadersRemaining` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
63 /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:0 w:1)
64 /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(64), `max_size`: Some(196), added: 1186, mode: `MaxEncodedLen`)
65 /// The range of component `p` is `[1, 2]`.
66 fn submit_parachain_heads_with_n_parachains(p: u32, ) -> Weight {
67 // Proof Size summary in bytes:
68 // Measured: `454`
69 // Estimated: `2543`
70 // Minimum execution time: 42_646_000 picoseconds.
71 Weight::from_parts(44_436_404, 2543)
72 // Standard Error: 120_963
73 .saturating_add(Weight::from_parts(11_697, 0).saturating_mul(p.into()))
74 .saturating_add(T::DbWeight::get().reads(5_u64))
75 .saturating_add(T::DbWeight::get().writes(4_u64))
76 }
77 /// Storage: `BridgeKusamaParachains::PalletOperatingMode` (r:1 w:0)
78 /// Proof: `BridgeKusamaParachains::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
79 /// Storage: `BridgeKusamaGrandpa::ImportedHeaders` (r:1 w:0)
80 /// Proof: `BridgeKusamaGrandpa::ImportedHeaders` (`max_values`: Some(1024), `max_size`: Some(68), added: 1553, mode: `MaxEncodedLen`)
81 /// Storage: `BridgeKusamaParachains::ParasInfo` (r:1 w:1)
82 /// Proof: `BridgeKusamaParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`)
83 /// Storage: `BridgeKusamaParachains::ImportedParaHashes` (r:1 w:1)
84 /// Proof: `BridgeKusamaParachains::ImportedParaHashes` (`max_values`: Some(64), `max_size`: Some(64), added: 1054, mode: `MaxEncodedLen`)
85 /// Storage: `BridgeKusamaGrandpa::FreeHeadersRemaining` (r:1 w:1)
86 /// Proof: `BridgeKusamaGrandpa::FreeHeadersRemaining` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
87 /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:0 w:1)
88 /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(64), `max_size`: Some(196), added: 1186, mode: `MaxEncodedLen`)
89 fn submit_parachain_heads_with_1kb_proof() -> Weight {
90 // Proof Size summary in bytes:
91 // Measured: `454`
92 // Estimated: `2543`
93 // Minimum execution time: 44_346_000 picoseconds.
94 Weight::from_parts(45_153_000, 2543)
95 .saturating_add(T::DbWeight::get().reads(5_u64))
96 .saturating_add(T::DbWeight::get().writes(4_u64))
97 }
98 /// Storage: `BridgeKusamaParachains::PalletOperatingMode` (r:1 w:0)
99 /// Proof: `BridgeKusamaParachains::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
100 /// Storage: `BridgeKusamaGrandpa::ImportedHeaders` (r:1 w:0)
101 /// Proof: `BridgeKusamaGrandpa::ImportedHeaders` (`max_values`: Some(1024), `max_size`: Some(68), added: 1553, mode: `MaxEncodedLen`)
102 /// Storage: `BridgeKusamaParachains::ParasInfo` (r:1 w:1)
103 /// Proof: `BridgeKusamaParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`)
104 /// Storage: `BridgeKusamaParachains::ImportedParaHashes` (r:1 w:1)
105 /// Proof: `BridgeKusamaParachains::ImportedParaHashes` (`max_values`: Some(64), `max_size`: Some(64), added: 1054, mode: `MaxEncodedLen`)
106 /// Storage: `BridgeKusamaGrandpa::FreeHeadersRemaining` (r:1 w:1)
107 /// Proof: `BridgeKusamaGrandpa::FreeHeadersRemaining` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
108 /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:0 w:1)
109 /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(64), `max_size`: Some(196), added: 1186, mode: `MaxEncodedLen`)
110 fn submit_parachain_heads_with_16kb_proof() -> Weight {
111 // Proof Size summary in bytes:
112 // Measured: `454`
113 // Estimated: `2543`
114 // Minimum execution time: 71_039_000 picoseconds.
115 Weight::from_parts(72_645_000, 2543)
116 .saturating_add(T::DbWeight::get().reads(5_u64))
117 .saturating_add(T::DbWeight::get().writes(4_u64))
118 }
119}