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("dancelight-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=dancelight-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/dancelight_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: 3_178_000 picoseconds.
63
		Weight::from_parts(8_504_784, 0)
64
			// Standard Error: 0
65
			.saturating_add(Weight::from_parts(366, 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: 8_055_000 picoseconds.
73
		Weight::from_parts(8_168_000, 0)
74
			// Standard Error: 2
75
			.saturating_add(Weight::from_parts(1_678, 0).saturating_mul(b.into()))
76
	}
77
	/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
78
	/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
79
	fn set_heap_pages() -> Weight {
80
		// Proof Size summary in bytes:
81
		//  Measured:  `0`
82
		//  Estimated: `0`
83
		// Minimum execution time: 5_079_000 picoseconds.
84
		Weight::from_parts(5_193_000, 0)
85
			.saturating_add(T::DbWeight::get().writes(1_u64))
86
	}
87
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
88
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
89
	/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
90
	/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
91
	fn set_code() -> Weight {
92
		// Proof Size summary in bytes:
93
		//  Measured:  `4`
94
		//  Estimated: `67035`
95
		// Minimum execution time: 138_689_375_000 picoseconds.
96
		Weight::from_parts(141_904_646_000, 67035)
97
			.saturating_add(T::DbWeight::get().reads(1_u64))
98
			.saturating_add(T::DbWeight::get().writes(1_u64))
99
	}
100
	/// Storage: `Skipped::Metadata` (r:0 w:0)
101
	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
102
	/// The range of component `i` is `[0, 1000]`.
103
	fn set_storage(i: u32, ) -> Weight {
104
		// Proof Size summary in bytes:
105
		//  Measured:  `0`
106
		//  Estimated: `0`
107
		// Minimum execution time: 3_097_000 picoseconds.
108
		Weight::from_parts(3_174_000, 0)
109
			// Standard Error: 2_302
110
			.saturating_add(Weight::from_parts(847_508, 0).saturating_mul(i.into()))
111
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
112
	}
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
	fn kill_storage(i: u32, ) -> Weight {
117
		// Proof Size summary in bytes:
118
		//  Measured:  `0`
119
		//  Estimated: `0`
120
		// Minimum execution time: 3_227_000 picoseconds.
121
		Weight::from_parts(3_254_000, 0)
122
			// Standard Error: 957
123
			.saturating_add(Weight::from_parts(634_529, 0).saturating_mul(i.into()))
124
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
125
	}
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 `p` is `[0, 1000]`.
129
	fn kill_prefix(p: u32, ) -> Weight {
130
		// Proof Size summary in bytes:
131
		//  Measured:  `70 + p * (69 ±0)`
132
		//  Estimated: `90 + p * (70 ±0)`
133
		// Minimum execution time: 5_867_000 picoseconds.
134
		Weight::from_parts(5_907_000, 90)
135
			// Standard Error: 1_185
136
			.saturating_add(Weight::from_parts(1_350_799, 0).saturating_mul(p.into()))
137
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
138
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
139
			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
140
	}
141
	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
142
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
143
	fn authorize_upgrade() -> Weight {
144
		// Proof Size summary in bytes:
145
		//  Measured:  `0`
146
		//  Estimated: `0`
147
		// Minimum execution time: 13_404_000 picoseconds.
148
		Weight::from_parts(13_905_000, 0)
149
			.saturating_add(T::DbWeight::get().writes(1_u64))
150
	}
151
	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
152
	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
153
	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
154
	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
155
	/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
156
	/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
157
	fn apply_authorized_upgrade() -> Weight {
158
		// Proof Size summary in bytes:
159
		//  Measured:  `26`
160
		//  Estimated: `67035`
161
		// Minimum execution time: 142_227_373_000 picoseconds.
162
		Weight::from_parts(146_502_475_000, 67035)
163
			.saturating_add(T::DbWeight::get().reads(2_u64))
164
			.saturating_add(T::DbWeight::get().writes(2_u64))
165
	}
166
}