common_runtime/weights/
cumulus_pallet_weight_reclaim.rs

1//! Autogenerated weights for cumulus_pallet_weight_reclaim
2//!
3//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
4//! DATE: 2025-08-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
5//! WORST CASE MAP SIZE: `1000000`
6//! HOSTNAME: `ip-10-173-5-194`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
7//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
8
9// Executed Command:
10// ./scripts/../target/release/frequency
11// benchmark
12// pallet
13// --pallet=cumulus_pallet_weight_reclaim
14// --extrinsic
15// *
16// --heap-pages=4096
17// --steps=50
18// --repeat=20
19// --output=./scripts/../runtime/common/src/weights
20// --template=./scripts/../.maintain/runtime-weight-template.hbs
21// --additional-trie-layers=3
22// --runtime=./scripts/../target/release/wbuild/frequency-runtime/frequency_runtime.wasm
23// --genesis-builder=runtime
24
25#![cfg_attr(rustfmt, rustfmt_skip)]
26#![allow(unused_parens)]
27#![allow(unused_imports)]
28#![allow(missing_docs)]
29
30use frame_support::{traits::Get, weights::Weight};
31use core::marker::PhantomData;
32
33/// Weights for `cumulus_pallet_weight_reclaim` using the Substrate node and recommended hardware.
34pub struct SubstrateWeight<T>(PhantomData<T>);
35impl<T: frame_system::Config> cumulus_pallet_weight_reclaim::WeightInfo for SubstrateWeight<T> {
36	fn storage_weight_reclaim() -> Weight {
37		// Proof Size summary in bytes:
38		//  Measured:  `0`
39		//  Estimated: `0`
40		// Minimum execution time: 4_759_000 picoseconds.
41		Weight::from_parts(5_048_000, 0)
42	}
43}
44
45
46#[cfg(test)]
47mod tests {
48  use frame_support::{traits::Get, weights::Weight, dispatch::DispatchClass};
49  use crate::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO};
50  use crate::weights::extrinsic_weights::ExtrinsicBaseWeight;
51
52  #[allow(dead_code)]
53  struct BlockWeights;
54  impl Get<frame_system::limits::BlockWeights> for BlockWeights {
55  	fn get() -> frame_system::limits::BlockWeights {
56  		frame_system::limits::BlockWeights::builder()
57  			.base_block(Weight::zero())
58  			.for_class(DispatchClass::all(), |weights| {
59  				weights.base_extrinsic = ExtrinsicBaseWeight::get();
60  			})
61  			.for_class(DispatchClass::non_mandatory(), |weights| {
62  				weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);
63  			})
64  			.build_or_panic()
65  	}
66  }
67
68}