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-03-26, 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/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
9
	fn remark(b: u32, ) -> Weight {
55
9
		// Proof Size summary in bytes:
56
9
		//  Measured:  `0`
57
9
		//  Estimated: `0`
58
9
		// Minimum execution time: 2_025_000 picoseconds.
59
9
		Weight::from_parts(5_199_223, 0)
60
9
			// Standard Error: 0
61
9
			.saturating_add(Weight::from_parts(368, 0).saturating_mul(b.into()))
62
9
	}
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_649_000 picoseconds.
69
		Weight::from_parts(5_761_000, 0)
70
			// Standard Error: 3
71
			.saturating_add(Weight::from_parts(1_751, 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_695_000 picoseconds.
82
		Weight::from_parts(3_873_000, 1485)
83
			.saturating_add(T::DbWeight::get().reads(1_u64))
84
			.saturating_add(T::DbWeight::get().writes(2_u64))
85
	}
86
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
87
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
89
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
90
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
91
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
93
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
95
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
97
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98
	fn set_code() -> Weight {
99
		// Proof Size summary in bytes:
100
		//  Measured:  `198`
101
		//  Estimated: `1683`
102
		// Minimum execution time: 101_541_935_000 picoseconds.
103
		Weight::from_parts(103_966_058_000, 1683)
104
			.saturating_add(T::DbWeight::get().reads(4_u64))
105
			.saturating_add(T::DbWeight::get().writes(3_u64))
106
	}
107
	/// Storage: `Skipped::Metadata` (r:0 w:0)
108
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
109
	/// The range of component `i` is `[0, 1000]`.
110
	fn set_storage(i: u32, ) -> Weight {
111
		// Proof Size summary in bytes:
112
		//  Measured:  `0`
113
		//  Estimated: `0`
114
		// Minimum execution time: 2_000_000 picoseconds.
115
		Weight::from_parts(2_041_000, 0)
116
			// Standard Error: 2_330
117
			.saturating_add(Weight::from_parts(724_518, 0).saturating_mul(i.into()))
118
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
119
	}
120
	/// Storage: `Skipped::Metadata` (r:0 w:0)
121
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
122
	/// The range of component `i` is `[0, 1000]`.
123
6627
	fn kill_storage(i: u32, ) -> Weight {
124
6627
		// Proof Size summary in bytes:
125
6627
		//  Measured:  `0`
126
6627
		//  Estimated: `0`
127
6627
		// Minimum execution time: 2_021_000 picoseconds.
128
6627
		Weight::from_parts(2_173_000, 0)
129
6627
			// Standard Error: 1_157
130
6627
			.saturating_add(Weight::from_parts(561_787, 0).saturating_mul(i.into()))
131
6627
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
132
6627
	}
133
	/// Storage: `Skipped::Metadata` (r:0 w:0)
134
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
135
	/// The range of component `p` is `[0, 1000]`.
136
	fn kill_prefix(p: u32, ) -> Weight {
137
		// Proof Size summary in bytes:
138
		//  Measured:  `98 + p * (69 ±0)`
139
		//  Estimated: `97 + p * (70 ±0)`
140
		// Minimum execution time: 4_018_000 picoseconds.
141
		Weight::from_parts(4_185_000, 97)
142
			// Standard Error: 1_485
143
			.saturating_add(Weight::from_parts(1_278_311, 0).saturating_mul(p.into()))
144
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
145
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
146
			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
147
	}
148
	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
149
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
150
	fn authorize_upgrade() -> Weight {
151
		// Proof Size summary in bytes:
152
		//  Measured:  `0`
153
		//  Estimated: `0`
154
		// Minimum execution time: 11_610_000 picoseconds.
155
		Weight::from_parts(14_334_000, 0)
156
			.saturating_add(T::DbWeight::get().writes(1_u64))
157
	}
158
	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
159
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
160
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
161
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
163
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
164
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
165
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
166
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
167
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
168
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
169
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
170
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
171
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
172
	fn apply_authorized_upgrade() -> Weight {
173
		// Proof Size summary in bytes:
174
		//  Measured:  `220`
175
		//  Estimated: `1705`
176
		// Minimum execution time: 107_276_926_000 picoseconds.
177
		Weight::from_parts(108_897_243_000, 1705)
178
			.saturating_add(T::DbWeight::get().reads(5_u64))
179
			.saturating_add(T::DbWeight::get().writes(4_u64))
180
	}
181
}