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 47.0.0
21
//! DATE: 2025-07-09, 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
// pallet_scheduler
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/pallet_scheduler.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 core::marker::PhantomData;
53

            
54
/// Weights for pallet_scheduler using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> pallet_scheduler::WeightInfo for SubstrateWeight<T> {
57
	/// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
58
	/// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
59
	fn service_agendas_base() -> Weight {
60
		// Proof Size summary in bytes:
61
		//  Measured:  `31`
62
		//  Estimated: `1489`
63
		// Minimum execution time: 7_937_000 picoseconds.
64
		Weight::from_parts(8_227_000, 1489)
65
			.saturating_add(T::DbWeight::get().reads(1_u64))
66
			.saturating_add(T::DbWeight::get().writes(1_u64))
67
	}
68
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
69
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
70
	/// The range of component `s` is `[0, 50]`.
71
	fn service_agenda_base(s: u32, ) -> Weight {
72
		// Proof Size summary in bytes:
73
		//  Measured:  `78 + s * (177 ±0)`
74
		//  Estimated: `42428`
75
		// Minimum execution time: 4_790_000 picoseconds.
76
		Weight::from_parts(10_350_150, 42428)
77
			// Standard Error: 2_499
78
			.saturating_add(Weight::from_parts(405_054, 0).saturating_mul(s.into()))
79
			.saturating_add(T::DbWeight::get().reads(1_u64))
80
			.saturating_add(T::DbWeight::get().writes(1_u64))
81
	}
82
	fn service_task_base() -> Weight {
83
		// Proof Size summary in bytes:
84
		//  Measured:  `0`
85
		//  Estimated: `0`
86
		// Minimum execution time: 4_801_000 picoseconds.
87
		Weight::from_parts(4_982_000, 0)
88
	}
89
	/// Storage: `Preimage::PreimageFor` (r:1 w:1)
90
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
91
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
92
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
93
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
94
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
95
	/// The range of component `s` is `[128, 4194304]`.
96
	fn service_task_fetched(s: u32, ) -> Weight {
97
		// Proof Size summary in bytes:
98
		//  Measured:  `179 + s * (1 ±0)`
99
		//  Estimated: `3644 + s * (1 ±0)`
100
		// Minimum execution time: 26_637_000 picoseconds.
101
		Weight::from_parts(27_154_000, 3644)
102
			// Standard Error: 8
103
			.saturating_add(Weight::from_parts(1_404, 0).saturating_mul(s.into()))
104
			.saturating_add(T::DbWeight::get().reads(3_u64))
105
			.saturating_add(T::DbWeight::get().writes(2_u64))
106
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
107
	}
108
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
109
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
110
	fn service_task_named() -> Weight {
111
		// Proof Size summary in bytes:
112
		//  Measured:  `0`
113
		//  Estimated: `0`
114
		// Minimum execution time: 7_399_000 picoseconds.
115
		Weight::from_parts(7_545_000, 0)
116
			.saturating_add(T::DbWeight::get().writes(1_u64))
117
	}
118
	fn service_task_periodic() -> Weight {
119
		// Proof Size summary in bytes:
120
		//  Measured:  `0`
121
		//  Estimated: `0`
122
		// Minimum execution time: 4_805_000 picoseconds.
123
		Weight::from_parts(4_926_000, 0)
124
	}
125
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
126
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
127
	fn execute_dispatch_signed() -> Weight {
128
		// Proof Size summary in bytes:
129
		//  Measured:  `42`
130
		//  Estimated: `1527`
131
		// Minimum execution time: 7_931_000 picoseconds.
132
		Weight::from_parts(8_217_000, 1527)
133
			.saturating_add(T::DbWeight::get().reads(1_u64))
134
	}
135
	fn execute_dispatch_unsigned() -> Weight {
136
		// Proof Size summary in bytes:
137
		//  Measured:  `0`
138
		//  Estimated: `0`
139
		// Minimum execution time: 3_525_000 picoseconds.
140
		Weight::from_parts(3_655_000, 0)
141
	}
142
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
143
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
144
	/// The range of component `s` is `[0, 49]`.
145
	fn schedule(s: u32, ) -> Weight {
146
		// Proof Size summary in bytes:
147
		//  Measured:  `78 + s * (177 ±0)`
148
		//  Estimated: `42428`
149
		// Minimum execution time: 14_727_000 picoseconds.
150
		Weight::from_parts(19_778_492, 42428)
151
			// Standard Error: 2_413
152
			.saturating_add(Weight::from_parts(445_189, 0).saturating_mul(s.into()))
153
			.saturating_add(T::DbWeight::get().reads(1_u64))
154
			.saturating_add(T::DbWeight::get().writes(1_u64))
155
	}
156
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
157
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
158
	/// Storage: `Scheduler::Retries` (r:0 w:1)
159
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
160
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
161
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
162
	/// The range of component `s` is `[1, 50]`.
