1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi 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
// Tanssi 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 Tanssi.  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 49.1.0
21
//! DATE: 2025-11-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./target/release/tanssi-node
28
// benchmark
29
// pallet
30
// --wasm-execution=compiled
31
// --pallet
32
// frame_system
33
// --extrinsic
34
// *
35
// --chain=dev
36
// --steps
37
// 50
38
// --repeat
39
// 20
40
// --template=benchmarking/frame-weight-runtime-template.hbs
41
// --json-file
42
// raw.json
43
// --output
44
// tmp/dancebox_weights/frame_system.rs
45

            
46
#![cfg_attr(rustfmt, rustfmt_skip)]
47
#![allow(unused_parens)]
48
#![allow(unused_imports)]
49

            
50
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
51
use core::marker::PhantomData;
52

            
53
/// Weights for frame_system using the Substrate node and recommended hardware.
54
pub struct SubstrateWeight<T>(PhantomData<T>);
55
impl<T: frame_system::Config> frame_system::WeightInfo for SubstrateWeight<T> {
56
	/// The range of component `b` is `[0, 3932160]`.
57
	fn remark(b: u32, ) -> Weight {
58
		// Proof Size summary in bytes:
59
		//  Measured:  `0`
60
		//  Estimated: `0`
61
		// Minimum execution time: 3_114_000 picoseconds.
62
		Weight::from_parts(53_290_558, 0)
63
			// Standard Error: 3
64
			.saturating_add(Weight::from_parts(518, 0).saturating_mul(b.into()))
65
	}
66
	/// The range of component `b` is `[0, 3932160]`.
67
60
	fn remark_with_event(b: u32, ) -> Weight {
68
		// Proof Size summary in bytes:
69
		//  Measured:  `0`
70
		//  Estimated: `0`
71
		// Minimum execution time: 8_184_000 picoseconds.
72
60
		Weight::from_parts(8_356_000, 0)
73
			// Standard Error: 2
74
60
			.saturating_add(Weight::from_parts(1_876, 0).saturating_mul(b.into()))
75
60
	}
76
	/// Storage: `System::Digest` (r:1 w:1)
77
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
78
	/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
79
	/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
80
	fn set_heap_pages() -> Weight {
81
		// Proof Size summary in bytes:
82
		//  Measured:  `0`
83
		//  Estimated: `1485`
84
		// Minimum execution time: 5_266_000 picoseconds.
85
		Weight::from_parts(5_481_000, 1485)
86
			.saturating_add(T::DbWeight::get().reads(1_u64))
87
			.saturating_add(T::DbWeight::get().writes(2_u64))
88
	}
89
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
90
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
91
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
92
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
93
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
94
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
95
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
96
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
97
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
98
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
99
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
100
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
101
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
102
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
103
	fn set_code() -> Weight {
104
		// Proof Size summary in bytes:
105
		//  Measured:  `168`
106
		//  Estimated: `67035`
107
		// Minimum execution time: 141_973_994_000 picoseconds.
108
		Weight::from_parts(144_503_488_000, 67035)
109
			.saturating_add(T::DbWeight::get().reads(5_u64))
110
			.saturating_add(T::DbWeight::get().writes(3_u64))
111
	}
112
	/// Storage: `Skipped::Metadata` (r:0 w:0)
113
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
114
	/// The range of component `i` is `[0, 1000]`.
115
	fn set_storage(i: u32, ) -> Weight {
116
		// Proof Size summary in bytes:
117
		//  Measured:  `0`
118
		//  Estimated: `0`
119
		// Minimum execution time: 3_158_000 picoseconds.
120
		Weight::from_parts(3_226_000, 0)
121
			// Standard Error: 2_466
122
			.saturating_add(Weight::from_parts(878_016, 0).saturating_mul(i.into()))
123
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
124
	}
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 `i` is `[0, 1000]`.
128
	fn kill_storage(i: u32, ) -> Weight {
129
		// Proof Size summary in bytes:
130
		//  Measured:  `0`
131
		//  Estimated: `0`
132
		// Minimum execution time: 3_155_000 picoseconds.
133
		Weight::from_parts(3_252_000, 0)
134
			// Standard Error: 1_005
135
			.saturating_add(Weight::from_parts(640_198, 0).saturating_mul(i.into()))
136
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
137
	}
138
	/// Storage: `Skipped::Metadata` (r:0 w:0)
139
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
140
	/// The range of component `p` is `[0, 1000]`.
141
	fn kill_prefix(p: u32, ) -> Weight {
142
		// Proof Size summary in bytes:
143
		//  Measured:  `71 + p * (69 ±0)`
144
		//  Estimated: `82 + p * (70 ±0)`
145
		// Minimum execution time: 6_305_000 picoseconds.
146
		Weight::from_parts(6_450_000, 82)
147
			// Standard Error: 1_371
148
			.saturating_add(Weight::from_parts(1_356_954, 0).saturating_mul(p.into()))
149
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
150
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
151
			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
152
	}
153
	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
154
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
155
	fn authorize_upgrade() -> Weight {
156
		// Proof Size summary in bytes:
157
		//  Measured:  `0`
158
		//  Estimated: `0`
159
		// Minimum execution time: 12_817_000 picoseconds.
160
		Weight::from_parts(13_380_000, 0)
161
			.saturating_add(T::DbWeight::get().writes(1_u64))
162
	}
163
	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
164
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
165
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
166
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
167
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
168
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
169
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
170
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
171
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
172
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
173
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
174
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
175
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
176
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
177
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
178
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
179
	fn apply_authorized_upgrade() -> Weight {
180
		// Proof Size summary in bytes:
181
		//  Measured:  `190`
182
		//  Estimated: `67035`
183
		// Minimum execution time: 145_164_721_000 picoseconds.
184
		Weight::from_parts(148_347_018_000, 67035)
185
			.saturating_add(T::DbWeight::get().reads(6_u64))
186
			.saturating_add(T::DbWeight::get().writes(4_u64))
187
	}
188
}