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-04, 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
// --wasm-execution=compiled
31
// --pallet
32
// frame_system
33
// --extrinsic
34
// *
35
// --chain=starlight-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/starlight_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_353_000 picoseconds.
62
		Weight::from_parts(51_579_969, 0)
63
			// Standard Error: 3
64
			.saturating_add(Weight::from_parts(462, 0).saturating_mul(b.into()))
65
	}
66
	/// The range of component `b` is `[0, 3932160]`.
67
	fn remark_with_event(b: u32, ) -> Weight {
68
		// Proof Size summary in bytes:
69
		//  Measured:  `0`
70
		//  Estimated: `0`
71
		// Minimum execution time: 8_174_000 picoseconds.
72
		Weight::from_parts(8_315_000, 0)
73
			// Standard Error: 2
74
			.saturating_add(Weight::from_parts(1_813, 0).saturating_mul(b.into()))
75
	}
76
	/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
77
	/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
78
	fn set_heap_pages() -> Weight {
79
		// Proof Size summary in bytes:
80
		//  Measured:  `0`
81
		//  Estimated: `0`
82
		// Minimum execution time: 5_318_000 picoseconds.
83
		Weight::from_parts(5_431_000, 0)
84
			.saturating_add(T::DbWeight::get().writes(1_u64))
85
	}
86
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
87
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
88
	/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
89
	/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
90
	fn set_code() -> Weight {
91
		// Proof Size summary in bytes:
92
		//  Measured:  `4`
93
		//  Estimated: `67035`
94
		// Minimum execution time: 141_184_257_000 picoseconds.
95
		Weight::from_parts(143_643_288_000, 67035)
96
			.saturating_add(T::DbWeight::get().reads(1_u64))
97
			.saturating_add(T::DbWeight::get().writes(1_u64))
98
	}
99
	/// Storage: `Skipped::Metadata` (r:0 w:0)
100
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
101
	/// The range of component `i` is `[0, 1000]`.
102
	fn set_storage(i: u32, ) -> Weight {
103
		// Proof Size summary in bytes:
104
		//  Measured:  `0`
105
		//  Estimated: `0`
106
		// Minimum execution time: 3_432_000 picoseconds.
107
		Weight::from_parts(3_491_000, 0)
108
			// Standard Error: 2_447
109
			.saturating_add(Weight::from_parts(891_461, 0).saturating_mul(i.into()))
110
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
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 kill_storage(i: u32, ) -> Weight {
116
		// Proof Size summary in bytes:
117
		//  Measured:  `0`
118
		//  Estimated: `0`
119
		// Minimum execution time: 3_400_000 picoseconds.
120
		Weight::from_parts(3_536_000, 0)
121
			// Standard Error: 901
122
			.saturating_add(Weight::from_parts(640_356, 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 `p` is `[0, 1000]`.
128
	fn kill_prefix(p: u32, ) -> Weight {
129
		// Proof Size summary in bytes:
130
		//  Measured:  `81 + p * (69 ±0)`
131
		//  Estimated: `95 + p * (70 ±0)`
132
		// Minimum execution time: 6_289_000 picoseconds.
133
		Weight::from_parts(6_354_000, 95)
134
			// Standard Error: 1_398
135
			.saturating_add(Weight::from_parts(1_382_079, 0).saturating_mul(p.into()))
136
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
137
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
138
			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
139
	}
140
	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
141
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
142
	fn authorize_upgrade() -> Weight {
143
		// Proof Size summary in bytes:
144
		//  Measured:  `0`
145
		//  Estimated: `0`
146
		// Minimum execution time: 13_190_000 picoseconds.
147
		Weight::from_parts(14_003_000, 0)
148
			.saturating_add(T::DbWeight::get().writes(1_u64))
149
	}
150
	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
151
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
152
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
153
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
154
	/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
155
	/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
156
	fn apply_authorized_upgrade() -> Weight {
157
		// Proof Size summary in bytes:
158
		//  Measured:  `26`
159
		//  Estimated: `67035`
160
		// Minimum execution time: 143_554_041_000 picoseconds.
161
		Weight::from_parts(146_256_158_000, 67035)
162
			.saturating_add(T::DbWeight::get().reads(2_u64))
163
			.saturating_add(T::DbWeight::get().writes(2_u64))
164
	}
165
}