referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
frame_system_extensions.rs

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