1
// Copyright 2025 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam 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
// Moonbeam 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 Moonbeam.  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 51.0.0
21
//! DATE: 2026-02-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/production/wbuild/moonbase-runtime/moonbase_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=pallet_scheduler
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --disable-log-color
42
// --output=./runtime/moonbase/src/weights
43

            
44
#![cfg_attr(rustfmt, rustfmt_skip)]
45
#![allow(unused_parens)]
46
#![allow(unused_imports)]
47

            
48
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
49
use sp_std::marker::PhantomData;
50

            
51
/// Weights for `pallet_scheduler`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> {
54
	/// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
55
	/// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
56
24
	fn service_agendas_base() -> Weight {
57
		// Proof Size summary in bytes:
58
		//  Measured:  `31`
59
		//  Estimated: `1489`
60
		// Minimum execution time: 6_091_000 picoseconds.
61
24
		Weight::from_parts(6_344_000, 1489)
62
24
			.saturating_add(T::DbWeight::get().reads(1_u64))
63
24
			.saturating_add(T::DbWeight::get().writes(1_u64))
64
24
	}
65
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
66
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
67
	/// The range of component `s` is `[0, 50]`.
68
45
	fn service_agenda_base(s: u32, ) -> Weight {
69
		// Proof Size summary in bytes:
70
		//  Measured:  `78 + s * (177 ±0)`
71
		//  Estimated: `42428`
72
		// Minimum execution time: 3_829_000 picoseconds.
73
45
		Weight::from_parts(7_102_221, 42428)
74
			// Standard Error: 1_553
75
45
			.saturating_add(Weight::from_parts(422_818, 0).saturating_mul(s.into()))
76
45
			.saturating_add(T::DbWeight::get().reads(1_u64))
77
45
			.saturating_add(T::DbWeight::get().writes(1_u64))
78
45
	}
79
3
	fn service_task_base() -> Weight {
80
		// Proof Size summary in bytes:
81
		//  Measured:  `0`
82
		//  Estimated: `0`
83
		// Minimum execution time: 3_524_000 picoseconds.
84
3
		Weight::from_parts(3_633_000, 0)
85
3
	}
86
	/// Storage: `Preimage::PreimageFor` (r:1 w:1)
87
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
88
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
89
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
90
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
91
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
92
	/// The range of component `s` is `[128, 4194304]`.
93
3
	fn service_task_fetched(s: u32, ) -> Weight {
94
		// Proof Size summary in bytes:
95
		//  Measured:  `179 + s * (1 ±0)`
96
		//  Estimated: `3644 + s * (1 ±0)`
97
		// Minimum execution time: 19_979_000 picoseconds.
98
3
		Weight::from_parts(20_323_000, 3644)
99
			// Standard Error: 3
100
3
			.saturating_add(Weight::from_parts(1_405, 0).saturating_mul(s.into()))
101
3
			.saturating_add(T::DbWeight::get().reads(3_u64))
102
3
			.saturating_add(T::DbWeight::get().writes(2_u64))
103
3
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
104
3
	}
105
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
106
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
107
3
	fn service_task_named() -> Weight {
108
		// Proof Size summary in bytes:
109
		//  Measured:  `0`
110
		//  Estimated: `0`
111
		// Minimum execution time: 5_130_000 picoseconds.
112
3
		Weight::from_parts(5_360_000, 0)
113
3
			.saturating_add(T::DbWeight::get().writes(1_u64))
114
3
	}
115
3
	fn service_task_periodic() -> Weight {
116
		// Proof Size summary in bytes:
117
		//  Measured:  `0`
118
		//  Estimated: `0`
119
		// Minimum execution time: 3_497_000 picoseconds.
120
3
		Weight::from_parts(3_663_000, 0)
121
3
	}
122
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
123
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
124
	fn execute_dispatch_signed() -> Weight {
125
		// Proof Size summary in bytes:
126
		//  Measured:  `42`
127
		//  Estimated: `1527`
128
		// Minimum execution time: 4_610_000 picoseconds.
129
		Weight::from_parts(4_905_000, 1527)
130
			.saturating_add(T::DbWeight::get().reads(1_u64))
131
	}
132
	fn execute_dispatch_unsigned() -> Weight {
133
		// Proof Size summary in bytes:
134
		//  Measured:  `0`
135
		//  Estimated: `0`
136
		// Minimum execution time: 2_233_000 picoseconds.
137
		Weight::from_parts(2_459_000, 0)
138
	}
139
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
140
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
141
	/// The range of component `s` is `[0, 49]`.
142
	fn schedule(s: u32, ) -> Weight {
143
		// Proof Size summary in bytes:
144
		//  Measured:  `78 + s * (177 ±0)`
145
		//  Estimated: `42428`
146
		// Minimum execution time: 10_950_000 picoseconds.
147
		Weight::from_parts(13_941_992, 42428)
148
			// Standard Error: 1_433
149
			.saturating_add(Weight::from_parts(456_339, 0).saturating_mul(s.into()))
150
			.saturating_add(T::DbWeight::get().reads(1_u64))
151
			.saturating_add(T::DbWeight::get().writes(1_u64))
152
	}
153
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
154
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
155
	/// Storage: `Scheduler::Retries` (r:0 w:1)
