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-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-198`, 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/moonbase-runtime/moonbase_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/moonbase/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
63
	fn remark(b: u32, ) -> Weight {
55
63
		// Proof Size summary in bytes:
56
63
		//  Measured:  `0`
57
63
		//  Estimated: `0`
58
63
		// Minimum execution time: 1_922_000 picoseconds.
59
63
		Weight::from_parts(2_011_000, 0)
60
63
			// Standard Error: 117
61
63
			.saturating_add(Weight::from_parts(10_747, 0).saturating_mul(b.into()))
62
63
	}
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_622_000 picoseconds.
69
		Weight::from_parts(5_685_000, 0)
70
			// Standard Error: 116
71
			.saturating_add(Weight::from_parts(12_262, 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_507_000 picoseconds.
82
		Weight::from_parts(3_753_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: 169_254_081_000 picoseconds.
105
		Weight::from_parts(172_101_358_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_948_000 picoseconds.
117
		Weight::from_parts(2_012_000, 0)
118
			// Standard Error: 2_641
119
			.saturating_add(Weight::from_parts(794_248, 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
6624
	fn kill_storage(i: u32, ) -> Weight {
126
6624
		// Proof Size summary in bytes:
127
6624
		//  Measured:  `0`
128
6624
		//  Estimated: `0`
129
6624
		// Minimum execution time: 2_007_000 picoseconds.
130
6624
		Weight::from_parts(2_162_000, 0)
131
6624
			// Standard Error: 1_445
132
6624
			.saturating_add(Weight::from_parts(608_474, 0).saturating_mul(i.into()))
133
6624
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
134
6624
	}
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:  `98 + p * (69 ±0)`
141
		//  Estimated: `97 + p * (70 ±0)`
142
		// Minimum execution time: 3_921_000 picoseconds.
143
		Weight::from_parts(4_015_000, 97)
144
			// Standard Error: 2_893
145
			.saturating_add(Weight::from_parts(1_369_129, 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: 20_075_000 picoseconds.
157
		Weight::from_parts(21_852_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: 172_762_628_000 picoseconds.
181
		Weight::from_parts(177_374_730_000, 67035)
182
			.saturating_add(T::DbWeight::get().reads(6_u64))
183
			.saturating_add(T::DbWeight::get().writes(4_u64))
184
	}
185
}