1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi 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
// Tanssi 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 Tanssi.  If not, see <http://www.gnu.org/licenses/>
16

            
17

            
18
//! Autogenerated weights for frame_system_extensions
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
21
//! DATE: 2025-11-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/container-chain-frontier-node
28
// benchmark
29
// pallet
30
// --wasm-execution=compiled
31
// --pallet
32
// frame_system_extensions
33
// --extrinsic
34
// *
35
// --chain=dev
36
// --steps
37
// 50
38
// --repeat
39
// 20
40
// --template=benchmarking/frame-weight-runtime-template.hbs
41
// --json-file
42
// raw.json
43
// --output
44
// tmp/frontier_template_weights/frame_system_extensions.rs
45

            
46
#![cfg_attr(rustfmt, rustfmt_skip)]
47
#![allow(unused_parens)]
48
#![allow(unused_imports)]
49

            
50
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
51
use core::marker::PhantomData;
52

            
53
/// Weights for frame_system_extensions using the Substrate node and recommended hardware.
54
pub struct SubstrateWeight<T>(PhantomData<T>);
55
impl<T: frame_system::Config> frame_system::ExtensionsWeightInfo for SubstrateWeight<T> {
56
	fn check_genesis() -> Weight {
57
		// Proof Size summary in bytes:
58
		//  Measured:  `54`
59
		//  Estimated: `0`
60
		// Minimum execution time: 5_630_000 picoseconds.
61
		Weight::from_parts(5_791_000, 0)
62
	}
63
	fn check_mortality_mortal_transaction() -> Weight {
64
		// Proof Size summary in bytes:
65
		//  Measured:  `92`
66
		//  Estimated: `0`
67
		// Minimum execution time: 9_179_000 picoseconds.
68
		Weight::from_parts(9_386_000, 0)
69
	}
70
	fn check_mortality_immortal_transaction() -> Weight {
71
		// Proof Size summary in bytes:
72
		//  Measured:  `92`
73
		//  Estimated: `0`
74
		// Minimum execution time: 9_284_000 picoseconds.
75
		Weight::from_parts(9_526_000, 0)
76
	}
77
	fn check_non_zero_sender() -> Weight {
78
		// Proof Size summary in bytes:
79
		//  Measured:  `0`
80
		//  Estimated: `0`
81
		// Minimum execution time: 728_000 picoseconds.
82
		Weight::from_parts(814_000, 0)
83
	}
84
	/// Storage: `System::Account` (r:1 w:1)
85
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
86
	fn check_nonce() -> Weight {
87
		// Proof Size summary in bytes:
88
		//  Measured:  `91`
89
		//  Estimated: `3581`
90
		// Minimum execution time: 10_416_000 picoseconds.
91
		Weight::from_parts(10_740_000, 3581)
92
			.saturating_add(T::DbWeight::get().reads(1_u64))
93
			.saturating_add(T::DbWeight::get().writes(1_u64))
94
	}
95
	fn check_spec_version() -> Weight {
96
		// Proof Size summary in bytes:
97
		//  Measured:  `0`
98
		//  Estimated: `0`
99
		// Minimum execution time: 575_000 picoseconds.
100
		Weight::from_parts(629_000, 0)
101
	}
102
	fn check_tx_version() -> Weight {
103
		// Proof Size summary in bytes:
104
		//  Measured:  `0`
105
		//  Estimated: `0`
106
		// Minimum execution time: 606_000 picoseconds.
107
		Weight::from_parts(646_000, 0)
108
	}
109
	/// Storage: `System::AllExtrinsicsLen` (r:1 w:1)
110
	/// Proof: `System::AllExtrinsicsLen` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
111
	/// Storage: `System::BlockWeight` (r:1 w:1)
112
	/// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`)
113
	/// Storage: `System::ExtrinsicWeightReclaimed` (r:1 w:1)
114
	/// Proof: `System::ExtrinsicWeightReclaimed` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
115
	fn check_weight() -> Weight {
116
		// Proof Size summary in bytes:
117
		//  Measured:  `24`
118
		//  Estimated: `1533`
119
		// Minimum execution time: 8_748_000 picoseconds.
120
		Weight::from_parts(8_883_000, 1533)
121
			.saturating_add(T::DbWeight::get().reads(3_u64))
122
			.saturating_add(T::DbWeight::get().writes(3_u64))
123
	}
124
	/// Storage: `System::ExtrinsicWeightReclaimed` (r:1 w:1)
125
	/// Proof: `System::ExtrinsicWeightReclaimed` (`max_values`: Some(1), `max_size`: Some(16), added: 511, 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
	fn weight_reclaim() -> Weight {
129
		// Proof Size summary in bytes:
130
		//  Measured:  `0`
131
		//  Estimated: `1533`
132
		// Minimum execution time: 4_197_000 picoseconds.
133
		Weight::from_parts(4_329_000, 1533)
134
			.saturating_add(T::DbWeight::get().reads(2_u64))
135
			.saturating_add(T::DbWeight::get().writes(2_u64))
136
	}
137
}