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
	fn remark(b: u32, ) -> Weight {
59
		// Proof Size summary in bytes:
60
		//  Measured:  `0`
61
		//  Estimated: `0`
62
		// Minimum execution time: 2_609_000 picoseconds.
63
		Weight::from_parts(2_741_000, 0)
64
			// Standard Error: 0
65
			.saturating_add(Weight::from_parts(373, 0).saturating_mul(b.into()))
66
	}
67
	/// The range of component `b` is `[0, 3932160]`.
68
	fn remark_with_event(b: u32, ) -> Weight {
69
		// Proof Size summary in bytes:
70
		//  Measured:  `0`
71
		//  Estimated: `0`
72
		// Minimum execution time: 6_884_000 picoseconds.
73
		Weight::from_parts(7_033_000, 0)
74
			// Standard Error: 2
75
			.saturating_add(Weight::from_parts(1_727, 0).saturating_mul(b.into()))
76
	}
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_606_000 picoseconds.
86
		Weight::from_parts(4_820_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: `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
	fn set_code() -> Weight {
97
		// Proof Size summary in bytes:
98
		//  Measured:  `4`
99
		//  Estimated: `67035`
100
		// Minimum execution time: 127_219_145_000 picoseconds.
101
		Weight::from_parts(129_678_190_000, 67035)
102
			.saturating_add(T::DbWeight::get().reads(2_u64))
103
			.saturating_add(T::DbWeight::get().writes(2_u64))
104
	}
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
	fn set_storage(i: u32, ) -> Weight {
109
		// Proof Size summary in bytes:
110
		//  Measured:  `0`
111
		//  Estimated: `0`
112
		// Minimum execution time: 2_660_000 picoseconds.
113
		Weight::from_parts(2_730_000, 0)
114
			// Standard Error: 2_123
115
			.saturating_add(Weight::from_parts(848_249, 0).saturating_mul(i.into()))
116
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
117
	}
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
	fn kill_storage(i: u32, ) -> Weight {
122
		// Proof Size summary in bytes:
123
		//  Measured:  `0`
124
		//  Estimated: `0`
125
		// Minimum execution time: 2_740_000 picoseconds.
126
		Weight::from_parts(2_793_000, 0)
127
			// Standard Error: 1_015
128
			.saturating_add(Weight::from_parts(639_783, 0).saturating_mul(i.into()))
129
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
130
	}
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
	fn kill_prefix(p: u32, ) -> Weight {
135
		// Proof Size summary in bytes:
136
		//  Measured:  `78 + p * (69 ±0)`
137
		//  Estimated: `84 + p * (70 ±0)`
138
		// Minimum execution time: 5_200_000 picoseconds.
139
		Weight::from_parts(5_315_000, 84)
140
			// Standard Error: 1_470
141
			.saturating_add(Weight::from_parts(1_204_405, 0).saturating_mul(p.into()))
142
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
143
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
144
			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
145
	}
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
	fn authorize_upgrade() -> Weight {
149
		// Proof Size summary in bytes:
150
		//  Measured:  `0`
151
		//  Estimated: `0`
152
		// Minimum execution time: 13_600_000 picoseconds.
153
		Weight::from_parts(16_388_000, 0)
154
			.saturating_add(T::DbWeight::get().writes(1_u64))
155
	}
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
	fn apply_authorized_upgrade() -> Weight {
165
		// Proof Size summary in bytes:
166
		//  Measured:  `26`
167
		//  Estimated: `67035`
168
		// Minimum execution time: 133_550_183_000 picoseconds.
169
		Weight::from_parts(136_302_951_000, 67035)
170
			.saturating_add(T::DbWeight::get().reads(3_u64))
171
			.saturating_add(T::DbWeight::get().writes(3_u64))
172
	}
173
}