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-18, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `Mac`, CPU: `<UNKNOWN>`
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/release/wbuild/moonriver-runtime/moonriver_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=2
35
// --repeat=1
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/moonriver/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: 3_000_000 picoseconds.
59
9
		Weight::from_parts(838_000_000, 0)
60
9
	}
61
	/// The range of component `b` is `[0, 3932160]`.
62
	fn remark_with_event(_b: u32, ) -> Weight {
63
		// Proof Size summary in bytes:
64
		//  Measured:  `0`
65
		//  Estimated: `0`
66
		// Minimum execution time: 6_000_000 picoseconds.
67
		Weight::from_parts(4_073_000_000, 0)
68
	}
69
	/// Storage: `System::Digest` (r:1 w:1)
70
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
71
	/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
72
	/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
73
	fn set_heap_pages() -> Weight {
74
		// Proof Size summary in bytes:
75
		//  Measured:  `0`
76
		//  Estimated: `1485`
77
		// Minimum execution time: 4_000_000 picoseconds.
78
		Weight::from_parts(4_000_000, 1485)
79
			.saturating_add(T::DbWeight::get().reads(1_u64))
80
			.saturating_add(T::DbWeight::get().writes(2_u64))
81
	}
82
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
83
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
84
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
85
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
86
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
87
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
89
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
90
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
91
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
93
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94
	fn set_code() -> Weight {
95
		// Proof Size summary in bytes:
96
		//  Measured:  `198`
97
		//  Estimated: `1683`
98
		// Minimum execution time: 47_382_000_000 picoseconds.
99
		Weight::from_parts(47_382_000_000, 1683)
100
			.saturating_add(T::DbWeight::get().reads(4_u64))
101
			.saturating_add(T::DbWeight::get().writes(3_u64))
102
	}
103
	/// Storage: `Skipped::Metadata` (r:0 w:0)
104
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
105
	/// The range of component `i` is `[0, 1000]`.
106
	fn set_storage(_i: u32, ) -> Weight {
107
		// Proof Size summary in bytes:
108
		//  Measured:  `0`
109
		//  Estimated: `0`
110
		// Minimum execution time: 3_000_000 picoseconds.
111
		Weight::from_parts(697_000_000, 0)
112
			.saturating_add(T::DbWeight::get().writes(1000_u64))
113
	}
114
	/// Storage: `Skipped::Metadata` (r:0 w:0)
115
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
116
	/// The range of component `i` is `[0, 1000]`.
117
6627
	fn kill_storage(_i: u32, ) -> Weight {
118
6627
		// Proof Size summary in bytes:
119
6627
		//  Measured:  `0`
120
6627
		//  Estimated: `0`
121
6627
		// Minimum execution time: 3_000_000 picoseconds.
122
6627
		Weight::from_parts(511_000_000, 0)
123
6627
			.saturating_add(T::DbWeight::get().writes(1000_u64))
124
6627
	}
125
	/// Storage: `Skipped::Metadata` (r:0 w:0)
126
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
127
	/// The range of component `p` is `[0, 1000]`.
128
	fn kill_prefix(_p: u32, ) -> Weight {
129
		// Proof Size summary in bytes:
130
		//  Measured:  `72 + p * (69 ±0)`
131
		//  Estimated: `69676`
132
		// Minimum execution time: 5_000_000 picoseconds.
133
		Weight::from_parts(991_000_000, 69676)
134
			.saturating_add(T::DbWeight::get().reads(1000_u64))
135
			.saturating_add(T::DbWeight::get().writes(1000_u64))
136
	}
137
	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
138
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
139
	fn authorize_upgrade() -> Weight {
140
		// Proof Size summary in bytes:
141
		//  Measured:  `0`
142
		//  Estimated: `0`
143
		// Minimum execution time: 8_000_000 picoseconds.
144
		Weight::from_parts(8_000_000, 0)
145
			.saturating_add(T::DbWeight::get().writes(1_u64))
146
	}
147
	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
148
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
149
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
150
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
151
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
152
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
153
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
154
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
155
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
156
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
157
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
158
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
159
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
160
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
161
	fn apply_authorized_upgrade() -> Weight {
162
		// Proof Size summary in bytes:
163
		//  Measured:  `220`
164
		//  Estimated: `1705`
165
		// Minimum execution time: 50_030_000_000 picoseconds.
166
		Weight::from_parts(50_030_000_000, 1705)
167
			.saturating_add(T::DbWeight::get().reads(5_u64))
168
			.saturating_add(T::DbWeight::get().writes(4_u64))
169
	}
170
}