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 pallet_scheduler
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
// pallet_scheduler
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/pallet_scheduler.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 pallet_scheduler using the Substrate node and recommended hardware.
54
pub struct SubstrateWeight<T>(PhantomData<T>);
55
impl<T: frame_system::Config> pallet_scheduler::WeightInfo for SubstrateWeight<T> {
56
	/// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
57
	/// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
58
3
	fn service_agendas_base() -> Weight {
59
		// Proof Size summary in bytes:
60
		//  Measured:  `31`
61
		//  Estimated: `1489`
62
		// Minimum execution time: 8_108_000 picoseconds.
63
3
		Weight::from_parts(8_343_000, 1489)
64
3
			.saturating_add(T::DbWeight::get().reads(1_u64))
65
3
			.saturating_add(T::DbWeight::get().writes(1_u64))
66
3
	}
67
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
68
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
69
	/// The range of component `s` is `[0, 50]`.
70
3
	fn service_agenda_base(s: u32, ) -> Weight {
71
		// Proof Size summary in bytes:
72
		//  Measured:  `78 + s * (177 ±0)`
73
		//  Estimated: `42428`
74
		// Minimum execution time: 5_345_000 picoseconds.
75
3
		Weight::from_parts(10_975_450, 42428)
76
			// Standard Error: 2_541
77
3
			.saturating_add(Weight::from_parts(467_183, 0).saturating_mul(s.into()))
78
3
			.saturating_add(T::DbWeight::get().reads(1_u64))
79
3
			.saturating_add(T::DbWeight::get().writes(1_u64))
80
3
	}
81
3
	fn service_task_base() -> Weight {
82
		// Proof Size summary in bytes:
83
		//  Measured:  `0`
84
		//  Estimated: `0`
85
		// Minimum execution time: 4_992_000 picoseconds.
86
3
		Weight::from_parts(5_067_000, 0)
87
3
	}
88
	/// Storage: `Preimage::PreimageFor` (r:1 w:1)
89
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
90
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
91
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
92
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
93
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
94
	/// The range of component `s` is `[128, 4194304]`.
95
3
	fn service_task_fetched(s: u32, ) -> Weight {
96
		// Proof Size summary in bytes:
97
		//  Measured:  `179 + s * (1 ±0)`
98
		//  Estimated: `3644 + s * (1 ±0)`
99
		// Minimum execution time: 27_253_000 picoseconds.
100
3
		Weight::from_parts(28_047_000, 3644)
101
			// Standard Error: 21
102
3
			.saturating_add(Weight::from_parts(2_155, 0).saturating_mul(s.into()))
103
3
			.saturating_add(T::DbWeight::get().reads(3_u64))
104
3
			.saturating_add(T::DbWeight::get().writes(2_u64))
105
3
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
106
3
	}
107
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
108
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
109
3
	fn service_task_named() -> Weight {
110
		// Proof Size summary in bytes:
111
		//  Measured:  `0`
112
		//  Estimated: `0`
113
		// Minimum execution time: 7_227_000 picoseconds.
114
3
		Weight::from_parts(7_542_000, 0)
115
3
			.saturating_add(T::DbWeight::get().writes(1_u64))
116
3
	}
117
3
	fn service_task_periodic() -> Weight {
118
		// Proof Size summary in bytes:
119
		//  Measured:  `0`
120
		//  Estimated: `0`
121
		// Minimum execution time: 4_963_000 picoseconds.
122
3
		Weight::from_parts(5_022_000, 0)
123
3
	}
124
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
125
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
126
	fn execute_dispatch_signed() -> Weight {
127
		// Proof Size summary in bytes:
128
		//  Measured:  `42`
129
		//  Estimated: `1527`
130
		// Minimum execution time: 8_508_000 picoseconds.
131
		Weight::from_parts(8_773_000, 1527)
132
			.saturating_add(T::DbWeight::get().reads(1_u64))
133
	}
134
	fn execute_dispatch_unsigned() -> Weight {
135
		// Proof Size summary in bytes:
136
		//  Measured:  `0`
137
		//  Estimated: `0`
138
		// Minimum execution time: 3_659_000 picoseconds.
139
		Weight::from_parts(3_836_000, 0)
140
	}
141
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
142
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
143
	/// The range of component `s` is `[0, 49]`.
144
	fn schedule(s: u32, ) -> Weight {
145
		// Proof Size summary in bytes:
146
		//  Measured:  `78 + s * (177 ±0)`
147
		//  Estimated: `42428`
148
		// Minimum execution time: 14_923_000 picoseconds.
149
		Weight::from_parts(19_955_596, 42428)
150
			// Standard Error: 2_383
151
			.saturating_add(Weight::from_parts(518_800, 0).saturating_mul(s.into()))
152
			.saturating_add(T::DbWeight::get().reads(1_u64))
153
			.saturating_add(T::DbWeight::get().writes(1_u64))
154
	}
155
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
156
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
157
	/// Storage: `Scheduler::Retries` (r:0 w:1)
158
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
159
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
160
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
161
	/// The range of component `s` is `[1, 50]`.
162
	fn cancel(s: u32, ) -> Weight {
163
		// Proof Size summary in bytes:
164
		//  Measured:  `78 + s * (177 ±0)`
165
		//  Estimated: `42428`
166
		// Minimum execution time: 23_999_000 picoseconds.
167
		Weight::from_parts(23_265_316, 42428)
168
			// Standard Error: 1_319
169
			.saturating_add(Weight::from_parts(797_376, 0).saturating_mul(s.into()))
170
			.saturating_add(T::DbWeight::get().reads(1_u64))
171
			.saturating_add(T::DbWeight::get().writes(3_u64))
172
	}
173
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
174
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
175
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
176
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
177
	/// The range of component `s` is `[0, 49]`.
178
	fn schedule_named(s: u32, ) -> Weight {
179
		// Proof Size summary in bytes:
180
		//  Measured:  `255 + s * (185 ±0)`
181
		//  Estimated: `42428`
182
		// Minimum execution time: 19_831_000 picoseconds.
183
		Weight::from_parts(26_814_485, 42428)
184
			// Standard Error: 3_695
185
			.saturating_add(Weight::from_parts(556_959, 0).saturating_mul(s.into()))
186
			.saturating_add(T::DbWeight::get().reads(2_u64))
187
			.saturating_add(T::DbWeight::get().writes(2_u64))
188
	}
189
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
190
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
191
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
192
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
193
	/// Storage: `Scheduler::Retries` (r:0 w:1)
194
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
195
	/// The range of component `s` is `[1, 50]`.
196
	fn cancel_named(s: u32, ) -> Weight {
197
		// Proof Size summary in bytes:
198
		//  Measured:  `281 + s * (185 ±0)`
199
		//  Estimated: `42428`
200
		// Minimum execution time: 27_324_000 picoseconds.
201
		Weight::from_parts(27_710_929, 42428)
202
			// Standard Error: 1_440
203
			.saturating_add(Weight::from_parts(832_730, 0).saturating_mul(s.into()))
204
			.saturating_add(T::DbWeight::get().reads(2_u64))
205
			.saturating_add(T::DbWeight::get().writes(3_u64))
206
	}
207
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
208
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
209
	/// Storage: `Scheduler::Retries` (r:0 w:1)
210
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
211
	/// The range of component `s` is `[1, 50]`.
212
	fn schedule_retry(s: u32, ) -> Weight {
213
		// Proof Size summary in bytes:
214
		//  Measured:  `118`
215
		//  Estimated: `42428`
216
		// Minimum execution time: 15_659_000 picoseconds.
217
		Weight::from_parts(15_993_853, 42428)
218
			// Standard Error: 543
219
			.saturating_add(Weight::from_parts(33_298, 0).saturating_mul(s.into()))
220
			.saturating_add(T::DbWeight::get().reads(1_u64))
221
			.saturating_add(T::DbWeight::get().writes(2_u64))
222
	}
223
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
224
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
225
	/// Storage: `Scheduler::Retries` (r:0 w:1)
226
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
227
	fn set_retry() -> Weight {
228
		// Proof Size summary in bytes:
229
		//  Measured:  `8928`
230
		//  Estimated: `42428`
231
		// Minimum execution time: 36_787_000 picoseconds.
232
		Weight::from_parts(38_000_000, 42428)
233
			.saturating_add(T::DbWeight::get().reads(1_u64))
234
			.saturating_add(T::DbWeight::get().writes(1_u64))
235
	}
236
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
237
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
238
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
239
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
240
	/// Storage: `Scheduler::Retries` (r:0 w:1)
241
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
242
	fn set_retry_named() -> Weight {
243
		// Proof Size summary in bytes:
244
		//  Measured:  `9606`
245
		//  Estimated: `42428`
246
		// Minimum execution time: 45_075_000 picoseconds.
247
		Weight::from_parts(46_366_000, 42428)
248
			.saturating_add(T::DbWeight::get().reads(2_u64))
249
			.saturating_add(T::DbWeight::get().writes(1_u64))
250
	}
251
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
252
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
253
	/// Storage: `Scheduler::Retries` (r:0 w:1)
254
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
255
	fn cancel_retry() -> Weight {
256
		// Proof Size summary in bytes:
257
		//  Measured:  `8940`
258
		//  Estimated: `42428`
259
		// Minimum execution time: 35_248_000 picoseconds.
260
		Weight::from_parts(36_184_000, 42428)
261
			.saturating_add(T::DbWeight::get().reads(1_u64))
262
			.saturating_add(T::DbWeight::get().writes(1_u64))
263
	}
264
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
265
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
266
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
267
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
268
	/// Storage: `Scheduler::Retries` (r:0 w:1)
269
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
270
	fn cancel_retry_named() -> Weight {
271
		// Proof Size summary in bytes:
272
		//  Measured:  `9618`
273
		//  Estimated: `42428`
274
		// Minimum execution time: 43_174_000 picoseconds.
275
		Weight::from_parts(44_186_000, 42428)
276
			.saturating_add(T::DbWeight::get().reads(2_u64))
277
			.saturating_add(T::DbWeight::get().writes(1_u64))
278
	}
279
}