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 48.0.0
21
//! DATE: 2025-09-03, 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/moonbeam-runtime/moonbeam_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
// --output=./runtime/moonbeam/src/weights
42

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

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

            
50
/// Weights for `pallet_scheduler`.
51
pub struct WeightInfo<T>(PhantomData<T>);
52
impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> {
53
	/// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
54
	/// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
55
21
	fn service_agendas_base() -> Weight {
56
21
		// Proof Size summary in bytes:
57
21
		//  Measured:  `31`
58
21
		//  Estimated: `1489`
59
21
		// Minimum execution time: 6_044_000 picoseconds.
60
21
		Weight::from_parts(6_215_000, 1489)
61
21
			.saturating_add(T::DbWeight::get().reads(1_u64))
62
21
			.saturating_add(T::DbWeight::get().writes(1_u64))
63
21
	}
64
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
65
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
66
	/// The range of component `s` is `[0, 50]`.
67
39
	fn service_agenda_base(s: u32, ) -> Weight {
68
39
		// Proof Size summary in bytes:
69
39
		//  Measured:  `78 + s * (177 ±0)`
70
39
		//  Estimated: `42428`
71
39
		// Minimum execution time: 3_417_000 picoseconds.
72
39
		Weight::from_parts(6_640_549, 42428)
73
39
			// Standard Error: 1_527
74
39
			.saturating_add(Weight::from_parts(347_938, 0).saturating_mul(s.into()))
75
39
			.saturating_add(T::DbWeight::get().reads(1_u64))
76
39
			.saturating_add(T::DbWeight::get().writes(1_u64))
77
39
	}
78
3
	fn service_task_base() -> Weight {
79
3
		// Proof Size summary in bytes:
80
3
		//  Measured:  `0`
81
3
		//  Estimated: `0`
82
3
		// Minimum execution time: 3_295_000 picoseconds.
83
3
		Weight::from_parts(3_455_000, 0)
84
3
	}
85
	/// Storage: `Preimage::PreimageFor` (r:1 w:1)
86
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
87
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
88
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
89
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
90
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
91
	/// The range of component `s` is `[128, 4194304]`.
92
3
	fn service_task_fetched(s: u32, ) -> Weight {
93
3
		// Proof Size summary in bytes:
94
3
		//  Measured:  `179 + s * (1 ±0)`
95
3
		//  Estimated: `3644 + s * (1 ±0)`
96
3
		// Minimum execution time: 18_579_000 picoseconds.
97
3
		Weight::from_parts(18_898_000, 3644)
98
3
			// Standard Error: 4
99
3
			.saturating_add(Weight::from_parts(1_457, 0).saturating_mul(s.into()))
100
3
			.saturating_add(T::DbWeight::get().reads(3_u64))
101
3
			.saturating_add(T::DbWeight::get().writes(2_u64))
102
3
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
103
3
	}
104
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
105
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
106
3
	fn service_task_named() -> Weight {
107
3
		// Proof Size summary in bytes:
108
3
		//  Measured:  `0`
109
3
		//  Estimated: `0`
110
3
		// Minimum execution time: 4_765_000 picoseconds.
111
3
		Weight::from_parts(5_027_000, 0)
112
3
			.saturating_add(T::DbWeight::get().writes(1_u64))
113
3
	}
114
3
	fn service_task_periodic() -> Weight {
115
3
		// Proof Size summary in bytes:
116
3
		//  Measured:  `0`
117
3
		//  Estimated: `0`
118
3
		// Minimum execution time: 3_328_000 picoseconds.
119
3
		Weight::from_parts(3_415_000, 0)
120
3
	}
121
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
122
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
123
	fn execute_dispatch_signed() -> Weight {
124
		// Proof Size summary in bytes:
125
		//  Measured:  `42`
126
		//  Estimated: `1527`
127
		// Minimum execution time: 4_657_000 picoseconds.
128
		Weight::from_parts(4_837_000, 1527)
129
			.saturating_add(T::DbWeight::get().reads(1_u64))
130
	}
131
	fn execute_dispatch_unsigned() -> Weight {
132
		// Proof Size summary in bytes:
133
		//  Measured:  `0`
134
		//  Estimated: `0`
135
		// Minimum execution time: 2_295_000 picoseconds.
136
		Weight::from_parts(2_451_000, 0)
137
	}
138
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
139
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
140
	/// The range of component `s` is `[0, 49]`.
141
	fn schedule(s: u32, ) -> Weight {
142
		// Proof Size summary in bytes:
143
		//  Measured:  `78 + s * (177 ±0)`
144
		//  Estimated: `42428`
145
		// Minimum execution time: 9_970_000 picoseconds.
146
		Weight::from_parts(13_165_173, 42428)
147
			// Standard Error: 1_516
148
			.saturating_add(Weight::from_parts(387_955, 0).saturating_mul(s.into()))
149
			.saturating_add(T::DbWeight::get().reads(1_u64))
150
			.saturating_add(T::DbWeight::get().writes(1_u64))
151
	}
152
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
153
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
154
	/// Storage: `Scheduler::Retries` (r:0 w:1)
155
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
156
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
157
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
158
	/// The range of component `s` is `[1, 50]`.
159
	fn cancel(s: u32, ) -> Weight {
160
		// Proof Size summary in bytes:
161
		//  Measured:  `78 + s * (177 ±0)`
162
		//  Estimated: `42428`
163
		// Minimum execution time: 15_696_000 picoseconds.
164
		Weight::from_parts(15_513_197, 42428)
165
			// Standard Error: 1_015
166
			.saturating_add(Weight::from_parts(573_686, 0).saturating_mul(s.into()))
167
			.saturating_add(T::DbWeight::get().reads(1_u64))
168
			.saturating_add(T::DbWeight::get().writes(3_u64))
169
	}
170
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
171
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
172
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
173
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
174
	/// The range of component `s` is `[0, 49]`.
175
	fn schedule_named(s: u32, ) -> Weight {
176
		// Proof Size summary in bytes:
177
		//  Measured:  `255 + s * (185 ±0)`
178
		//  Estimated: `42428`
179
		// Minimum execution time: 13_431_000 picoseconds.
180
		Weight::from_parts(18_056_378, 42428)
181
			// Standard Error: 2_844
182
			.saturating_add(Weight::from_parts(436_776, 0).saturating_mul(s.into()))
183
			.saturating_add(T::DbWeight::get().reads(2_u64))
184
			.saturating_add(T::DbWeight::get().writes(2_u64))
185
	}
186
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
187
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
188
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
189
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
190
	/// Storage: `Scheduler::Retries` (r:0 w:1)
191
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
192
	/// The range of component `s` is `[1, 50]`.
193
	fn cancel_named(s: u32, ) -> Weight {
194
		// Proof Size summary in bytes:
195
		//  Measured:  `281 + s * (185 ±0)`
196
		//  Estimated: `42428`
197
		// Minimum execution time: 18_314_000 picoseconds.
198
		Weight::from_parts(19_058_216, 42428)
199
			// Standard Error: 1_425
200
			.saturating_add(Weight::from_parts(611_093, 0).saturating_mul(s.into()))
201
			.saturating_add(T::DbWeight::get().reads(2_u64))
202
			.saturating_add(T::DbWeight::get().writes(3_u64))
203
	}
204
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
205
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
206
	/// Storage: `Scheduler::Retries` (r:0 w:1)
207
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
208
	/// The range of component `s` is `[1, 50]`.
209
	fn schedule_retry(s: u32, ) -> Weight {
210
		// Proof Size summary in bytes:
211
		//  Measured:  `118`
212
		//  Estimated: `42428`
213
		// Minimum execution time: 9_479_000 picoseconds.
214
		Weight::from_parts(9_990_184, 42428)
215
			// Standard Error: 464
216
			.saturating_add(Weight::from_parts(27_714, 0).saturating_mul(s.into()))
217
			.saturating_add(T::DbWeight::get().reads(1_u64))
218
			.saturating_add(T::DbWeight::get().writes(2_u64))
219
	}
220
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
221
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
222
	/// Storage: `Scheduler::Retries` (r:0 w:1)
223
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
224
	fn set_retry() -> Weight {
225
		// Proof Size summary in bytes:
226
		//  Measured:  `8928`
227
		//  Estimated: `42428`
228
		// Minimum execution time: 25_029_000 picoseconds.
229
		Weight::from_parts(25_757_000, 42428)
230
			.saturating_add(T::DbWeight::get().reads(1_u64))
231
			.saturating_add(T::DbWeight::get().writes(1_u64))
232
	}
233
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
234
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
235
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
236
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
237
	/// Storage: `Scheduler::Retries` (r:0 w:1)
238
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
239
	fn set_retry_named() -> Weight {
240
		// Proof Size summary in bytes:
241
		//  Measured:  `9606`
242
		//  Estimated: `42428`
243
		// Minimum execution time: 33_968_000 picoseconds.
244
		Weight::from_parts(35_157_000, 42428)
245
			.saturating_add(T::DbWeight::get().reads(2_u64))
246
			.saturating_add(T::DbWeight::get().writes(1_u64))
247
	}
248
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
249
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
250
	/// Storage: `Scheduler::Retries` (r:0 w:1)
251
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
252
	fn cancel_retry() -> Weight {
253
		// Proof Size summary in bytes:
254
		//  Measured:  `8940`
255
		//  Estimated: `42428`
256
		// Minimum execution time: 23_303_000 picoseconds.
257
		Weight::from_parts(24_323_000, 42428)
258
			.saturating_add(T::DbWeight::get().reads(1_u64))
259
			.saturating_add(T::DbWeight::get().writes(1_u64))
260
	}
261
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
262
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
263
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
264
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
265
	/// Storage: `Scheduler::Retries` (r:0 w:1)
266
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
267
	fn cancel_retry_named() -> Weight {
268
		// Proof Size summary in bytes:
269
		//  Measured:  `9618`
270
		//  Estimated: `42428`
271
		// Minimum execution time: 32_704_000 picoseconds.
272
		Weight::from_parts(33_769_000, 42428)
273
			.saturating_add(T::DbWeight::get().reads(2_u64))
274
			.saturating_add(T::DbWeight::get().writes(1_u64))
275
	}
276
}