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 42.0.0
21
//! DATE: 2024-09-25, 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("starlight-dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/tanssi-relay
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// frame_system
34
// --extrinsic
35
// *
36
// --chain=starlight-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/starlight_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
12597
	fn remark(b: u32, ) -> Weight {
59
12597
		// Proof Size summary in bytes:
60
12597
		//  Measured:  `0`
61
12597
		//  Estimated: `0`
62
12597
		// Minimum execution time: 2_609_000 picoseconds.
63
12597
		Weight::from_parts(2_741_000, 0)
64
12597
			// Standard Error: 0
65
12597
			.saturating_add(Weight::from_parts(373, 0).saturating_mul(b.into()))
66
12597
	}
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_884_000 picoseconds.
73
39
		Weight::from_parts(7_033_000, 0)
74
39
			// Standard Error: 2
75
39
			.saturating_add(Weight::from_parts(1_727, 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
504
	fn set_heap_pages() -> Weight {
82
504
		// Proof Size summary in bytes:
83
504
		//  Measured:  `0`
84
504
		//  Estimated: `1485`
85
504
		// Minimum execution time: 4_606_000 picoseconds.
86
504
		Weight::from_parts(4_820_000, 1485)
87
504
			.saturating_add(T::DbWeight::get().reads(1_u64))
88
504
			.saturating_add(T::DbWeight::get().writes(2_u64))
89
504
	}
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: `System::Digest` (r:1 w:1)
93
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94
	/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
95
	/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
96
1275
	fn set_code() -> Weight {
97
1275
		// Proof Size summary in bytes:
98
1275
		//  Measured:  `4`
99
1275
		//  Estimated: `67035`
100
1275
		// Minimum execution time: 127_219_145_000 picoseconds.
101
1275
		Weight::from_parts(129_678_190_000, 67035)
102
1275
			.saturating_add(T::DbWeight::get().reads(2_u64))
103
1275
			.saturating_add(T::DbWeight::get().writes(2_u64))
104
1275
	}
105
	/// Storage: `Skipped::Metadata` (r:0 w:0)
106
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
107
	/// The range of component `i` is `[0, 1000]`.
108
489
	fn set_storage(i: u32, ) -> Weight {
109
489
		// Proof Size summary in bytes:
110
489
		//  Measured:  `0`
111
489
		//  Estimated: `0`
112
489
		// Minimum execution time: 2_660_000 picoseconds.
113
489
		Weight::from_parts(2_730_000, 0)
114
489
			// Standard Error: 2_123
115
489
			.saturating_add(Weight::from_parts(848_249, 0).saturating_mul(i.into()))
116
489
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
117
489
	}
118
	/// Storage: `Skipped::Metadata` (r:0 w:0)
119
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
120
	/// The range of component `i` is `[0, 1000]`.
121
408
	fn kill_storage(i: u32, ) -> Weight {
122
408
		// Proof Size summary in bytes:
123
408
		//  Measured:  `0`
124
408
		//  Estimated: `0`
125
408
		// Minimum execution time: 2_740_000 picoseconds.
126
408
		Weight::from_parts(2_793_000, 0)
127
408
			// Standard Error: 1_015
128
408
			.saturating_add(Weight::from_parts(639_783, 0).saturating_mul(i.into()))
129
408
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
130
408
	}
131
	/// Storage: `Skipped::Metadata` (r:0 w:0)
132
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
133
	/// The range of component `p` is `[0, 1000]`.
134
378
	fn kill_prefix(p: u32, ) -> Weight {
135
378
		// Proof Size summary in bytes:
136
378
		//  Measured:  `78 + p * (69 ±0)`
137
378
		//  Estimated: `84 + p * (70 ±0)`
138
378
		// Minimum execution time: 5_200_000 picoseconds.
139
378
		Weight::from_parts(5_315_000, 84)
140
378
			// Standard Error: 1_470
141
378
			.saturating_add(Weight::from_parts(1_204_405, 0).saturating_mul(p.into()))
142
378
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
143
378
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
144
378
			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
145
378
	}
146
	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
147
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
148
177
	fn authorize_upgrade() -> Weight {
149
177
		// Proof Size summary in bytes:
150
177
		//  Measured:  `0`
151
177
		//  Estimated: `0`
152
177
		// Minimum execution time: 13_600_000 picoseconds.
153
177
		Weight::from_parts(16_388_000, 0)
154
177
			.saturating_add(T::DbWeight::get().writes(1_u64))
155
177
	}
156
	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
157
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
158
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
159
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
160
	/// Storage: `System::Digest` (r:1 w:1)
161
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162
	/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
163
	/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
164
84
	fn apply_authorized_upgrade() -> Weight {
165
84
		// Proof Size summary in bytes:
166
84
		//  Measured:  `26`
167
84
		//  Estimated: `67035`
168
84
		// Minimum execution time: 133_550_183_000 picoseconds.
169
84
		Weight::from_parts(136_302_951_000, 67035)
170
84
			.saturating_add(T::DbWeight::get().reads(3_u64))
171
84
			.saturating_add(T::DbWeight::get().writes(3_u64))
172
84
	}
173
}