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 32.0.0
21
//! DATE: 2025-05-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-198`, 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/moonriver-runtime/moonriver_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/moonriver/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: 3_607_000 picoseconds.
60
21
		Weight::from_parts(3_840_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
42
	fn service_agenda_base(s: u32, ) -> Weight {
68
42
		// Proof Size summary in bytes:
69
42
		//  Measured:  `78 + s * (177 ±0)`
70
42
		//  Estimated: `42428`
71
42
		// Minimum execution time: 3_881_000 picoseconds.
72
42
		Weight::from_parts(7_192_180, 42428)
73
42
			// Standard Error: 1_587
74
42
			.saturating_add(Weight::from_parts(352_346, 0).saturating_mul(s.into()))
75
42
			.saturating_add(T::DbWeight::get().reads(1_u64))
76
42
			.saturating_add(T::DbWeight::get().writes(1_u64))
77
42
	}
78
	fn service_task_base() -> Weight {
79
		// Proof Size summary in bytes:
80
		//  Measured:  `0`
81
		//  Estimated: `0`
82
		// Minimum execution time: 3_431_000 picoseconds.
83
		Weight::from_parts(3_552_000, 0)
84
	}
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
	fn service_task_fetched(s: u32, ) -> Weight {
93
		// Proof Size summary in bytes:
94
		//  Measured:  `179 + s * (1 ±0)`
95
		//  Estimated: `3644 + s * (1 ±0)`
96
		// Minimum execution time: 19_585_000 picoseconds.
97
		Weight::from_parts(19_990_000, 3644)
98
			// Standard Error: 244
99
			.saturating_add(Weight::from_parts(23_111, 0).saturating_mul(s.into()))
100
			.saturating_add(T::DbWeight::get().reads(3_u64))
101
			.saturating_add(T::DbWeight::get().writes(2_u64))
102
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
103
	}
104
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
105
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
106
	fn service_task_named() -> Weight {
107
		// Proof Size summary in bytes:
108
		//  Measured:  `0`
109
		//  Estimated: `0`
110
		// Minimum execution time: 5_035_000 picoseconds.
111
		Weight::from_parts(5_210_000, 0)
112
			.saturating_add(T::DbWeight::get().writes(1_u64))
113
	}
114
	fn service_task_periodic() -> Weight {
115
		// Proof Size summary in bytes:
116
		//  Measured:  `0`
117
		//  Estimated: `0`
118
		// Minimum execution time: 3_399_000 picoseconds.
119
		Weight::from_parts(3_640_000, 0)
120
	}
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_986_000 picoseconds.
128
		Weight::from_parts(5_220_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_367_000 picoseconds.
136
		Weight::from_parts(2_531_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: 10_964_000 picoseconds.
146
		Weight::from_parts(14_143_905, 42428)
147
			// Standard Error: 1_535
148
			.saturating_add(Weight::from_parts(392_034, 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: 16_457_000 picoseconds.
164
		Weight::from_parts(16_395_753, 42428)
165
			// Standard Error: 1_017
166
			.saturating_add(Weight::from_parts(594_061, 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: 14_550_000 picoseconds.
180
		Weight::from_parts(19_439_698, 42428)
181
			// Standard Error: 3_117
182
			.saturating_add(Weight::from_parts(437_845, 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: 19_141_000 picoseconds.
198
		Weight::from_parts(20_126_104, 42428)
199
			// Standard Error: 1_506
200
			.saturating_add(Weight::from_parts(636_457, 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: 10_187_000 picoseconds.
214
		Weight::from_parts(10_505_266, 42428)
215
			// Standard Error: 427
216
			.saturating_add(Weight::from_parts(32_386, 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_925_000 picoseconds.
229
		Weight::from_parts(27_386_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: 37_238_000 picoseconds.
244
		Weight::from_parts(38_400_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: 25_548_000 picoseconds.
257
		Weight::from_parts(26_350_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: 36_407_000 picoseconds.
272
		Weight::from_parts(37_283_000, 42428)
273
			.saturating_add(T::DbWeight::get().reads(2_u64))
274
			.saturating_add(T::DbWeight::get().writes(1_u64))
275
	}
276
}