common_runtime/weights/
frame_system_extensions.rs

1// Copied from: https://github.com/paritytech/polkadot-sdk/blob/polkadot-stable2506-1/substrate/.maintain/frame-weight-template.hbs
2
3// This file is part of Substrate.
4
5// Copyright (C) Parity Technologies (UK) Ltd.
6// SPDX-License-Identifier: Apache-2.0
7
8// Licensed under the Apache License, Version 2.0 (the "License");
9// you may not use this file except in compliance with the License.
10// You may obtain a copy of the License at
11//
12// 	http://www.apache.org/licenses/LICENSE-2.0
13//
14// Unless required by applicable law or agreed to in writing, software
15// distributed under the License is distributed on an "AS IS" BASIS,
16// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17// See the License for the specific language governing permissions and
18// limitations under the License.
19
20
21//! Autogenerated weights for `frame_system_extensions`
22//!
23//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
24//! DATE: 2025-08-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
25//! WORST CASE MAP SIZE: `1000000`
26//! HOSTNAME: `ip-10-173-5-194`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
27//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
28
29// Executed Command:
30// ./scripts/../target/release/frequency
31// benchmark
32// pallet
33// --pallet=frame_system_extensions
34// --extrinsic
35// *
36// --heap-pages=4096
37// --steps=50
38// --repeat=20
39// --output=./scripts/../runtime/common/src/weights
40// --template=./scripts/../.maintain/frame-system-extensions-weight-template.hbs
41// --additional-trie-layers=3
42// --runtime=./scripts/../target/release/wbuild/frequency-runtime/frequency_runtime.wasm
43// --genesis-builder=runtime
44
45#![cfg_attr(rustfmt, rustfmt_skip)]
46#![allow(unused_parens)]
47#![allow(unused_imports)]
48#![allow(missing_docs)]
49#![allow(dead_code)]
50
51use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
52use core::marker::PhantomData;
53
54/// Weights for `frame_system_extensions` using the Substrate node and recommended hardware.
55pub struct WeightInfo<T>(PhantomData<T>);
56impl<T: frame_system::Config> frame_system::ExtensionsWeightInfo for WeightInfo<T> {
57	fn check_genesis() -> Weight {
58		// Proof Size summary in bytes:
59		//  Measured:  `30`
60		//  Estimated: `0`
61		// Minimum execution time: 3_113_000 picoseconds.
62		Weight::from_parts(3_378_000, 0)
63	}
64	fn check_mortality_mortal_transaction() -> Weight {
65		// Proof Size summary in bytes:
66		//  Measured:  `68`
67		//  Estimated: `0`
68		// Minimum execution time: 6_321_000 picoseconds.
69		Weight::from_parts(6_552_000, 0)
70	}
71	fn check_mortality_immortal_transaction() -> Weight {
72		// Proof Size summary in bytes:
73		//  Measured:  `68`
74		//  Estimated: `0`
75		// Minimum execution time: 6_319_000 picoseconds.
76		Weight::from_parts(6_526_000, 0)
77	}
78	fn check_non_zero_sender() -> Weight {
79		// Proof Size summary in bytes:
80		//  Measured:  `0`
81		//  Estimated: `0`
82		// Minimum execution time: 526_000 picoseconds.
83		Weight::from_parts(591_000, 0)
84	}
85	/// Storage: `System::Account` (r:1 w:1)
86	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
87	fn check_nonce() -> Weight {
88		// Proof Size summary in bytes:
89		//  Measured:  `101`
90		//  Estimated: `4088`
91		// Minimum execution time: 8_239_000 picoseconds.
92		Weight::from_parts(8_664_000, 4088)
93			.saturating_add(T::DbWeight::get().reads(1_u64))
94			.saturating_add(T::DbWeight::get().writes(1_u64))
95	}
96	fn check_spec_version() -> Weight {
97		// Proof Size summary in bytes:
98		//  Measured:  `0`
99		//  Estimated: `0`
100		// Minimum execution time: 389_000 picoseconds.
101		Weight::from_parts(445_000, 0)
102	}
103	fn check_tx_version() -> Weight {
104		// Proof Size summary in bytes:
105		//  Measured:  `0`
106		//  Estimated: `0`
107		// Minimum execution time: 412_000 picoseconds.
108		Weight::from_parts(479_000, 0)
109	}
110	fn check_weight() -> Weight {
111		// Proof Size summary in bytes:
112		//  Measured:  `0`
113		//  Estimated: `0`
114		// Minimum execution time: 4_270_000 picoseconds.
115		Weight::from_parts(4_445_000, 0)
116	}
117	fn weight_reclaim() -> Weight {
118		// Proof Size summary in bytes:
119		//  Measured:  `0`
120		//  Estimated: `0`
121		// Minimum execution time: 2_241_000 picoseconds.
122		Weight::from_parts(2_394_000, 0)
123	}
124}