rococo_runtime/weights/frame_system_extensions.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Polkadot is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `frame_system_extensions`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `d3a9aad6f7a3`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/rococo-runtime/rococo_runtime.wasm
32// --pallet=frame_system_extensions
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/rococo/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `frame_system_extensions`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> frame_system::ExtensionsWeightInfo for WeightInfo<T> {
54 fn check_genesis() -> Weight {
55 // Proof Size summary in bytes:
56 // Measured: `30`
57 // Estimated: `0`
58 // Minimum execution time: 3_553_000 picoseconds.
59 Weight::from_parts(3_745_000, 0)
60 .saturating_add(Weight::from_parts(0, 0))
61 }
62 fn check_mortality_mortal_transaction() -> Weight {
63 // Proof Size summary in bytes:
64 // Measured: `68`
65 // Estimated: `0`
66 // Minimum execution time: 6_521_000 picoseconds.
67 Weight::from_parts(6_806_000, 0)
68 .saturating_add(Weight::from_parts(0, 0))
69 }
70 fn check_mortality_immortal_transaction() -> Weight {
71 // Proof Size summary in bytes:
72 // Measured: `68`
73 // Estimated: `0`
74 // Minimum execution time: 6_382_000 picoseconds.
75 Weight::from_parts(6_642_000, 0)
76 .saturating_add(Weight::from_parts(0, 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: 527_000 picoseconds.
83 Weight::from_parts(580_000, 0)
84 .saturating_add(Weight::from_parts(0, 0))
85 }
86 /// Storage: `System::Account` (r:1 w:1)
87 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
88 fn check_nonce() -> Weight {
89 // Proof Size summary in bytes:
90 // Measured: `101`
91 // Estimated: `3593`
92 // Minimum execution time: 6_851_000 picoseconds.
93 Weight::from_parts(7_142_000, 0)
94 .saturating_add(Weight::from_parts(0, 3593))
95 .saturating_add(T::DbWeight::get().reads(1))
96 .saturating_add(T::DbWeight::get().writes(1))
97 }
98 fn check_spec_version() -> Weight {
99 // Proof Size summary in bytes:
100 // Measured: `0`
101 // Estimated: `0`
102 // Minimum execution time: 442_000 picoseconds.
103 Weight::from_parts(508_000, 0)
104 .saturating_add(Weight::from_parts(0, 0))
105 }
106 fn check_tx_version() -> Weight {
107 // Proof Size summary in bytes:
108 // Measured: `0`
109 // Estimated: `0`
110 // Minimum execution time: 400_000 picoseconds.
111 Weight::from_parts(479_000, 0)
112 .saturating_add(Weight::from_parts(0, 0))
113 }
114 fn check_weight() -> Weight {
115 // Proof Size summary in bytes:
116 // Measured: `0`
117 // Estimated: `0`
118 // Minimum execution time: 3_811_000 picoseconds.
119 Weight::from_parts(4_002_000, 0)
120 .saturating_add(Weight::from_parts(0, 0))
121 }
122 fn weight_reclaim() -> Weight {
123 // Proof Size summary in bytes:
124 // Measured: `0`
125 // Estimated: `0`
126 // Minimum execution time: 2_211_000 picoseconds.
127 Weight::from_parts(2_338_000, 0)
128 .saturating_add(Weight::from_parts(0, 0))
129 }
130}