people_rococo_runtime/weights/frame_system_extensions.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Cumulus.
3// SPDX-License-Identifier: Apache-2.0
4
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17//! Autogenerated weights for `frame_system_extensions`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20//! DATE: 2023-12-21, STEPS: `2`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `gleipnir`, CPU: `AMD Ryzen 9 7900X 12-Core Processor`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("people-rococo-dev")`, DB CACHE: 1024
24
25// Executed Command:
26// ./target/release/polkadot-parachain
27// benchmark
28// pallet
29// --wasm-execution=compiled
30// --pallet=frame_system_extensions
31// --no-storage-info
32// --no-median-slopes
33// --no-min-squares
34// --extrinsic=*
35// --steps=2
36// --repeat=2
37// --json
38// --header=./cumulus/file_header.txt
39// --output=./cumulus/parachains/runtimes/people/people-rococo/src/weights/
40// --chain=people-rococo-dev
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `frame_system_extensions`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> frame_system::ExtensionsWeightInfo for WeightInfo<T> {
53 /// Storage: `System::BlockHash` (r:1 w:0)
54 /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
55 fn check_genesis() -> Weight {
56 // Proof Size summary in bytes:
57 // Measured: `54`
58 // Estimated: `3509`
59 // Minimum execution time: 3_637_000 picoseconds.
60 Weight::from_parts(6_382_000, 0)
61 .saturating_add(Weight::from_parts(0, 3509))
62 .saturating_add(T::DbWeight::get().reads(1))
63 }
64 /// Storage: `System::BlockHash` (r:1 w:0)
65 /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
66 fn check_mortality_mortal_transaction() -> Weight {
67 // Proof Size summary in bytes:
68 // Measured: `92`
69 // Estimated: `3509`
70 // Minimum execution time: 5_841_000 picoseconds.
71 Weight::from_parts(8_776_000, 0)
72 .saturating_add(Weight::from_parts(0, 3509))
73 .saturating_add(T::DbWeight::get().reads(1))
74 }
75 /// Storage: `System::BlockHash` (r:1 w:0)
76 /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
77 fn check_mortality_immortal_transaction() -> Weight {
78 // Proof Size summary in bytes:
79 // Measured: `92`
80 // Estimated: `3509`
81 // Minimum execution time: 5_841_000 picoseconds.
82 Weight::from_parts(8_776_000, 0)
83 .saturating_add(Weight::from_parts(0, 3509))
84 .saturating_add(T::DbWeight::get().reads(1))
85 }
86 fn check_non_zero_sender() -> Weight {
87 // Proof Size summary in bytes:
88 // Measured: `0`
89 // Estimated: `0`
90 // Minimum execution time: 561_000 picoseconds.
91 Weight::from_parts(2_705_000, 0)
92 .saturating_add(Weight::from_parts(0, 0))
93 }
94 fn check_nonce() -> Weight {
95 // Proof Size summary in bytes:
96 // Measured: `0`
97 // Estimated: `0`
98 // Minimum execution time: 3_316_000 picoseconds.
99 Weight::from_parts(5_771_000, 0)
100 .saturating_add(Weight::from_parts(0, 0))
101 }
102 fn check_spec_version() -> Weight {
103 // Proof Size summary in bytes:
104 // Measured: `0`
105 // Estimated: `0`
106 // Minimum execution time: 511_000 picoseconds.
107 Weight::from_parts(2_575_000, 0)
108 .saturating_add(Weight::from_parts(0, 0))
109 }
110 fn check_tx_version() -> Weight {
111 // Proof Size summary in bytes:
112 // Measured: `0`
113 // Estimated: `0`
114 // Minimum execution time: 501_000 picoseconds.
115 Weight::from_parts(2_595_000, 0)
116 .saturating_add(Weight::from_parts(0, 0))
117 }
118 /// Storage: `System::AllExtrinsicsLen` (r:1 w:1)
119 /// Proof: `System::AllExtrinsicsLen` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
120 /// Storage: `System::BlockWeight` (r:1 w:1)
121 /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`)
122 fn check_weight() -> Weight {
123 // Proof Size summary in bytes:
124 // Measured: `24`
125 // Estimated: `1533`
126 // Minimum execution time: 3_687_000 picoseconds.
127 Weight::from_parts(6_192_000, 0)
128 .saturating_add(Weight::from_parts(0, 1533))
129 .saturating_add(T::DbWeight::get().reads(2))
130 .saturating_add(T::DbWeight::get().writes(2))
131 }
132 /// Storage: `System::AllExtrinsicsLen` (r:1 w:1)
133 /// Proof: `System::AllExtrinsicsLen` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
134 /// Storage: `System::BlockWeight` (r:1 w:1)
135 /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`)
136 fn weight_reclaim() -> Weight {
137 // Proof Size summary in bytes:
138 // Measured: `24`
139 // Estimated: `1533`
140 // Minimum execution time: 3_687_000 picoseconds.
141 Weight::from_parts(6_192_000, 0)
142 .saturating_add(Weight::from_parts(0, 1533))
143 .saturating_add(T::DbWeight::get().reads(2))
144 .saturating_add(T::DbWeight::get().writes(2))
145 }
146}