westend_runtime/weights/pallet_scheduler.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot 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// Polkadot 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 Polkadot. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `pallet_scheduler`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `3a2e9ae8a8f5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/westend-runtime/westend_runtime.wasm
32// --pallet=pallet_scheduler
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_scheduler`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<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 fn service_agendas_base() -> Weight {
57 // Proof Size summary in bytes:
58 // Measured: `68`
59 // Estimated: `1489`
60 // Minimum execution time: 4_441_000 picoseconds.
61 Weight::from_parts(4_623_000, 0)
62 .saturating_add(Weight::from_parts(0, 1489))
63 .saturating_add(T::DbWeight::get().reads(1))
64 .saturating_add(T::DbWeight::get().writes(1))
65 }
66 /// Storage: `Scheduler::Agenda` (r:1 w:1)
67 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
68 /// The range of component `s` is `[0, 50]`.
69 fn service_agenda_base(s: u32, ) -> Weight {
70 // Proof Size summary in bytes:
71 // Measured: `115 + s * (177 ±0)`
72 // Estimated: `42428`
73 // Minimum execution time: 4_664_000 picoseconds.
74 Weight::from_parts(11_471_926, 0)
75 .saturating_add(Weight::from_parts(0, 42428))
76 // Standard Error: 3_126
77 .saturating_add(Weight::from_parts(360_894, 0).saturating_mul(s.into()))
78 .saturating_add(T::DbWeight::get().reads(1))
79 .saturating_add(T::DbWeight::get().writes(1))
80 }
81 fn service_task_base() -> Weight {
82 // Proof Size summary in bytes:
83 // Measured: `0`
84 // Estimated: `0`
85 // Minimum execution time: 3_795_000 picoseconds.
86 Weight::from_parts(4_029_000, 0)
87 .saturating_add(Weight::from_parts(0, 0))
88 }
89 /// Storage: `Preimage::PreimageFor` (r:1 w:1)
90 /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
91 /// Storage: `Preimage::StatusFor` (r:1 w:0)
92 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
93 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
94 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
95 /// The range of component `s` is `[128, 4194304]`.
96 fn service_task_fetched(s: u32, ) -> Weight {
97 // Proof Size summary in bytes:
98 // Measured: `179 + s * (1 ±0)`
99 // Estimated: `3644 + s * (1 ±0)`
100 // Minimum execution time: 24_224_000 picoseconds.
101 Weight::from_parts(24_784_000, 0)
102 .saturating_add(Weight::from_parts(0, 3644))
103 // Standard Error: 343
104 .saturating_add(Weight::from_parts(30_390, 0).saturating_mul(s.into()))
105 .saturating_add(T::DbWeight::get().reads(3))
106 .saturating_add(T::DbWeight::get().writes(2))
107 .saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
108 }
109 /// Storage: `Scheduler::Lookup` (r:0 w:1)
110 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
111 fn service_task_named() -> Weight {
112 // Proof Size summary in bytes:
113 // Measured: `0`
114 // Estimated: `0`
115 // Minimum execution time: 5_459_000 picoseconds.
116 Weight::from_parts(5_847_000, 0)
117 .saturating_add(Weight::from_parts(0, 0))
118 .saturating_add(T::DbWeight::get().writes(1))
119 }
120 fn service_task_periodic() -> Weight {
121 // Proof Size summary in bytes:
122 // Measured: `0`
123 // Estimated: `0`
124 // Minimum execution time: 3_816_000 picoseconds.
125 Weight::from_parts(3_937_000, 0)
126 .saturating_add(Weight::from_parts(0, 0))
127 }
128 fn execute_dispatch_signed() -> Weight {
129 // Proof Size summary in bytes:
130 // Measured: `0`
131 // Estimated: `0`
132 // Minimum execution time: 2_306_000 picoseconds.
133 Weight::from_parts(2_511_000, 0)
134 .saturating_add(Weight::from_parts(0, 0))
135 }
136 fn execute_dispatch_unsigned() -> Weight {
137 // Proof Size summary in bytes:
138 // Measured: `0`
139 // Estimated: `0`
140 // Minimum execution time: 2_296_000 picoseconds.
141 Weight::from_parts(2_431_000, 0)
142 .saturating_add(Weight::from_parts(0, 0))
143 }
144 /// Storage: `Scheduler::Agenda` (r:1 w:1)
145 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
146 /// The range of component `s` is `[0, 49]`.
147 fn schedule(s: u32, ) -> Weight {
148 // Proof Size summary in bytes:
149 // Measured: `115 + s * (177 ±0)`
150 // Estimated: `42428`
151 // Minimum execution time: 12_204_000 picoseconds.
152 Weight::from_parts(18_541_327, 0)
153 .saturating_add(Weight::from_parts(0, 42428))
154 // Standard Error: 3_093
155 .saturating_add(Weight::from_parts(407_367, 0).saturating_mul(s.into()))
156 .saturating_add(T::DbWeight::get().reads(1))
157 .saturating_add(T::DbWeight::get().writes(1))
158 }
159 /// Storage: `Scheduler::Agenda` (r:1 w:1)
160 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
161 /// Storage: `Scheduler::Retries` (r:0 w:1)
162 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
163 /// Storage: `Scheduler::Lookup` (r:0 w:1)
164 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
165 /// The range of component `s` is `[1, 50]`.
166 fn cancel(s: u32, ) -> Weight {
167 // Proof Size summary in bytes:
168 // Measured: `115 + s * (177 ±0)`
169 // Estimated: `42428`
170 // Minimum execution time: 20_962_000 picoseconds.
171 Weight::from_parts(21_273_113, 0)
172 .saturating_add(Weight::from_parts(0, 42428))
173 // Standard Error: 1_869
174 .saturating_add(Weight::from_parts(593_800, 0).saturating_mul(s.into()))
175 .saturating_add(T::DbWeight::get().reads(1))
176 .saturating_add(T::DbWeight::get().writes(3))
177 }
178 /// Storage: `Scheduler::Lookup` (r:1 w:1)
179 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
180 /// Storage: `Scheduler::Agenda` (r:1 w:1)
181 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
182 /// The range of component `s` is `[0, 49]`.
183 fn schedule_named(s: u32, ) -> Weight {
184 // Proof Size summary in bytes:
185 // Measured: `292 + s * (185 ±0)`
186 // Estimated: `42428`
187 // Minimum execution time: 15_672_000 picoseconds.
188 Weight::from_parts(23_639_859, 0)
189 .saturating_add(Weight::from_parts(0, 42428))
190 // Standard Error: 4_219
191 .saturating_add(Weight::from_parts(467_925, 0).saturating_mul(s.into()))
192 .saturating_add(T::DbWeight::get().reads(2))
193 .saturating_add(T::DbWeight::get().writes(2))
194 }
195 /// Storage: `Scheduler::Lookup` (r:1 w:1)
196 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
197 /// Storage: `Scheduler::Agenda` (r:1 w:1)
198 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
199 /// Storage: `Scheduler::Retries` (r:0 w:1)
200 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
201 /// The range of component `s` is `[1, 50]`.
202 fn cancel_named(s: u32, ) -> Weight {
203 // Proof Size summary in bytes:
204 // Measured: `318 + s * (185 ±0)`
205 // Estimated: `42428`
206 // Minimum execution time: 23_671_000 picoseconds.
207 Weight::from_parts(24_871_802, 0)
208 .saturating_add(Weight::from_parts(0, 42428))
209 // Standard Error: 1_859
210 .saturating_add(Weight::from_parts(629_450, 0).saturating_mul(s.into()))
211 .saturating_add(T::DbWeight::get().reads(2))
212 .saturating_add(T::DbWeight::get().writes(3))
213 }
214 /// Storage: `Scheduler::Agenda` (r:1 w:1)
215 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
216 /// Storage: `Scheduler::Retries` (r:0 w:1)
217 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
218 /// The range of component `s` is `[1, 50]`.
219 fn schedule_retry(s: u32, ) -> Weight {
220 // Proof Size summary in bytes:
221 // Measured: `155`
222 // Estimated: `42428`
223 // Minimum execution time: 14_919_000 picoseconds.
224 Weight::from_parts(15_402_950, 0)
225 .saturating_add(Weight::from_parts(0, 42428))
226 // Standard Error: 751
227 .saturating_add(Weight::from_parts(30_479, 0).saturating_mul(s.into()))
228 .saturating_add(T::DbWeight::get().reads(1))
229 .saturating_add(T::DbWeight::get().writes(2))
230 }
231 /// Storage: `Scheduler::Agenda` (r:1 w:0)
232 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
233 /// Storage: `Scheduler::Retries` (r:0 w:1)
234 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
235 fn set_retry() -> Weight {
236 // Proof Size summary in bytes:
237 // Measured: `8965`
238 // Estimated: `42428`
239 // Minimum execution time: 30_185_000 picoseconds.
240 Weight::from_parts(31_937_000, 0)
241 .saturating_add(Weight::from_parts(0, 42428))
242 .saturating_add(T::DbWeight::get().reads(1))
243 .saturating_add(T::DbWeight::get().writes(1))
244 }
245 /// Storage: `Scheduler::Lookup` (r:1 w:0)
246 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
247 /// Storage: `Scheduler::Agenda` (r:1 w:0)
248 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
249 /// Storage: `Scheduler::Retries` (r:0 w:1)
250 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
251 fn set_retry_named() -> Weight {
252 // Proof Size summary in bytes:
253 // Measured: `9643`
254 // Estimated: `42428`
255 // Minimum execution time: 38_375_000 picoseconds.
256 Weight::from_parts(39_701_000, 0)
257 .saturating_add(Weight::from_parts(0, 42428))
258 .saturating_add(T::DbWeight::get().reads(2))
259 .saturating_add(T::DbWeight::get().writes(1))
260 }
261 /// Storage: `Scheduler::Agenda` (r:1 w:0)
262 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
263 /// Storage: `Scheduler::Retries` (r:0 w:1)
264 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
265 fn cancel_retry() -> Weight {
266 // Proof Size summary in bytes:
267 // Measured: `8977`
268 // Estimated: `42428`
269 // Minimum execution time: 29_797_000 picoseconds.
270 Weight::from_parts(30_298_000, 0)
271 .saturating_add(Weight::from_parts(0, 42428))
272 .saturating_add(T::DbWeight::get().reads(1))
273 .saturating_add(T::DbWeight::get().writes(1))
274 }
275 /// Storage: `Scheduler::Lookup` (r:1 w:0)
276 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
277 /// Storage: `Scheduler::Agenda` (r:1 w:0)
278 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
279 /// Storage: `Scheduler::Retries` (r:0 w:1)
280 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
281 fn cancel_retry_named() -> Weight {
282 // Proof Size summary in bytes:
283 // Measured: `9655`
284 // Estimated: `42428`
285 // Minimum execution time: 37_375_000 picoseconds.
286 Weight::from_parts(38_679_000, 0)
287 .saturating_add(Weight::from_parts(0, 42428))
288 .saturating_add(T::DbWeight::get().reads(2))
289 .saturating_add(T::DbWeight::get().writes(1))
290 }
291}