referrerpolicy=no-referrer-when-downgrade

pallet_hrmp_para/
weights.rs

1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// 	http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// 	http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_hrmp_para`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2026-11-12, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `67aa66665c8e`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_hrmp_para
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/hrmp/para/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage
62
63#![cfg_attr(rustfmt, rustfmt_skip)]
64#![allow(unused_parens)]
65#![allow(unused_imports)]
66#![allow(missing_docs)]
67#![allow(dead_code)]
68
69use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
70use core::marker::PhantomData;
71
72/// Weight functions needed for `pallet_hrmp_para`.
73pub trait WeightInfo {
74	fn receive_set_deposits() -> Weight;
75	fn receive_release() -> Weight;
76	fn receive_deposit() -> Weight;
77}
78
79/// Weights for `pallet_hrmp_para` using the Substrate node and recommended hardware.
80pub struct SubstrateWeight<T>(PhantomData<T>);
81impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
82	/// Storage: `HrmpPara::Deposits` (r:2 w:2)
83	/// Proof: `HrmpPara::Deposits` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
84	/// Storage: `System::Account` (r:2 w:2)
85	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
86	/// Storage: `Balances::Holds` (r:2 w:2)
87	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(607), added: 3082, mode: `MaxEncodedLen`)
88	fn receive_set_deposits() -> Weight {
89		// Proof Size summary in bytes:
90		//  Measured:  `421`
91		//  Estimated: `7154`
92		// Minimum execution time: 106_887_000 picoseconds.
93		Weight::from_parts(113_055_000, 7154)
94			.saturating_add(T::DbWeight::get().reads(6_u64))
95			.saturating_add(T::DbWeight::get().writes(6_u64))
96	}
97	/// Storage: `HrmpPara::Deposits` (r:2 w:2)
98	/// Proof: `HrmpPara::Deposits` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
99	/// Storage: `System::Account` (r:2 w:2)
100	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
101	/// Storage: `Balances::Holds` (r:2 w:2)
102	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(607), added: 3082, mode: `MaxEncodedLen`)
103	fn receive_release() -> Weight {
104		// Proof Size summary in bytes:
105		//  Measured:  `703`
106		//  Estimated: `7154`
107		// Minimum execution time: 92_680_000 picoseconds.
108		Weight::from_parts(97_556_000, 7154)
109			.saturating_add(T::DbWeight::get().reads(6_u64))
110			.saturating_add(T::DbWeight::get().writes(6_u64))
111	}
112	/// Storage: `HrmpPara::Deposits` (r:1 w:1)
113	/// Proof: `HrmpPara::Deposits` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
114	/// Storage: `Balances::Holds` (r:1 w:1)
115	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(607), added: 3082, mode: `MaxEncodedLen`)
116	/// Storage: `System::Account` (r:1 w:1)
117	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
118	fn receive_deposit() -> Weight {
119		// Proof Size summary in bytes:
120		//  Measured:  `370`
121		//  Estimated: `4072`
122		// Minimum execution time: 83_892_000 picoseconds.
123		Weight::from_parts(87_857_000, 4072)
124			.saturating_add(T::DbWeight::get().reads(3_u64))
125			.saturating_add(T::DbWeight::get().writes(3_u64))
126	}
127}
128
129// For backwards compatibility and tests.
130impl WeightInfo for () {
131	/// Storage: `HrmpPara::Deposits` (r:2 w:2)
132	/// Proof: `HrmpPara::Deposits` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
133	/// Storage: `System::Account` (r:2 w:2)
134	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
135	/// Storage: `Balances::Holds` (r:2 w:2)
136	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(607), added: 3082, mode: `MaxEncodedLen`)
137	fn receive_set_deposits() -> Weight {
138		// Proof Size summary in bytes:
139		//  Measured:  `421`
140		//  Estimated: `7154`
141		// Minimum execution time: 106_887_000 picoseconds.
142		Weight::from_parts(113_055_000, 7154)
143			.saturating_add(RocksDbWeight::get().reads(6_u64))
144			.saturating_add(RocksDbWeight::get().writes(6_u64))
145	}
146	/// Storage: `HrmpPara::Deposits` (r:2 w:2)
147	/// Proof: `HrmpPara::Deposits` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
148	/// Storage: `System::Account` (r:2 w:2)
149	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
150	/// Storage: `Balances::Holds` (r:2 w:2)
151	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(607), added: 3082, mode: `MaxEncodedLen`)
152	fn receive_release() -> Weight {
153		// Proof Size summary in bytes:
154		//  Measured:  `703`
155		//  Estimated: `7154`
156		// Minimum execution time: 92_680_000 picoseconds.
157		Weight::from_parts(97_556_000, 7154)
158			.saturating_add(RocksDbWeight::get().reads(6_u64))
159			.saturating_add(RocksDbWeight::get().writes(6_u64))
160	}
161	/// Storage: `HrmpPara::Deposits` (r:1 w:1)
162	/// Proof: `HrmpPara::Deposits` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
163	/// Storage: `Balances::Holds` (r:1 w:1)
164	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(607), added: 3082, mode: `MaxEncodedLen`)
165	/// Storage: `System::Account` (r:1 w:1)
166	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
167	fn receive_deposit() -> Weight {
168		// Proof Size summary in bytes:
169		//  Measured:  `370`
170		//  Estimated: `4072`
171		// Minimum execution time: 83_892_000 picoseconds.
172		Weight::from_parts(87_857_000, 4072)
173			.saturating_add(RocksDbWeight::get().reads(3_u64))
174			.saturating_add(RocksDbWeight::get().writes(3_u64))
175	}
176}