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 51.0.0
21
//! DATE: 2026-02-09, 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/moonriver-runtime/moonriver_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
// --disable-log-color
42
// --output=./runtime/moonriver/src/weights
43

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

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

            
51
/// Weights for `frame_system`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
54
	/// The range of component `b` is `[0, 3932160]`.
55
80
	fn remark(b: u32, ) -> Weight {
56
		// Proof Size summary in bytes:
57
		//  Measured:  `0`
58
		//  Estimated: `0`
59
		// Minimum execution time: 2_294_000 picoseconds.
60
80
		Weight::from_parts(49_090_082, 0)
61
			// Standard Error: 3
62
80
			.saturating_add(Weight::from_parts(420, 0).saturating_mul(b.into()))
63
80
	}
64
	/// The range of component `b` is `[0, 3932160]`.
65
	fn remark_with_event(b: u32, ) -> Weight {
66
		// Proof Size summary in bytes:
67
		//  Measured:  `0`
68
		//  Estimated: `0`
69
		// Minimum execution time: 6_195_000 picoseconds.
70
		Weight::from_parts(6_318_000, 0)
71
			// Standard Error: 2
72
			.saturating_add(Weight::from_parts(1_791, 0).saturating_mul(b.into()))
73
	}
74
	/// Storage: `System::Digest` (r:1 w:1)
75
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
76
	/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
77
	/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
78
	fn set_heap_pages() -> Weight {
79
		// Proof Size summary in bytes:
80
		//  Measured:  `0`
81
		//  Estimated: `1485`
82
		// Minimum execution time: 3_998_000 picoseconds.
83
		Weight::from_parts(4_189_000, 1485)
84
			.saturating_add(T::DbWeight::get().reads(1_u64))
85
			.saturating_add(T::DbWeight::get().writes(2_u64))
86
	}
87
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
88
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
89
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
90
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
91
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
92
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
93
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
94
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
95
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
96
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
97
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
98
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
99
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
100
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
101
	fn set_code() -> Weight {
102
		// Proof Size summary in bytes:
103
		//  Measured:  `168`
104
		//  Estimated: `67035`
105
		// Minimum execution time: 98_537_745_000 picoseconds.
106
		Weight::from_parts(101_519_491_000, 67035)
107
			.saturating_add(T::DbWeight::get().reads(5_u64))
108
			.saturating_add(T::DbWeight::get().writes(3_u64))
109
	}
110
	/// Storage: `Skipped::Metadata` (r:0 w:0)
111
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
112
	/// The range of component `i` is `[0, 1000]`.
113
	fn set_storage(i: u32, ) -> Weight {
114
		// Proof Size summary in bytes:
115
		//  Measured:  `0`
116
		//  Estimated: `0`
117
		// Minimum execution time: 2_213_000 picoseconds.
118
		Weight::from_parts(2_305_000, 0)
119
			// Standard Error: 2_560
120
			.saturating_add(Weight::from_parts(815_450, 0).saturating_mul(i.into()))
121
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
122
	}
123
	/// Storage: `Skipped::Metadata` (r:0 w:0)
124
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
125
	/// The range of component `i` is `[0, 1000]`.
126
27
	fn kill_storage(i: u32, ) -> Weight {
127
		// Proof Size summary in bytes:
128
		//  Measured:  `0`
129
		//  Estimated: `0`
130
		// Minimum execution time: 2_235_000 picoseconds.
131
27
		Weight::from_parts(2_352_000, 0)
132
			// Standard Error: 1_097
133
27
			.saturating_add(Weight::from_parts(600_165, 0).saturating_mul(i.into()))
134
27
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
135
27
	}
136
	/// Storage: `Skipped::Metadata` (r:0 w:0)
137
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
138
	/// The range of component `p` is `[0, 1000]`.
139
	fn kill_prefix(p: u32, ) -> Weight {
140
		// Proof Size summary in bytes:
141
		//  Measured:  `115 + p * (69 ±0)`
142
		//  Estimated: `105 + p * (70 ±0)`
143
		// Minimum execution time: 4_379_000 picoseconds.
144
		Weight::from_parts(4_482_000, 105)
145
			// Standard Error: 1_344
146
			.saturating_add(Weight::from_parts(1_287_336, 0).saturating_mul(p.into()))
147
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
148
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
149
			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
150
	}
151
	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
152
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
153
	fn authorize_upgrade() -> Weight {
154
		// Proof Size summary in bytes:
155
		//  Measured:  `0`
156
		//  Estimated: `0`
157
		// Minimum execution time: 9_818_000 picoseconds.
158
		Weight::from_parts(10_262_000, 0)
159
			.saturating_add(T::DbWeight::get().writes(1_u64))
160
	}
161
	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
162
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
163
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
164
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
165
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
166
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
167
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
168
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
169
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
170
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
171
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
172
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
173
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
174
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
175
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
176
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
177
	fn apply_authorized_upgrade() -> Weight {
178
		// Proof Size summary in bytes:
179
		//  Measured:  `190`
180
		//  Estimated: `67035`
181
		// Minimum execution time: 105_900_295_000 picoseconds.
182
		Weight::from_parts(106_751_467_000, 67035)
183
			.saturating_add(T::DbWeight::get().reads(6_u64))
184
			.saturating_add(T::DbWeight::get().writes(4_u64))
185
	}
186
}