common_runtime/weights/
pallet_utility.rs

1//! Autogenerated weights for pallet_utility
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=pallet_utility
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 `pallet_utility` using the Substrate node and recommended hardware.
34pub struct SubstrateWeight<T>(PhantomData<T>);
35impl<T: frame_system::Config> pallet_utility::WeightInfo for SubstrateWeight<T> {
36	/// The range of component `c` is `[0, 1000]`.
37	fn batch(c: u32, ) -> Weight {
38		// Proof Size summary in bytes:
39		//  Measured:  `0`
40		//  Estimated: `0`
41		// Minimum execution time: 5_287_000 picoseconds.
42		Weight::from_parts(9_692_938, 0)
43			// Standard Error: 1_430
44			.saturating_add(Weight::from_parts(3_256_295, 0).saturating_mul(c.into()))
45	}
46	fn as_derivative() -> Weight {
47		// Proof Size summary in bytes:
48		//  Measured:  `0`
49		//  Estimated: `0`
50		// Minimum execution time: 4_698_000 picoseconds.
51		Weight::from_parts(4_997_000, 0)
52	}
53	/// The range of component `c` is `[0, 1000]`.
54	fn batch_all(c: u32, ) -> Weight {
55		// Proof Size summary in bytes:
56		//  Measured:  `0`
57		//  Estimated: `0`
58		// Minimum execution time: 5_279_000 picoseconds.
59		Weight::from_parts(3_168_307, 0)
60			// Standard Error: 1_547
61			.saturating_add(Weight::from_parts(3_515_170, 0).saturating_mul(c.into()))
62	}
63	fn dispatch_as() -> Weight {
64		// Proof Size summary in bytes:
65		//  Measured:  `0`
66		//  Estimated: `0`
67		// Minimum execution time: 7_342_000 picoseconds.
68		Weight::from_parts(7_544_000, 0)
69	}
70	/// The range of component `c` is `[0, 1000]`.
71	fn force_batch(c: u32, ) -> Weight {
72		// Proof Size summary in bytes:
73		//  Measured:  `0`
74		//  Estimated: `0`
75		// Minimum execution time: 5_382_000 picoseconds.
76		Weight::from_parts(8_585_315, 0)
77			// Standard Error: 1_116
78			.saturating_add(Weight::from_parts(3_255_547, 0).saturating_mul(c.into()))
79	}
80	fn dispatch_as_fallible() -> Weight {
81		// Proof Size summary in bytes:
82		//  Measured:  `0`
83		//  Estimated: `0`
84		// Minimum execution time: 7_520_000 picoseconds.
85		Weight::from_parts(7_677_000, 0)
86	}
87	fn if_else() -> Weight {
88		// Proof Size summary in bytes:
89		//  Measured:  `0`
90		//  Estimated: `0`
91		// Minimum execution time: 9_235_000 picoseconds.
92		Weight::from_parts(9_561_000, 0)
93	}
94}
95
96
97#[cfg(test)]
98mod tests {
99  use frame_support::{traits::Get, weights::Weight, dispatch::DispatchClass};
100  use crate::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO};
101  use crate::weights::extrinsic_weights::ExtrinsicBaseWeight;
102
103  #[allow(dead_code)]
104  struct BlockWeights;
105  impl Get<frame_system::limits::BlockWeights> for BlockWeights {
106  	fn get() -> frame_system::limits::BlockWeights {
107  		frame_system::limits::BlockWeights::builder()
108  			.base_block(Weight::zero())
109  			.for_class(DispatchClass::all(), |weights| {
110  				weights.base_extrinsic = ExtrinsicBaseWeight::get();
111  			})
112  			.for_class(DispatchClass::non_mandatory(), |weights| {
113  				weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);
114  			})
115  			.build_or_panic()
116  	}
117  }
118
119}