pallet_partner_chains_bridge/
weights.rs

1
2//! Autogenerated weights for pallet_partner_chains_bridge
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 50.0.0
5//! DATE: 2025-08-25, STEPS: `500`, REPEAT: `200`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `Nikolaoss-MacBook-Pro.local`, CPU: `<UNKNOWN>`
8//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
9
10// Executed Command:
11// frame-omni-bencher
12// v1
13// benchmark
14// pallet
15// --runtime
16// target/release/wbuild/partner-chains-demo-runtime/partner_chains_demo_runtime.compact.compressed.wasm
17// --pallet
18// pallet_partner_chains_bridge
19// --extrinsic
20// *
21// --steps=500
22// --repeat=200
23// --wasm-execution=compiled
24// --output
25// toolkit/bridge/pallet/src/weights.rs
26// --template
27// .maintain/frame-weight-template.hbs
28
29#![cfg_attr(rustfmt, rustfmt_skip)]
30#![allow(unused_parens)]
31#![allow(unused_imports)]
32#![allow(missing_docs)]
33
34use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
35use core::marker::PhantomData;
36
37/// Weight functions needed for pallet_partner_chains_bridge.
38pub trait WeightInfo {
39	fn handle_transfers(t: u32, s: u32, ) -> Weight;
40	fn set_main_chain_scripts() -> Weight;
41}
42
43/// Weights for pallet_partner_chains_bridge using the Substrate node and recommended hardware.
44pub struct SubstrateWeight<T>(PhantomData<T>);
45impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
46	/// The range of component `t` is `[1, 256]`.
47	/// The range of component `s` is `[1, 256]`.
48	fn handle_transfers(t: u32, s: u32, ) -> Weight {
49		// Proof Size summary in bytes:
50		//  Measured:  `0`
51		//  Estimated: `0`
52		// Minimum execution time: 1_000_000 picoseconds.
53		Weight::from_parts(1_914_402, 0)
54			// Standard Error: 8
55			.saturating_add(Weight::from_parts(166, 0).saturating_mul(t.into()))
56			// Standard Error: 8
57			.saturating_add(Weight::from_parts(127, 0).saturating_mul(s.into()))
58	}
59	/// Storage: `Bridge::MainChainScriptsConfiguration` (r:0 w:1)
60	/// Proof: `Bridge::MainChainScriptsConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
61	fn set_main_chain_scripts() -> Weight {
62		// Proof Size summary in bytes:
63		//  Measured:  `0`
64		//  Estimated: `0`
65		// Minimum execution time: 1_000_000 picoseconds.
66		Weight::from_parts(2_000_000, 0)
67			.saturating_add(T::DbWeight::get().writes(1_u64))
68	}
69}
70
71// For backwards compatibility and tests
72impl WeightInfo for () {
73	/// The range of component `t` is `[1, 256]`.
74	/// The range of component `s` is `[1, 256]`.
75	fn handle_transfers(t: u32, s: u32, ) -> Weight {
76		// Proof Size summary in bytes:
77		//  Measured:  `0`
78		//  Estimated: `0`
79		// Minimum execution time: 1_000_000 picoseconds.
80		Weight::from_parts(1_914_402, 0)
81			// Standard Error: 8
82			.saturating_add(Weight::from_parts(166, 0).saturating_mul(t.into()))
83			// Standard Error: 8
84			.saturating_add(Weight::from_parts(127, 0).saturating_mul(s.into()))
85	}
86	/// Storage: `Bridge::MainChainScriptsConfiguration` (r:0 w:1)
87	/// Proof: `Bridge::MainChainScriptsConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88	fn set_main_chain_scripts() -> Weight {
89		// Proof Size summary in bytes:
90		//  Measured:  `0`
91		//  Estimated: `0`
92		// Minimum execution time: 1_000_000 picoseconds.
93		Weight::from_parts(2_000_000, 0)
94			.saturating_add(RocksDbWeight::get().writes(1_u64))
95	}
96}