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: 2024-08-05, 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
	fn remark(b: u32, ) -> Weight {
59
		// Proof Size summary in bytes:
60
		//  Measured:  `0`
61
		//  Estimated: `0`
62
		// Minimum execution time: 2_453_000 picoseconds.
63
		Weight::from_parts(977_003, 0)
64
			// Standard Error: 0
65
			.saturating_add(Weight::from_parts(369, 0).saturating_mul(b.into()))
66
	}
67
	/// The range of component `b` is `[0, 3932160]`.
68
39
	fn remark_with_event(b: u32, ) -> Weight {
69
39
		// Proof Size summary in bytes:
70
39
		//  Measured:  `0`
71
39
		//  Estimated: `0`
72
39
		// Minimum execution time: 6_227_000 picoseconds.
73
39
		Weight::from_parts(6_395_000, 0)
74
39
			// Standard Error: 2
75
39
			.saturating_add(Weight::from_parts(1_702, 0).saturating_mul(b.into()))
76
39
	}
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: 4_123_000 picoseconds.
86
		Weight::from_parts(4_363_000, 1485)
87
			.saturating_add(T::DbWeight::get().reads(1_u64))
88
			.saturating_add(T::DbWeight::get().writes(2_u64))
89
	}
90
	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
91
	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92
	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
93
	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94
	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
95
	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
97
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98
	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
99
	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
100
	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
101
	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
102
	fn set_code() -> Weight {
103
		// Proof Size summary in bytes:
104
		//  Measured:  `164`
105
		//  Estimated: `1649`
106
		// Minimum execution time: 127_576_819_000 picoseconds.
107
		Weight::from_parts(129_419_513_000, 1649)
108
			.saturating_add(T::DbWeight::get().reads(4_u64))
109
			.saturating_add(T::DbWeight::get().writes(3_u64))
110
	}
111
	/// Storage: `Skipped::Metadata` (r:0 w:0)
112
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
113
	/// The range of component `i` is `[0, 1000]`.
114
24
	fn set_storage(i: u32, ) -> Weight {
115
24
		// Proof Size summary in bytes:
116
24
		//  Measured:  `0`
117
24
		//  Estimated: `0`
118
24
		// Minimum execution time: 2_348_000 picoseconds.
119
24
		Weight::from_parts(2_439_000, 0)
120
24
			// Standard Error: 2_112
121
24
			.saturating_add(Weight::from_parts(798_302, 0).saturating_mul(i.into()))
122
24
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
123
24
	}
124
	/// Storage: `Skipped::Metadata` (r:0 w:0)
125
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
126
	/// The range of component `i` is `[0, 1000]`.
127
	fn kill_storage(i: u32, ) -> Weight {
128
		// Proof Size summary in bytes:
129
		//  Measured:  `0`
130
		//  Estimated: `0`
131
		// Minimum execution time: 2_401_000 picoseconds.
132
		Weight::from_parts(2_454_000, 0)
133
			// Standard Error: 915
134
			.saturating_add(Weight::from_parts(582_997, 0).saturating_mul(i.into()))
135
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
136
	}
137
	/// Storage: `Skipped::Metadata` (r:0 w:0)
138
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
139
	/// The range of component `p` is `[0, 1000]`.
140
	fn kill_prefix(p: u32, ) -> Weight {
141
		// Proof Size summary in bytes:
142
		//  Measured:  `69 + p * (69 ±0)`
143
		//  Estimated: `78 + p * (70 ±0)`
144
		// Minimum execution time: 4_652_000 picoseconds.
145
		Weight::from_parts(4_893_000, 78)
146
			// Standard Error: 1_377
147
			.saturating_add(Weight::from_parts(1_148_839, 0).saturating_mul(p.into()))
148
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
149
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
150
			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
151
	}
152
	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
153
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
154
	fn authorize_upgrade() -> Weight {
155
		// Proof Size summary in bytes:
156
		//  Measured:  `0`
157
		//  Estimated: `0`
158
		// Minimum execution time: 10_674_000 picoseconds.
159
		Weight::from_parts(11_097_000, 0)
160
			.saturating_add(T::DbWeight::get().writes(1_u64))
161
	}
162
	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
163
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, 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:  `186`
179
		//  Estimated: `1671`
180
		// Minimum execution time: 130_317_982_000 picoseconds.
181
		Weight::from_parts(133_629_493_000, 1671)
182
			.saturating_add(T::DbWeight::get().reads(5_u64))
183
			.saturating_add(T::DbWeight::get().writes(4_u64))
184
	}
185
}