moonriver_runtime/weights/pallet_scheduler.rs
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 49.0.0
21//! DATE: 2025-12-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `ip-10-0-0-36`, 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
47use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
48use sp_std::marker::PhantomData;
49
50/// Weights for `pallet_scheduler`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<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 fn service_agendas_base() -> Weight {
56 // Proof Size summary in bytes:
57 // Measured: `31`
58 // Estimated: `1489`
59 // Minimum execution time: 5_936_000 picoseconds.
60 Weight::from_parts(6_232_000, 1489)
61 .saturating_add(T::DbWeight::get().reads(1_u64))
62 .saturating_add(T::DbWeight::get().writes(1_u64))
63 }
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 fn service_agenda_base(s: u32, ) -> Weight {
68 // Proof Size summary in bytes:
69 // Measured: `78 + s * (177 ±0)`
70 // Estimated: `42428`
71 // Minimum execution time: 3_544_000 picoseconds.
72 Weight::from_parts(6_985_590, 42428)
73 // Standard Error: 1_685
74 .saturating_add(Weight::from_parts(383_990, 0).saturating_mul(s.into()))
75 .saturating_add(T::DbWeight::get().reads(1_u64))
76 .saturating_add(T::DbWeight::get().writes(1_u64))
77 }
78 fn service_task_base() -> Weight {
79 // Proof Size summary in bytes:
80 // Measured: `0`
81 // Estimated: `0`
82 // Minimum execution time: 3_378_000 picoseconds.
83 Weight::from_parts(3_549_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: 18_732_000 picoseconds.
97 Weight::from_parts(18_982_000, 3644)
98 // Standard Error: 7
99 .saturating_add(Weight::from_parts(1_500, 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: 4_898_000 picoseconds.
111 Weight::from_parts(5_162_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_395_000 picoseconds.
119 Weight::from_parts(3_580_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: `80`
126 // Estimated: `1565`
127 // Minimum execution time: 5_210_000 picoseconds.
128 Weight::from_parts(5_473_000, 1565)
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_207_000 picoseconds.
136 Weight::from_parts(2_295_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_092_000 picoseconds.
146 Weight::from_parts(13_535_986, 42428)
147 // Standard Error: 1_637
148 .saturating_add(Weight::from_parts(417_673, 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_905_000 picoseconds.
164 Weight::from_parts(15_841_632, 42428)
165 // Standard Error: 1_120
166 .saturating_add(Weight::from_parts(637_312, 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_412_000 picoseconds.
180 Weight::from_parts(18_506_529, 42428)
181 // Standard Error: 3_011
182 .saturating_add(Weight::from_parts(462_762, 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_295_000 picoseconds.
198 Weight::from_parts(19_351_955, 42428)
199 // Standard Error: 1_655
200 .saturating_add(Weight::from_parts(679_195, 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_924_000 picoseconds.
214 Weight::from_parts(10_269_581, 42428)
215 // Standard Error: 426
216 .saturating_add(Weight::from_parts(27_760, 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: 26_565_000 picoseconds.
229 Weight::from_parts(27_689_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: 35_443_000 picoseconds.
244 Weight::from_parts(36_342_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_455_000 picoseconds.
257 Weight::from_parts(26_218_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: 34_028_000 picoseconds.
272 Weight::from_parts(35_474_000, 42428)
273 .saturating_add(T::DbWeight::get().reads(2_u64))
274 .saturating_add(T::DbWeight::get().writes(1_u64))
275 }
276}