156
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
157
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
158
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
159
	/// The range of component `s` is `[1, 50]`.
160
	fn cancel(s: u32, ) -> Weight {
161
		// Proof Size summary in bytes:
162
		//  Measured:  `78 + s * (177 ±0)`
163
		//  Estimated: `42428`
164
		// Minimum execution time: 16_529_000 picoseconds.
165
		Weight::from_parts(16_167_360, 42428)
166
			// Standard Error: 1_116
167
			.saturating_add(Weight::from_parts(704_621, 0).saturating_mul(s.into()))
168
			.saturating_add(T::DbWeight::get().reads(1_u64))
169
			.saturating_add(T::DbWeight::get().writes(3_u64))
170
	}
171
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
172
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
173
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
174
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
175
	/// The range of component `s` is `[0, 49]`.
176
	fn schedule_named(s: u32, ) -> Weight {
177
		// Proof Size summary in bytes:
178
		//  Measured:  `255 + s * (185 ±0)`
179
		//  Estimated: `42428`
180
		// Minimum execution time: 14_385_000 picoseconds.
181
		Weight::from_parts(18_890_159, 42428)
182
			// Standard Error: 2_714
183
			.saturating_add(Weight::from_parts(502_716, 0).saturating_mul(s.into()))
184
			.saturating_add(T::DbWeight::get().reads(2_u64))
185
			.saturating_add(T::DbWeight::get().writes(2_u64))
186
	}
187
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
188
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
189
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
190
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
191
	/// Storage: `Scheduler::Retries` (r:0 w:1)
192
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
193
	/// The range of component `s` is `[1, 50]`.
194
	fn cancel_named(s: u32, ) -> Weight {
195
		// Proof Size summary in bytes:
196
		//  Measured:  `281 + s * (185 ±0)`
197
		//  Estimated: `42428`
198
		// Minimum execution time: 19_139_000 picoseconds.
199
		Weight::from_parts(19_722_776, 42428)
200
			// Standard Error: 3_547
201
			.saturating_add(Weight::from_parts(751_427, 0).saturating_mul(s.into()))
202
			.saturating_add(T::DbWeight::get().reads(2_u64))
203
			.saturating_add(T::DbWeight::get().writes(3_u64))
204
	}
205
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
206
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
207
	/// Storage: `Scheduler::Retries` (r:0 w:1)
208
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
209
	/// The range of component `s` is `[1, 50]`.
210
	fn schedule_retry(s: u32, ) -> Weight {
211
		// Proof Size summary in bytes:
212
		//  Measured:  `118`
213
		//  Estimated: `42428`
214
		// Minimum execution time: 10_049_000 picoseconds.
215
		Weight::from_parts(10_438_937, 42428)
216
			// Standard Error: 450
217
			.saturating_add(Weight::from_parts(32_787, 0).saturating_mul(s.into()))
218
			.saturating_add(T::DbWeight::get().reads(1_u64))
219
			.saturating_add(T::DbWeight::get().writes(2_u64))
220
	}
221
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
222
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
223
	/// Storage: `Scheduler::Retries` (r:0 w:1)
224
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
225
	fn set_retry() -> Weight {
226
		// Proof Size summary in bytes:
227
		//  Measured:  `8928`
228
		//  Estimated: `42428`
229
		// Minimum execution time: 29_019_000 picoseconds.
230
		Weight::from_parts(29_719_000, 42428)
231
			.saturating_add(T::DbWeight::get().reads(1_u64))
232
			.saturating_add(T::DbWeight::get().writes(1_u64))
233
	}
234
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
235
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
236
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
237
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
238
	/// Storage: `Scheduler::Retries` (r:0 w:1)
239
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
240
	fn set_retry_named() -> Weight {
241
		// Proof Size summary in bytes:
242
		//  Measured:  `9606`
243
		//  Estimated: `42428`
244
		// Minimum execution time: 36_149_000 picoseconds.
245
		Weight::from_parts(37_038_000, 42428)
246
			.saturating_add(T::DbWeight::get().reads(2_u64))
247
			.saturating_add(T::DbWeight::get().writes(1_u64))
248
	}
249
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
250
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
251
	/// Storage: `Scheduler::Retries` (r:0 w:1)
252
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
253
	fn cancel_retry() -> Weight {
254
		// Proof Size summary in bytes:
255
		//  Measured:  `8940`
256
		//  Estimated: `42428`
257
		// Minimum execution time: 27_539_000 picoseconds.
258
		Weight::from_parts(28_597_000, 42428)
259
			.saturating_add(T::DbWeight::get().reads(1_u64))
260
			.saturating_add(T::DbWeight::get().writes(1_u64))
261
	}
262
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
263
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
264
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
265
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
266
	/// Storage: `Scheduler::Retries` (r:0 w:1)
267
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
268
	fn cancel_retry_named() -> Weight {
269
		// Proof Size summary in bytes:
270
		//  Measured:  `9618`
271
		//  Estimated: `42428`
272
		// Minimum execution time: 34_619_000 picoseconds.
273
		Weight::from_parts(36_096_000, 42428)
274
			.saturating_add(T::DbWeight::get().reads(2_u64))
275
			.saturating_add(T::DbWeight::get().writes(1_u64))
276
	}
277
}