Skip to main content

topsoil_core/system/extensions/
weights.rs

1// This file is part of Soil.
2
3// Copyright (C) Soil contributors.
4// Copyright (C) Parity Technologies (UK) Ltd.
5// SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-or-later WITH Classpath-exception-2.0
6
7//! Autogenerated weights for `frame_system_extensions`
8//!
9//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
10//! DATE: 2024-11-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
11//! WORST CASE MAP SIZE: `1000000`
12//! HOSTNAME: `runner-wiukf8gn-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
13//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
14
15// Executed Command:
16// ./target/production/soil-test-staging-node
17// benchmark
18// pallet
19// --chain=dev
20// --steps=50
21// --repeat=20
22// --pallet=frame_system_extensions
23// --no-storage-info
24// --no-median-slopes
25// --no-min-squares
26// --extrinsic=*
27// --wasm-execution=compiled
28// --heap-pages=4096
29// --output=./substrate/frame/system/src/extensions/weights.rs
30// --header=./substrate/HEADER
31// --template=./substrate/.maintain/frame-weight-template.hbs
32
33#![cfg_attr(rustfmt, rustfmt_skip)]
34#![allow(unused_parens)]
35#![allow(unused_imports)]
36#![allow(missing_docs)]
37
38use topsoil_core::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
39use core::marker::PhantomData;
40
41/// Weight functions needed for `frame_system_extensions`.
42pub trait WeightInfo {
43	fn check_genesis() -> Weight;
44	fn check_mortality_mortal_transaction() -> Weight;
45	fn check_mortality_immortal_transaction() -> Weight;
46	fn check_non_zero_sender() -> Weight;
47	fn check_nonce() -> Weight;
48	fn check_spec_version() -> Weight;
49	fn check_tx_version() -> Weight;
50	fn check_weight() -> Weight;
51	fn weight_reclaim() -> Weight;
52}
53
54/// Weights for `frame_system_extensions` using the Substrate node and recommended hardware.
55pub struct SubstrateWeight<T>(PhantomData<T>);
56impl<T: crate::system::Config> WeightInfo for SubstrateWeight<T> {
57	/// Storage: `System::BlockHash` (r:1 w:0)
58	/// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
59	fn check_genesis() -> Weight {
60		// Proof Size summary in bytes:
61		//  Measured:  `30`
62		//  Estimated: `3509`
63		// Minimum execution time: 3_388_000 picoseconds.
64		Weight::from_parts(3_577_000, 3509)
65			.saturating_add(T::DbWeight::get().reads(1_u64))
66	}
67	/// Storage: `System::BlockHash` (r:1 w:0)
68	/// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
69	fn check_mortality_mortal_transaction() -> Weight {
70		// Proof Size summary in bytes:
71		//  Measured:  `68`
72		//  Estimated: `3509`
73		// Minimum execution time: 6_442_000 picoseconds.
74		Weight::from_parts(6_703_000, 3509)
75			.saturating_add(T::DbWeight::get().reads(1_u64))
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:  `68`
82		//  Estimated: `3509`
83		// Minimum execution time: 6_357_000 picoseconds.
84		Weight::from_parts(6_605_000, 3509)
85			.saturating_add(T::DbWeight::get().reads(1_u64))
86	}
87	fn check_non_zero_sender() -> Weight {
88		// Proof Size summary in bytes:
89		//  Measured:  `0`
90		//  Estimated: `0`
91		// Minimum execution time: 457_000 picoseconds.
92		Weight::from_parts(570_000, 0)
93	}
94	/// Storage: `System::Account` (r:1 w:1)
95	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
96	fn check_nonce() -> Weight {
97		// Proof Size summary in bytes:
98		//  Measured:  `101`
99		//  Estimated: `3593`
100		// Minimum execution time: 6_936_000 picoseconds.
101		Weight::from_parts(7_261_000, 3593)
102			.saturating_add(T::DbWeight::get().reads(1_u64))
103			.saturating_add(T::DbWeight::get().writes(1_u64))
104	}
105	fn check_spec_version() -> Weight {
106		// Proof Size summary in bytes:
107		//  Measured:  `0`
108		//  Estimated: `0`
109		// Minimum execution time: 336_000 picoseconds.
110		Weight::from_parts(430_000, 0)
111	}
112	fn check_tx_version() -> Weight {
113		// Proof Size summary in bytes:
114		//  Measured:  `0`
115		//  Estimated: `0`
116		// Minimum execution time: 348_000 picoseconds.
117		Weight::from_parts(455_000, 0)
118	}
119	fn check_weight() -> Weight {
120		// Proof Size summary in bytes:
121		//  Measured:  `0`
122		//  Estimated: `0`
123		// Minimum execution time: 2_887_000 picoseconds.
124		Weight::from_parts(3_006_000, 0)
125	}
126	/// Storage: `System::AllExtrinsicsLen` (r:1 w:1)
127	/// Proof: `System::AllExtrinsicsLen` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
128	fn weight_reclaim() -> Weight {
129		// Proof Size summary in bytes:
130		//  Measured:  `24`
131		//  Estimated: `1489`
132		// Minimum execution time: 4_375_000 picoseconds.
133		Weight::from_parts(4_747_000, 1489)
134			.saturating_add(T::DbWeight::get().reads(1_u64))
135			.saturating_add(T::DbWeight::get().writes(1_u64))
136	}
137}
138
139// For backwards compatibility and tests.
140impl WeightInfo for () {
141	/// Storage: `System::BlockHash` (r:1 w:0)
142	/// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
143	fn check_genesis() -> Weight {
144		// Proof Size summary in bytes:
145		//  Measured:  `30`
146		//  Estimated: `3509`
147		// Minimum execution time: 3_388_000 picoseconds.
148		Weight::from_parts(3_577_000, 3509)
149			.saturating_add(RocksDbWeight::get().reads(1_u64))
150	}
151	/// Storage: `System::BlockHash` (r:1 w:0)
152	/// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
153	fn check_mortality_mortal_transaction() -> Weight {
154		// Proof Size summary in bytes:
155		//  Measured:  `68`
156		//  Estimated: `3509`
157		// Minimum execution time: 6_442_000 picoseconds.
158		Weight::from_parts(6_703_000, 3509)
159			.saturating_add(RocksDbWeight::get().reads(1_u64))
160	}
161	/// Storage: `System::BlockHash` (r:1 w:0)
162	/// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
163	fn check_mortality_immortal_transaction() -> Weight {
164		// Proof Size summary in bytes:
165		//  Measured:  `68`
166		//  Estimated: `3509`
167		// Minimum execution time: 6_357_000 picoseconds.
168		Weight::from_parts(6_605_000, 3509)
169			.saturating_add(RocksDbWeight::get().reads(1_u64))
170	}
171	fn check_non_zero_sender() -> Weight {
172		// Proof Size summary in bytes:
173		//  Measured:  `0`
174		//  Estimated: `0`
175		// Minimum execution time: 457_000 picoseconds.
176		Weight::from_parts(570_000, 0)
177	}
178	/// Storage: `System::Account` (r:1 w:1)
179	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
180	fn check_nonce() -> Weight {
181		// Proof Size summary in bytes:
182		//  Measured:  `101`
183		//  Estimated: `3593`
184		// Minimum execution time: 6_936_000 picoseconds.
185		Weight::from_parts(7_261_000, 3593)
186			.saturating_add(RocksDbWeight::get().reads(1_u64))
187			.saturating_add(RocksDbWeight::get().writes(1_u64))
188	}
189	fn check_spec_version() -> Weight {
190		// Proof Size summary in bytes:
191		//  Measured:  `0`
192		//  Estimated: `0`
193		// Minimum execution time: 336_000 picoseconds.
194		Weight::from_parts(430_000, 0)
195	}
196	fn check_tx_version() -> Weight {
197		// Proof Size summary in bytes:
198		//  Measured:  `0`
199		//  Estimated: `0`
200		// Minimum execution time: 348_000 picoseconds.
201		Weight::from_parts(455_000, 0)
202	}
203	fn check_weight() -> Weight {
204		// Proof Size summary in bytes:
205		//  Measured:  `0`
206		//  Estimated: `0`
207		// Minimum execution time: 2_887_000 picoseconds.
208		Weight::from_parts(3_006_000, 0)
209	}
210	/// Storage: `System::AllExtrinsicsLen` (r:1 w:1)
211	/// Proof: `System::AllExtrinsicsLen` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
212	fn weight_reclaim() -> Weight {
213		// Proof Size summary in bytes:
214		//  Measured:  `24`
215		//  Estimated: `1489`
216		// Minimum execution time: 4_375_000 picoseconds.
217		Weight::from_parts(4_747_000, 1489)
218			.saturating_add(RocksDbWeight::get().reads(1_u64))
219			.saturating_add(RocksDbWeight::get().writes(1_u64))
220	}
221}