163
	fn cancel(s: u32, ) -> Weight {
164
		// Proof Size summary in bytes:
165
		//  Measured:  `78 + s * (177 ±0)`
166
		//  Estimated: `42428`
167
		// Minimum execution time: 23_331_000 picoseconds.
168
		Weight::from_parts(23_136_048, 42428)
169
			// Standard Error: 1_081
170
			.saturating_add(Weight::from_parts(674_985, 0).saturating_mul(s.into()))
171
			.saturating_add(T::DbWeight::get().reads(1_u64))
172
			.saturating_add(T::DbWeight::get().writes(3_u64))
173
	}
174
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
175
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
176
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
177
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
178
	/// The range of component `s` is `[0, 49]`.
179
	fn schedule_named(s: u32, ) -> Weight {
180
		// Proof Size summary in bytes:
181
		//  Measured:  `255 + s * (185 ±0)`
182
		//  Estimated: `42428`
183
		// Minimum execution time: 19_232_000 picoseconds.
184
		Weight::from_parts(26_104_303, 42428)
185
			// Standard Error: 3_615
186
			.saturating_add(Weight::from_parts(492_322, 0).saturating_mul(s.into()))
187
			.saturating_add(T::DbWeight::get().reads(2_u64))
188
			.saturating_add(T::DbWeight::get().writes(2_u64))
189
	}
190
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
191
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
192
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
193
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
194
	/// Storage: `Scheduler::Retries` (r:0 w:1)
195
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
196
	/// The range of component `s` is `[1, 50]`.
197
	fn cancel_named(s: u32, ) -> Weight {
198
		// Proof Size summary in bytes:
199
		//  Measured:  `281 + s * (185 ±0)`
200
		//  Estimated: `42428`
201
		// Minimum execution time: 26_234_000 picoseconds.
202
		Weight::from_parts(27_098_335, 42428)
203
			// Standard Error: 1_570
204
			.saturating_add(Weight::from_parts(709_252, 0).saturating_mul(s.into()))
205
			.saturating_add(T::DbWeight::get().reads(2_u64))
206
			.saturating_add(T::DbWeight::get().writes(3_u64))
207
	}
208
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
209
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
210
	/// Storage: `Scheduler::Retries` (r:0 w:1)
211
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
212
	/// The range of component `s` is `[1, 50]`.
213
	fn schedule_retry(s: u32, ) -> Weight {
214
		// Proof Size summary in bytes:
215
		//  Measured:  `118`
216
		//  Estimated: `42428`
217
		// Minimum execution time: 14_714_000 picoseconds.
218
		Weight::from_parts(15_468_888, 42428)
219
			// Standard Error: 580
220
			.saturating_add(Weight::from_parts(30_725, 0).saturating_mul(s.into()))
221
			.saturating_add(T::DbWeight::get().reads(1_u64))
222
			.saturating_add(T::DbWeight::get().writes(2_u64))
223
	}
224
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
225
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
226
	/// Storage: `Scheduler::Retries` (r:0 w:1)
227
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
228
	fn set_retry() -> Weight {
229
		// Proof Size summary in bytes:
230
		//  Measured:  `8928`
231
		//  Estimated: `42428`
232
		// Minimum execution time: 33_683_000 picoseconds.
233
		Weight::from_parts(34_912_000, 42428)
234
			.saturating_add(T::DbWeight::get().reads(1_u64))
235
			.saturating_add(T::DbWeight::get().writes(1_u64))
236
	}
237
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
238
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
239
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
240
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
241
	/// Storage: `Scheduler::Retries` (r:0 w:1)
242
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
243
	fn set_retry_named() -> Weight {
244
		// Proof Size summary in bytes:
245
		//  Measured:  `9606`
246
		//  Estimated: `42428`
247
		// Minimum execution time: 41_487_000 picoseconds.
248
		Weight::from_parts(43_072_000, 42428)
249
			.saturating_add(T::DbWeight::get().reads(2_u64))
250
			.saturating_add(T::DbWeight::get().writes(1_u64))
251
	}
252
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
253
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
254
	/// Storage: `Scheduler::Retries` (r:0 w:1)
255
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
256
	fn cancel_retry() -> Weight {
257
		// Proof Size summary in bytes:
258
		//  Measured:  `8940`
259
		//  Estimated: `42428`
260
		// Minimum execution time: 31_749_000 picoseconds.
261
		Weight::from_parts(33_070_000, 42428)
262
			.saturating_add(T::DbWeight::get().reads(1_u64))
263
			.saturating_add(T::DbWeight::get().writes(1_u64))
264
	}
265
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
266
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
267
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
268
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
269
	/// Storage: `Scheduler::Retries` (r:0 w:1)
270
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
271
	fn cancel_retry_named() -> Weight {
272
		// Proof Size summary in bytes:
273
		//  Measured:  `9618`
274
		//  Estimated: `42428`
275
		// Minimum execution time: 40_152_000 picoseconds.
276
		Weight::from_parts(41_366_000, 42428)
277
			.saturating_add(T::DbWeight::get().reads(2_u64))
278
			.saturating_add(T::DbWeight::get().writes(1_u64))
279
	}
280
}