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-09-15, 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, ) -> 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	/// Storage: `System::Account` (r:2 w:2)
47	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
48	/// Storage: `Bridge::DataCheckpoint` (r:0 w:1)
49	/// Proof: `Bridge::DataCheckpoint` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
50	/// The range of component `t` is `[1, 256]`.
51	fn handle_transfers(t: u32, ) -> Weight {
52		// Proof Size summary in bytes:
53		//  Measured:  `0`
54		//  Estimated: `6154`
55		// Minimum execution time: 25_000_000 picoseconds.
56		Weight::from_parts(15_716_271, 6154)
57			// Standard Error: 5_249
58			.saturating_add(Weight::from_parts(13_353_768, 0).saturating_mul(t.into()))
59			.saturating_add(T::DbWeight::get().reads(2_u64))
60			.saturating_add(T::DbWeight::get().writes(3_u64))
61	}
62	/// Storage: `Bridge::MainChainScriptsConfiguration` (r:0 w:1)
63	/// Proof: `Bridge::MainChainScriptsConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
64	/// Storage: `Bridge::DataCheckpoint` (r:0 w:1)
65	/// Proof: `Bridge::DataCheckpoint` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
66	fn set_main_chain_scripts() -> Weight {
67		// Proof Size summary in bytes:
68		//  Measured:  `0`
69		//  Estimated: `0`
70		// Minimum execution time: 2_000_000 picoseconds.
71		Weight::from_parts(3_000_000, 0)
72			.saturating_add(T::DbWeight::get().writes(2_u64))
73	}
74}
75
76// For backwards compatibility and tests
77impl WeightInfo for () {
78	/// Storage: `System::Account` (r:2 w:2)
79	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
80	/// Storage: `Bridge::DataCheckpoint` (r:0 w:1)
81	/// Proof: `Bridge::DataCheckpoint` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
82	/// The range of component `t` is `[1, 256]`.
83	fn handle_transfers(t: u32, ) -> Weight {
84		// Proof Size summary in bytes:
85		//  Measured:  `0`
86		//  Estimated: `6154`
87		// Minimum execution time: 25_000_000 picoseconds.
88		Weight::from_parts(15_716_271, 6154)
89			// Standard Error: 5_249
90			.saturating_add(Weight::from_parts(13_353_768, 0).saturating_mul(t.into()))
91			.saturating_add(RocksDbWeight::get().reads(2_u64))
92			.saturating_add(RocksDbWeight::get().writes(3_u64))
93	}
94	/// Storage: `Bridge::MainChainScriptsConfiguration` (r:0 w:1)
95	/// Proof: `Bridge::MainChainScriptsConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96	/// Storage: `Bridge::DataCheckpoint` (r:0 w:1)
97	/// Proof: `Bridge::DataCheckpoint` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98	fn set_main_chain_scripts() -> Weight {
99		// Proof Size summary in bytes:
100		//  Measured:  `0`
101		//  Estimated: `0`
102		// Minimum execution time: 2_000_000 picoseconds.
103		Weight::from_parts(3_000_000, 0)
104			.saturating_add(RocksDbWeight::get().writes(2_u64))
105	}
106}