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
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21
//! DATE: 2025-05-02, 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
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// frame_system
34
// --extrinsic
35
// *
36
// --chain=dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/frontier_template_weights/frame_system.rs
46

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

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

            
54
/// Weights for frame_system using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> frame_system::WeightInfo for SubstrateWeight<T> {
57
	/// The range of component `b` is `[0, 3932160]`.
58
	fn remark(b: u32, ) -> Weight {
59
		// Proof Size summary in bytes:
60
		//  Measured:  `0`
61
		//  Estimated: `0`
62
		// Minimum execution time: 2_850_000 picoseconds.
63
		Weight::from_parts(2_823_248, 0)
64
			// Standard Error: 0
65
			.saturating_add(Weight::from_parts(376, 0).saturating_mul(b.into()))
66
	}
67
	/// The range of component `b` is `[0, 3932160]`.
68
	fn remark_with_event(b: u32, ) -> Weight {
69
		// Proof Size summary in bytes:
70
		//  Measured:  `0`
71
		//  Estimated: `0`
72
		// Minimum execution time: 7_833_000 picoseconds.
73
		Weight::from_parts(7_909_000, 0)
74
			// Standard Error: 2
75
			.saturating_add(Weight::from_parts(1_678, 0).saturating_mul(b.into()))
76
	}
77
	/// Storage: `System::Digest` (r:1 w:1)
78
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
79
	/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
80
	/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
81
	fn set_heap_pages() -> Weight {
82
		// Proof Size summary in bytes:
83
		//  Measured:  `0`
84
		//  Estimated: `1485`
85
		// Minimum execution time: 5_148_000 picoseconds.
86
		Weight::from_parts(5_313_000, 1485)
87
			.saturating_add(T::DbWeight::get().reads(1_u64))
88
			.saturating_add(T::DbWeight::get().writes(2_u64))
89
	}
90
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
91
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
92
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
93
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
95
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
97
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
99
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
100
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
101
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
102
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
103
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
104
	fn set_code() -> Weight {
105
		// Proof Size summary in bytes:
106
		//  Measured:  `131`
107
		//  Estimated: `67035`
108
		// Minimum execution time: 138_512_493_000 picoseconds.
109
		Weight::from_parts(143_074_175_000, 67035)
110
			.saturating_add(T::DbWeight::get().reads(5_u64))
111
			.saturating_add(T::DbWeight::get().writes(3_u64))
112
	}
113
	/// Storage: `Skipped::Metadata` (r:0 w:0)
114
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
115
	/// The range of component `i` is `[0, 1000]`.
116
	fn set_storage(i: u32, ) -> Weight {
117
		// Proof Size summary in bytes:
118
		//  Measured:  `0`
119
		//  Estimated: `0`
120
		// Minimum execution time: 2_828_000 picoseconds.
121
		Weight::from_parts(2_888_000, 0)
122
			// Standard Error: 2_301
123
			.saturating_add(Weight::from_parts(830_729, 0).saturating_mul(i.into()))
124
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
125
	}
126
	/// Storage: `Skipped::Metadata` (r:0 w:0)
127
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
128
	/// The range of component `i` is `[0, 1000]`.
129
74
	fn kill_storage(i: u32, ) -> Weight {
130
74
		// Proof Size summary in bytes:
131
74
		//  Measured:  `0`
132
74
		//  Estimated: `0`
133
74
		// Minimum execution time: 2_936_000 picoseconds.
134
74
		Weight::from_parts(2_974_000, 0)
135
74
			// Standard Error: 986
136
74
			.saturating_add(Weight::from_parts(624_307, 0).saturating_mul(i.into()))
137
74
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
138
74
	}
139
	/// Storage: `Skipped::Metadata` (r:0 w:0)
140
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
141
	/// The range of component `p` is `[0, 1000]`.
142
	fn kill_prefix(p: u32, ) -> Weight {
143
		// Proof Size summary in bytes:
144
		//  Measured:  `74 + p * (69 ±0)`
145
		//  Estimated: `84 + p * (70 ±0)`
146
		// Minimum execution time: 5_293_000 picoseconds.
147
		Weight::from_parts(5_349_000, 84)
148
			// Standard Error: 1_184
149
			.saturating_add(Weight::from_parts(1_369_638, 0).saturating_mul(p.into()))
150
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
151
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
152
			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
153
	}
154
	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
155
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
156
	fn authorize_upgrade() -> Weight {
157
		// Proof Size summary in bytes:
158
		//  Measured:  `0`
159
		//  Estimated: `0`
160
		// Minimum execution time: 12_004_000 picoseconds.
161
		Weight::from_parts(12_588_000, 0)
162
			.saturating_add(T::DbWeight::get().writes(1_u64))
163
	}
164
	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
165
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
166
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
167
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
168
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
169
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
170
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
171
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
172
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
173
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
174
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
175
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
176
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
177
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
178
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
179
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
180
	fn apply_authorized_upgrade() -> Weight {
181
		// Proof Size summary in bytes:
182
		//  Measured:  `153`
183
		//  Estimated: `67035`
184
		// Minimum execution time: 143_933_219_000 picoseconds.
185
		Weight::from_parts(146_988_759_000, 67035)
186
			.saturating_add(T::DbWeight::get().reads(6_u64))
187
			.saturating_add(T::DbWeight::get().writes(4_u64))
188
	}
189
}