1
// Copyright 2025 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam 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
// Moonbeam 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 Moonbeam.  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-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/production/wbuild/moonbeam-runtime/moonbeam_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=frame_system
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --output=./runtime/moonbeam/src/weights
42

            
43
#![cfg_attr(rustfmt, rustfmt_skip)]
44
#![allow(unused_parens)]
45
#![allow(unused_imports)]
46

            
47
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
48
use sp_std::marker::PhantomData;
49

            
50
/// Weights for `frame_system`.
51
pub struct WeightInfo<T>(PhantomData<T>);
52
impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
53
	/// The range of component `b` is `[0, 3932160]`.
54
54
	fn remark(b: u32, ) -> Weight {
55
54
		// Proof Size summary in bytes:
56
54
		//  Measured:  `0`
57
54
		//  Estimated: `0`
58
54
		// Minimum execution time: 2_037_000 picoseconds.
59
54
		Weight::from_parts(2_105_000, 0)
60
54
			// Standard Error: 117
61
54
			.saturating_add(Weight::from_parts(10_755, 0).saturating_mul(b.into()))
62
54
	}
63
	/// The range of component `b` is `[0, 3932160]`.
64
	fn remark_with_event(b: u32, ) -> Weight {
65
		// Proof Size summary in bytes:
66
		//  Measured:  `0`
67
		//  Estimated: `0`
68
		// Minimum execution time: 5_682_000 picoseconds.
69
		Weight::from_parts(5_841_000, 0)
70
			// Standard Error: 115
71
			.saturating_add(Weight::from_parts(12_231, 0).saturating_mul(b.into()))
72
	}
73
	/// Storage: `System::Digest` (r:1 w:1)
74
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
75
	/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
76
	/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
77
	fn set_heap_pages() -> Weight {
78
		// Proof Size summary in bytes:
79
		//  Measured:  `0`
80
		//  Estimated: `1485`
81
		// Minimum execution time: 3_646_000 picoseconds.
82
		Weight::from_parts(3_893_000, 1485)
83
			.saturating_add(T::DbWeight::get().reads(1_u64))
84
			.saturating_add(T::DbWeight::get().writes(2_u64))
85
	}
86
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
87
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
88
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
89
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
90
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
91
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
93
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
95
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
97
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
99
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
100
	fn set_code() -> Weight {
101
		// Proof Size summary in bytes:
102
		//  Measured:  `202`
103
		//  Estimated: `67035`
104
		// Minimum execution time: 168_490_117_000 picoseconds.
105
		Weight::from_parts(171_767_496_000, 67035)
106
			.saturating_add(T::DbWeight::get().reads(5_u64))
107
			.saturating_add(T::DbWeight::get().writes(3_u64))
108
	}
109
	/// Storage: `Skipped::Metadata` (r:0 w:0)
110
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
111
	/// The range of component `i` is `[0, 1000]`.
112
	fn set_storage(i: u32, ) -> Weight {
113
		// Proof Size summary in bytes:
114
		//  Measured:  `0`
115
		//  Estimated: `0`
116
		// Minimum execution time: 1_925_000 picoseconds.
117
		Weight::from_parts(1_984_000, 0)
118
			// Standard Error: 2_819
119
			.saturating_add(Weight::from_parts(789_050, 0).saturating_mul(i.into()))
120
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
121
	}
122
	/// Storage: `Skipped::Metadata` (r:0 w:0)
123
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
124
	/// The range of component `i` is `[0, 1000]`.
125
16221
	fn kill_storage(i: u32, ) -> Weight {
126
16221
		// Proof Size summary in bytes:
127
16221
		//  Measured:  `0`
128
16221
		//  Estimated: `0`
129
16221
		// Minimum execution time: 1_959_000 picoseconds.
130
16221
		Weight::from_parts(2_040_000, 0)
131
16221
			// Standard Error: 1_378
132
16221
			.saturating_add(Weight::from_parts(607_615, 0).saturating_mul(i.into()))
133
16221
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
134
16221
	}
135
	/// Storage: `Skipped::Metadata` (r:0 w:0)
136
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
137
	/// The range of component `p` is `[0, 1000]`.
138
	fn kill_prefix(p: u32, ) -> Weight {
139
		// Proof Size summary in bytes:
140
		//  Measured:  `100 + p * (69 ±0)`
141
		//  Estimated: `97 + p * (70 ±0)`
142
		// Minimum execution time: 4_031_000 picoseconds.
143
		Weight::from_parts(4_187_000, 97)
144
			// Standard Error: 2_670
145
			.saturating_add(Weight::from_parts(1_373_744, 0).saturating_mul(p.into()))
146
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
147
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
148
			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
149
	}
150
	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
151
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
152
	fn authorize_upgrade() -> Weight {
153
		// Proof Size summary in bytes:
154
		//  Measured:  `0`
155
		//  Estimated: `0`
156
		// Minimum execution time: 17_072_000 picoseconds.
157
		Weight::from_parts(18_780_000, 0)
158
			.saturating_add(T::DbWeight::get().writes(1_u64))
159
	}
160
	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
161
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
162
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
163
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
164
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
165
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
166
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
167
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
168
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
169
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
170
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
171
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
172
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
173
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
174
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
175
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
176
	fn apply_authorized_upgrade() -> Weight {
177
		// Proof Size summary in bytes:
178
		//  Measured:  `224`
179
		//  Estimated: `67035`
180
		// Minimum execution time: 173_843_268_000 picoseconds.
181
		Weight::from_parts(177_788_501_000, 67035)
182
			.saturating_add(T::DbWeight::get().reads(6_u64))
183
			.saturating_add(T::DbWeight::get().writes(4_u64))
184
	}
185
}