pallet_scheduler/weights.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_scheduler`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_scheduler
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/scheduler/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --genesis-builder-policy=none
62// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier
63
64#![cfg_attr(rustfmt, rustfmt_skip)]
65#![allow(unused_parens)]
66#![allow(unused_imports)]
67#![allow(missing_docs)]
68#![allow(dead_code)]
69
70use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
71use core::marker::PhantomData;
72
73/// Weight functions needed for `pallet_scheduler`.
74pub trait WeightInfo {
75 fn service_agendas_base() -> Weight;
76 fn service_agenda_base(s: u32, ) -> Weight;
77 fn service_task_base() -> Weight;
78 fn service_task_fetched(s: u32, ) -> Weight;
79 fn service_task_named() -> Weight;
80 fn service_task_periodic() -> Weight;
81 fn execute_dispatch_signed() -> Weight;
82 fn execute_dispatch_unsigned() -> Weight;
83 fn schedule(s: u32, ) -> Weight;
84 fn cancel(s: u32, ) -> Weight;
85 fn schedule_named(s: u32, ) -> Weight;
86 fn cancel_named(s: u32, ) -> Weight;
87 fn schedule_retry(s: u32, ) -> Weight;
88 fn set_retry() -> Weight;
89 fn set_retry_named() -> Weight;
90 fn cancel_retry() -> Weight;
91 fn cancel_retry_named() -> Weight;
92}
93
94/// Weights for `pallet_scheduler` using the Substrate node and recommended hardware.
95pub struct SubstrateWeight<T>(PhantomData<T>);
96impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
97 /// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
98 /// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
99 fn service_agendas_base() -> Weight {
100 // Proof Size summary in bytes:
101 // Measured: `0`
102 // Estimated: `1489`
103 // Minimum execution time: 1_275_000 picoseconds.
104 Weight::from_parts(1_335_000, 1489)
105 .saturating_add(T::DbWeight::get().reads(1_u64))
106 .saturating_add(T::DbWeight::get().writes(1_u64))
107 }
108 /// Storage: `Scheduler::Agenda` (r:1 w:1)
109 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
110 /// The range of component `s` is `[0, 512]`.
111 fn service_agenda_base(s: u32, ) -> Weight {
112 // Proof Size summary in bytes:
113 // Measured: `5 + s * (177 ±0)`
114 // Estimated: `110487`
115 // Minimum execution time: 2_379_000 picoseconds.
116 Weight::from_parts(2_409_000, 110487)
117 // Standard Error: 990
118 .saturating_add(Weight::from_parts(486_046, 0).saturating_mul(s.into()))
119 .saturating_add(T::DbWeight::get().reads(1_u64))
120 .saturating_add(T::DbWeight::get().writes(1_u64))
121 }
122 fn service_task_base() -> Weight {
123 // Proof Size summary in bytes:
124 // Measured: `0`
125 // Estimated: `0`
126 // Minimum execution time: 2_889_000 picoseconds.
127 Weight::from_parts(2_991_000, 0)
128 }
129 /// Storage: `Preimage::PreimageFor` (r:1 w:1)
130 /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
131 /// Storage: `Preimage::StatusFor` (r:1 w:0)
132 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
133 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
134 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
135 /// The range of component `s` is `[128, 4194304]`.
136 fn service_task_fetched(s: u32, ) -> Weight {
137 // Proof Size summary in bytes:
138 // Measured: `66 + s * (1 ±0)`
139 // Estimated: `3556 + s * (1 ±0)`
140 // Minimum execution time: 16_320_000 picoseconds.
141 Weight::from_parts(16_792_000, 3556)
142 // Standard Error: 263
143 .saturating_add(Weight::from_parts(23_402, 0).saturating_mul(s.into()))
144 .saturating_add(T::DbWeight::get().reads(3_u64))
145 .saturating_add(T::DbWeight::get().writes(2_u64))
146 .saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
147 }
148 /// Storage: `Scheduler::Lookup` (r:0 w:1)
149 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
150 fn service_task_named() -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `0`
153 // Estimated: `0`
154 // Minimum execution time: 4_107_000 picoseconds.
155 Weight::from_parts(4_292_000, 0)
156 .saturating_add(T::DbWeight::get().writes(1_u64))
157 }
158 fn service_task_periodic() -> Weight {
159 // Proof Size summary in bytes:
160 // Measured: `0`
161 // Estimated: `0`
162 // Minimum execution time: 2_895_000 picoseconds.
163 Weight::from_parts(2_974_000, 0)
164 }
165 /// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
166 /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
167 /// Storage: `TxPause::PausedCalls` (r:1 w:0)
168 /// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
169 fn execute_dispatch_signed() -> Weight {
170 // Proof Size summary in bytes:
171 // Measured: `0`
172 // Estimated: `3997`
173 // Minimum execution time: 4_008_000 picoseconds.
174 Weight::from_parts(4_155_000, 3997)
175 .saturating_add(T::DbWeight::get().reads(2_u64))
176 }
177 fn execute_dispatch_unsigned() -> Weight {
178 // Proof Size summary in bytes:
179 // Measured: `0`
180 // Estimated: `0`
181 // Minimum execution time: 1_776_000 picoseconds.
182 Weight::from_parts(1_858_000, 0)
183 }
184 /// Storage: `Scheduler::Agenda` (r:1 w:1)
185 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
186 /// The range of component `s` is `[0, 511]`.
187 fn schedule(s: u32, ) -> Weight {
188 // Proof Size summary in bytes:
189 // Measured: `5 + s * (177 ±0)`
190 // Estimated: `110487`
191 // Minimum execution time: 7_853_000 picoseconds.
192 Weight::from_parts(3_815_234, 110487)
193 // Standard Error: 1_794
194 .saturating_add(Weight::from_parts(538_417, 0).saturating_mul(s.into()))
195 .saturating_add(T::DbWeight::get().reads(1_u64))
196 .saturating_add(T::DbWeight::get().writes(1_u64))
197 }
198 /// Storage: `Scheduler::Agenda` (r:1 w:1)
199 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
200 /// Storage: `Scheduler::Retries` (r:0 w:1)
201 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
202 /// Storage: `Scheduler::Lookup` (r:0 w:1)
203 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
204 /// The range of component `s` is `[1, 512]`.
205 fn cancel(s: u32, ) -> Weight {
206 // Proof Size summary in bytes:
207 // Measured: `5 + s * (177 ±0)`
208 // Estimated: `110487`
209 // Minimum execution time: 13_972_000 picoseconds.
210 Weight::from_parts(2_524_382, 110487)
211 // Standard Error: 2_303
212 .saturating_add(Weight::from_parts(777_710, 0).saturating_mul(s.into()))
213 .saturating_add(T::DbWeight::get().reads(1_u64))
214 .saturating_add(T::DbWeight::get().writes(3_u64))
215 }
216 /// Storage: `Scheduler::Lookup` (r:1 w:1)
217 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
218 /// Storage: `Scheduler::Agenda` (r:1 w:1)
219 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
220 /// The range of component `s` is `[0, 511]`.
221 fn schedule_named(s: u32, ) -> Weight {
222 // Proof Size summary in bytes:
223 // Measured: `521 + s * (178 ±0)`
224 // Estimated: `110487`
225 // Minimum execution time: 11_024_000 picoseconds.
226 Weight::from_parts(8_965_037, 110487)
227 // Standard Error: 1_998
228 .saturating_add(Weight::from_parts(559_963, 0).saturating_mul(s.into()))
229 .saturating_add(T::DbWeight::get().reads(2_u64))
230 .saturating_add(T::DbWeight::get().writes(2_u64))
231 }
232 /// Storage: `Scheduler::Lookup` (r:1 w:1)
233 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
234 /// Storage: `Scheduler::Agenda` (r:1 w:1)
235 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
236 /// Storage: `Scheduler::Retries` (r:0 w:1)
237 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
238 /// The range of component `s` is `[1, 512]`.
239 fn cancel_named(s: u32, ) -> Weight {
240 // Proof Size summary in bytes:
241 // Measured: `634 + s * (177 ±0)`
242 // Estimated: `110487`
243 // Minimum execution time: 16_476_000 picoseconds.
244 Weight::from_parts(7_403_622, 110487)
245 // Standard Error: 2_213
246 .saturating_add(Weight::from_parts(778_228, 0).saturating_mul(s.into()))
247 .saturating_add(T::DbWeight::get().reads(2_u64))
248 .saturating_add(T::DbWeight::get().writes(3_u64))
249 }
250 /// Storage: `Scheduler::Agenda` (r:1 w:1)
251 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
252 /// Storage: `Scheduler::Retries` (r:0 w:1)
253 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
254 /// The range of component `s` is `[1, 512]`.
255 fn schedule_retry(s: u32, ) -> Weight {
256 // Proof Size summary in bytes:
257 // Measured: `31`
258 // Estimated: `110487`
259 // Minimum execution time: 8_844_000 picoseconds.
260 Weight::from_parts(10_762_174, 110487)
261 // Standard Error: 267
262 .saturating_add(Weight::from_parts(16_285, 0).saturating_mul(s.into()))
263 .saturating_add(T::DbWeight::get().reads(1_u64))
264 .saturating_add(T::DbWeight::get().writes(2_u64))
265 }
266 /// Storage: `Scheduler::Agenda` (r:1 w:0)
267 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, 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 set_retry() -> Weight {
271 // Proof Size summary in bytes:
272 // Measured: `90629`
273 // Estimated: `110487`
274 // Minimum execution time: 160_504_000 picoseconds.
275 Weight::from_parts(169_783_000, 110487)
276 .saturating_add(T::DbWeight::get().reads(1_u64))
277 .saturating_add(T::DbWeight::get().writes(1_u64))
278 }
279 /// Storage: `Scheduler::Lookup` (r:1 w:0)
280 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
281 /// Storage: `Scheduler::Agenda` (r:1 w:0)
282 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
283 /// Storage: `Scheduler::Retries` (r:0 w:1)
284 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
285 fn set_retry_named() -> Weight {
286 // Proof Size summary in bytes:
287 // Measured: `91672`
288 // Estimated: `110487`
289 // Minimum execution time: 170_680_000 picoseconds.
290 Weight::from_parts(186_544_000, 110487)
291 .saturating_add(T::DbWeight::get().reads(2_u64))
292 .saturating_add(T::DbWeight::get().writes(1_u64))
293 }
294 /// Storage: `Scheduler::Agenda` (r:1 w:0)
295 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
296 /// Storage: `Scheduler::Retries` (r:0 w:1)
297 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
298 fn cancel_retry() -> Weight {
299 // Proof Size summary in bytes:
300 // Measured: `90630`
301 // Estimated: `110487`
302 // Minimum execution time: 161_130_000 picoseconds.
303 Weight::from_parts(169_076_000, 110487)
304 .saturating_add(T::DbWeight::get().reads(1_u64))
305 .saturating_add(T::DbWeight::get().writes(1_u64))
306 }
307 /// Storage: `Scheduler::Lookup` (r:1 w:0)
308 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
309 /// Storage: `Scheduler::Agenda` (r:1 w:0)
310 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
311 /// Storage: `Scheduler::Retries` (r:0 w:1)
312 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
313 fn cancel_retry_named() -> Weight {
314 // Proof Size summary in bytes:
315 // Measured: `91672`
316 // Estimated: `110487`
317 // Minimum execution time: 170_742_000 picoseconds.
318 Weight::from_parts(182_329_000, 110487)
319 .saturating_add(T::DbWeight::get().reads(2_u64))
320 .saturating_add(T::DbWeight::get().writes(1_u64))
321 }
322}
323
324// For backwards compatibility and tests.
325impl WeightInfo for () {
326 /// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
327 /// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
328 fn service_agendas_base() -> Weight {
329 // Proof Size summary in bytes:
330 // Measured: `0`
331 // Estimated: `1489`
332 // Minimum execution time: 1_275_000 picoseconds.
333 Weight::from_parts(1_335_000, 1489)
334 .saturating_add(RocksDbWeight::get().reads(1_u64))
335 .saturating_add(RocksDbWeight::get().writes(1_u64))
336 }
337 /// Storage: `Scheduler::Agenda` (r:1 w:1)
338 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
339 /// The range of component `s` is `[0, 512]`.
340 fn service_agenda_base(s: u32, ) -> Weight {
341 // Proof Size summary in bytes:
342 // Measured: `5 + s * (177 ±0)`
343 // Estimated: `110487`
344 // Minimum execution time: 2_379_000 picoseconds.
345 Weight::from_parts(2_409_000, 110487)
346 // Standard Error: 990
347 .saturating_add(Weight::from_parts(486_046, 0).saturating_mul(s.into()))
348 .saturating_add(RocksDbWeight::get().reads(1_u64))
349 .saturating_add(RocksDbWeight::get().writes(1_u64))
350 }
351 fn service_task_base() -> Weight {
352 // Proof Size summary in bytes:
353 // Measured: `0`
354 // Estimated: `0`
355 // Minimum execution time: 2_889_000 picoseconds.
356 Weight::from_parts(2_991_000, 0)
357 }
358 /// Storage: `Preimage::PreimageFor` (r:1 w:1)
359 /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
360 /// Storage: `Preimage::StatusFor` (r:1 w:0)
361 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
362 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
363 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
364 /// The range of component `s` is `[128, 4194304]`.
365 fn service_task_fetched(s: u32, ) -> Weight {
366 // Proof Size summary in bytes:
367 // Measured: `66 + s * (1 ±0)`
368 // Estimated: `3556 + s * (1 ±0)`
369 // Minimum execution time: 16_320_000 picoseconds.
370 Weight::from_parts(16_792_000, 3556)
371 // Standard Error: 263
372 .saturating_add(Weight::from_parts(23_402, 0).saturating_mul(s.into()))
373 .saturating_add(RocksDbWeight::get().reads(3_u64))
374 .saturating_add(RocksDbWeight::get().writes(2_u64))
375 .saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
376 }
377 /// Storage: `Scheduler::Lookup` (r:0 w:1)
378 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
379 fn service_task_named() -> Weight {
380 // Proof Size summary in bytes:
381 // Measured: `0`
382 // Estimated: `0`
383 // Minimum execution time: 4_107_000 picoseconds.
384 Weight::from_parts(4_292_000, 0)
385 .saturating_add(RocksDbWeight::get().writes(1_u64))
386 }
387 fn service_task_periodic() -> Weight {
388 // Proof Size summary in bytes:
389 // Measured: `0`
390 // Estimated: `0`
391 // Minimum execution time: 2_895_000 picoseconds.
392 Weight::from_parts(2_974_000, 0)
393 }
394 /// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
395 /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
396 /// Storage: `TxPause::PausedCalls` (r:1 w:0)
397 /// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
398 fn execute_dispatch_signed() -> Weight {
399 // Proof Size summary in bytes:
400 // Measured: `0`
401 // Estimated: `3997`
402 // Minimum execution time: 4_008_000 picoseconds.
403 Weight::from_parts(4_155_000, 3997)
404 .saturating_add(RocksDbWeight::get().reads(2_u64))
405 }
406 fn execute_dispatch_unsigned() -> Weight {
407 // Proof Size summary in bytes:
408 // Measured: `0`
409 // Estimated: `0`
410 // Minimum execution time: 1_776_000 picoseconds.
411 Weight::from_parts(1_858_000, 0)
412 }
413 /// Storage: `Scheduler::Agenda` (r:1 w:1)
414 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
415 /// The range of component `s` is `[0, 511]`.
416 fn schedule(s: u32, ) -> Weight {
417 // Proof Size summary in bytes:
418 // Measured: `5 + s * (177 ±0)`
419 // Estimated: `110487`
420 // Minimum execution time: 7_853_000 picoseconds.
421 Weight::from_parts(3_815_234, 110487)
422 // Standard Error: 1_794
423 .saturating_add(Weight::from_parts(538_417, 0).saturating_mul(s.into()))
424 .saturating_add(RocksDbWeight::get().reads(1_u64))
425 .saturating_add(RocksDbWeight::get().writes(1_u64))
426 }
427 /// Storage: `Scheduler::Agenda` (r:1 w:1)
428 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
429 /// Storage: `Scheduler::Retries` (r:0 w:1)
430 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
431 /// Storage: `Scheduler::Lookup` (r:0 w:1)
432 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
433 /// The range of component `s` is `[1, 512]`.
434 fn cancel(s: u32, ) -> Weight {
435 // Proof Size summary in bytes:
436 // Measured: `5 + s * (177 ±0)`
437 // Estimated: `110487`
438 // Minimum execution time: 13_972_000 picoseconds.
439 Weight::from_parts(2_524_382, 110487)
440 // Standard Error: 2_303
441 .saturating_add(Weight::from_parts(777_710, 0).saturating_mul(s.into()))
442 .saturating_add(RocksDbWeight::get().reads(1_u64))
443 .saturating_add(RocksDbWeight::get().writes(3_u64))
444 }
445 /// Storage: `Scheduler::Lookup` (r:1 w:1)
446 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
447 /// Storage: `Scheduler::Agenda` (r:1 w:1)
448 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
449 /// The range of component `s` is `[0, 511]`.
450 fn schedule_named(s: u32, ) -> Weight {
451 // Proof Size summary in bytes:
452 // Measured: `521 + s * (178 ±0)`
453 // Estimated: `110487`
454 // Minimum execution time: 11_024_000 picoseconds.
455 Weight::from_parts(8_965_037, 110487)
456 // Standard Error: 1_998
457 .saturating_add(Weight::from_parts(559_963, 0).saturating_mul(s.into()))
458 .saturating_add(RocksDbWeight::get().reads(2_u64))
459 .saturating_add(RocksDbWeight::get().writes(2_u64))
460 }
461 /// Storage: `Scheduler::Lookup` (r:1 w:1)
462 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
463 /// Storage: `Scheduler::Agenda` (r:1 w:1)
464 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
465 /// Storage: `Scheduler::Retries` (r:0 w:1)
466 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
467 /// The range of component `s` is `[1, 512]`.
468 fn cancel_named(s: u32, ) -> Weight {
469 // Proof Size summary in bytes:
470 // Measured: `634 + s * (177 ±0)`
471 // Estimated: `110487`
472 // Minimum execution time: 16_476_000 picoseconds.
473 Weight::from_parts(7_403_622, 110487)
474 // Standard Error: 2_213
475 .saturating_add(Weight::from_parts(778_228, 0).saturating_mul(s.into()))
476 .saturating_add(RocksDbWeight::get().reads(2_u64))
477 .saturating_add(RocksDbWeight::get().writes(3_u64))
478 }
479 /// Storage: `Scheduler::Agenda` (r:1 w:1)
480 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
481 /// Storage: `Scheduler::Retries` (r:0 w:1)
482 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
483 /// The range of component `s` is `[1, 512]`.
484 fn schedule_retry(s: u32, ) -> Weight {
485 // Proof Size summary in bytes:
486 // Measured: `31`
487 // Estimated: `110487`
488 // Minimum execution time: 8_844_000 picoseconds.
489 Weight::from_parts(10_762_174, 110487)
490 // Standard Error: 267
491 .saturating_add(Weight::from_parts(16_285, 0).saturating_mul(s.into()))
492 .saturating_add(RocksDbWeight::get().reads(1_u64))
493 .saturating_add(RocksDbWeight::get().writes(2_u64))
494 }
495 /// Storage: `Scheduler::Agenda` (r:1 w:0)
496 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
497 /// Storage: `Scheduler::Retries` (r:0 w:1)
498 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
499 fn set_retry() -> Weight {
500 // Proof Size summary in bytes:
501 // Measured: `90629`
502 // Estimated: `110487`
503 // Minimum execution time: 160_504_000 picoseconds.
504 Weight::from_parts(169_783_000, 110487)
505 .saturating_add(RocksDbWeight::get().reads(1_u64))
506 .saturating_add(RocksDbWeight::get().writes(1_u64))
507 }
508 /// Storage: `Scheduler::Lookup` (r:1 w:0)
509 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
510 /// Storage: `Scheduler::Agenda` (r:1 w:0)
511 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
512 /// Storage: `Scheduler::Retries` (r:0 w:1)
513 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
514 fn set_retry_named() -> Weight {
515 // Proof Size summary in bytes:
516 // Measured: `91672`
517 // Estimated: `110487`
518 // Minimum execution time: 170_680_000 picoseconds.
519 Weight::from_parts(186_544_000, 110487)
520 .saturating_add(RocksDbWeight::get().reads(2_u64))
521 .saturating_add(RocksDbWeight::get().writes(1_u64))
522 }
523 /// Storage: `Scheduler::Agenda` (r:1 w:0)
524 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
525 /// Storage: `Scheduler::Retries` (r:0 w:1)
526 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
527 fn cancel_retry() -> Weight {
528 // Proof Size summary in bytes:
529 // Measured: `90630`
530 // Estimated: `110487`
531 // Minimum execution time: 161_130_000 picoseconds.
532 Weight::from_parts(169_076_000, 110487)
533 .saturating_add(RocksDbWeight::get().reads(1_u64))
534 .saturating_add(RocksDbWeight::get().writes(1_u64))
535 }
536 /// Storage: `Scheduler::Lookup` (r:1 w:0)
537 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
538 /// Storage: `Scheduler::Agenda` (r:1 w:0)
539 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
540 /// Storage: `Scheduler::Retries` (r:0 w:1)
541 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
542 fn cancel_retry_named() -> Weight {
543 // Proof Size summary in bytes:
544 // Measured: `91672`
545 // Estimated: `110487`
546 // Minimum execution time: 170_742_000 picoseconds.
547 Weight::from_parts(182_329_000, 110487)
548 .saturating_add(RocksDbWeight::get().reads(2_u64))
549 .saturating_add(RocksDbWeight::get().writes(1_u64))
550 }
551}