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 32.0.0
21
//! DATE: 2025-05-02, 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
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// frame_system
34
// --extrinsic
35
// *
36
// --chain=dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/dancebox_weights/frame_system.rs
46

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

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

            
54
/// Weights for frame_system using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> frame_system::WeightInfo for SubstrateWeight<T> {
57
	/// The range of component `b` is `[0, 3932160]`.
58
6
	fn remark(b: u32, ) -> Weight {
59
6
		// Proof Size summary in bytes:
60
6
		//  Measured:  `0`
61
6
		//  Estimated: `0`
62
6
		// Minimum execution time: 2_942_000 picoseconds.
63
6
		Weight::from_parts(5_350_463, 0)
64
6
			// Standard Error: 0
65
6
			.saturating_add(Weight::from_parts(368, 0).saturating_mul(b.into()))
66
6
	}
67
	/// The range of component `b` is `[0, 3932160]`.
68
78
	fn remark_with_event(b: u32, ) -> Weight {
69
78
		// Proof Size summary in bytes:
70
78
		//  Measured:  `0`
71
78
		//  Estimated: `0`
72
78
		// Minimum execution time: 7_764_000 picoseconds.
73
78
		Weight::from_parts(7_827_000, 0)
74
78
			// Standard Error: 2
75
78
			.saturating_add(Weight::from_parts(1_665, 0).saturating_mul(b.into()))
76
78
	}
77
	/// Storage: `System::Digest` (r:1 w:1)
78
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
79
	/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
80
	/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
81
	fn set_heap_pages() -> Weight {
82
		// Proof Size summary in bytes:
83
		//  Measured:  `0`
84
		//  Estimated: `1485`
85
		// Minimum execution time: 5_105_000 picoseconds.
86
		Weight::from_parts(5_298_000, 1485)
87
			.saturating_add(T::DbWeight::get().reads(1_u64))
88
			.saturating_add(T::DbWeight::get().writes(2_u64))
89
	}
90
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
91
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
92
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
93
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
95
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
97
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
99
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
100
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
101
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
102
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
103
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
104
18
	fn set_code() -> Weight {
105
18
		// Proof Size summary in bytes:
106
18
		//  Measured:  `168`
107
18
		//  Estimated: `67035`
108
18
		// Minimum execution time: 140_350_066_000 picoseconds.
109
18
		Weight::from_parts(143_138_672_000, 67035)
110
18
			.saturating_add(T::DbWeight::get().reads(5_u64))
111
18
			.saturating_add(T::DbWeight::get().writes(3_u64))
112
18
	}
113
	/// Storage: `Skipped::Metadata` (r:0 w:0)
114
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
115
	/// The range of component `i` is `[0, 1000]`.
116
24
	fn set_storage(i: u32, ) -> Weight {
117
24
		// Proof Size summary in bytes:
118
24
		//  Measured:  `0`
119
24
		//  Estimated: `0`
120
24
		// Minimum execution time: 3_061_000 picoseconds.
121
24
		Weight::from_parts(3_131_000, 0)
122
24
			// Standard Error: 2_124
123
24
			.saturating_add(Weight::from_parts(820_052, 0).saturating_mul(i.into()))
124
24
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
125
24
	}
126
	/// Storage: `Skipped::Metadata` (r:0 w:0)
127
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
128
	/// The range of component `i` is `[0, 1000]`.
129
18
	fn kill_storage(i: u32, ) -> Weight {
130
18
		// Proof Size summary in bytes:
131
18
		//  Measured:  `0`
132
18
		//  Estimated: `0`
133
18
		// Minimum execution time: 2_888_000 picoseconds.
134
18
		Weight::from_parts(3_028_000, 0)
135
18
			// Standard Error: 955
136
18
			.saturating_add(Weight::from_parts(619_727, 0).saturating_mul(i.into()))
137
18
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
138
18
	}
139
	/// Storage: `Skipped::Metadata` (r:0 w:0)
140
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
141
	/// The range of component `p` is `[0, 1000]`.
142
	fn kill_prefix(p: u32, ) -> Weight {
143
		// Proof Size summary in bytes:
144
		//  Measured:  `69 + p * (69 ±0)`
145
		//  Estimated: `78 + p * (70 ±0)`
146
		// Minimum execution time: 5_848_000 picoseconds.
147
		Weight::from_parts(6_028_000, 78)
148
			// Standard Error: 1_231
149
			.saturating_add(Weight::from_parts(1_352_331, 0).saturating_mul(p.into()))
150
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
151
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
152
			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
153
	}
154
	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
155
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
156
	fn authorize_upgrade() -> Weight {
157
		// Proof Size summary in bytes:
158
		//  Measured:  `0`
159
		//  Estimated: `0`
160
		// Minimum execution time: 12_363_000 picoseconds.
161
		Weight::from_parts(12_672_000, 0)
162
			.saturating_add(T::DbWeight::get().writes(1_u64))
163
	}
164
	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
165
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
166
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
167
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
168
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
169
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
170
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
171
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
172
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
173
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
174
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
175
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
176
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
177
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
178
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
179
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
180
	fn apply_authorized_upgrade() -> Weight {
181
		// Proof Size summary in bytes:
182
		//  Measured:  `190`
183
		//  Estimated: `67035`
184
		// Minimum execution time: 146_056_979_000 picoseconds.
185
		Weight::from_parts(149_135_193_000, 67035)
186
			.saturating_add(T::DbWeight::get().reads(6_u64))
187
			.saturating_add(T::DbWeight::get().writes(4_u64))
188
	}
189
}