collectives_westend_runtime/weights/pallet_scheduler.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_scheduler`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `e0f303704c84`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/collectives-westend-runtime/collectives_westend_runtime.wasm
31// --pallet=pallet_scheduler
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/collectives/collectives-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions 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: `30`
58 // Estimated: `1489`
59 // Minimum execution time: 3_657_000 picoseconds.
60 Weight::from_parts(3_803_000, 0)
61 .saturating_add(Weight::from_parts(0, 1489))
62 .saturating_add(T::DbWeight::get().reads(1))
63 .saturating_add(T::DbWeight::get().writes(1))
64 }
65 /// Storage: `Scheduler::Agenda` (r:1 w:1)
66 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
67 /// The range of component `s` is `[0, 200]`.
68 fn service_agenda_base(s: u32, ) -> Weight {
69 // Proof Size summary in bytes:
70 // Measured: `76 + s * (177 ±0)`
71 // Estimated: `159279`
72 // Minimum execution time: 4_335_000 picoseconds.
73 Weight::from_parts(652_490, 0)
74 .saturating_add(Weight::from_parts(0, 159279))
75 // Standard Error: 6_261
76 .saturating_add(Weight::from_parts(505_822, 0).saturating_mul(s.into()))
77 .saturating_add(T::DbWeight::get().reads(1))
78 .saturating_add(T::DbWeight::get().writes(1))
79 }
80 fn service_task_base() -> Weight {
81 // Proof Size summary in bytes:
82 // Measured: `0`
83 // Estimated: `0`
84 // Minimum execution time: 3_847_000 picoseconds.
85 Weight::from_parts(4_078_000, 0)
86 .saturating_add(Weight::from_parts(0, 0))
87 }
88 /// Storage: `Preimage::PreimageFor` (r:1 w:1)
89 /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
90 /// Storage: `Preimage::StatusFor` (r:1 w:0)
91 /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
92 /// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
93 /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
94 /// The range of component `s` is `[128, 4194304]`.
95 fn service_task_fetched(s: u32, ) -> Weight {
96 // Proof Size summary in bytes:
97 // Measured: `141 + s * (1 ±0)`
98 // Estimated: `3606 + s * (1 ±0)`
99 // Minimum execution time: 19_942_000 picoseconds.
100 Weight::from_parts(20_478_000, 0)
101 .saturating_add(Weight::from_parts(0, 3606))
102 // Standard Error: 325
103 .saturating_add(Weight::from_parts(30_896, 0).saturating_mul(s.into()))
104 .saturating_add(T::DbWeight::get().reads(3))
105 .saturating_add(T::DbWeight::get().writes(2))
106 .saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
107 }
108 /// Storage: `Scheduler::Lookup` (r:0 w:1)
109 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
110 fn service_task_named() -> Weight {
111 // Proof Size summary in bytes:
112 // Measured: `0`
113 // Estimated: `0`
114 // Minimum execution time: 5_476_000 picoseconds.
115 Weight::from_parts(5_797_000, 0)
116 .saturating_add(Weight::from_parts(0, 0))
117 .saturating_add(T::DbWeight::get().writes(1))
118 }
119 fn service_task_periodic() -> Weight {
120 // Proof Size summary in bytes:
121 // Measured: `0`
122 // Estimated: `0`
123 // Minimum execution time: 3_756_000 picoseconds.
124 Weight::from_parts(3_950_000, 0)
125 .saturating_add(Weight::from_parts(0, 0))
126 }
127 fn execute_dispatch_signed() -> Weight {
128 // Proof Size summary in bytes:
129 // Measured: `0`
130 // Estimated: `0`
131 // Minimum execution time: 2_205_000 picoseconds.
132 Weight::from_parts(2_407_000, 0)
133 .saturating_add(Weight::from_parts(0, 0))
134 }
135 fn execute_dispatch_unsigned() -> Weight {
136 // Proof Size summary in bytes:
137 // Measured: `0`
138 // Estimated: `0`
139 // Minimum execution time: 2_188_000 picoseconds.
140 Weight::from_parts(2_313_000, 0)
141 .saturating_add(Weight::from_parts(0, 0))
142 }
143 /// Storage: `Scheduler::Agenda` (r:1 w:1)
144 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
145 /// The range of component `s` is `[0, 199]`.
146 fn schedule(s: u32, ) -> Weight {
147 // Proof Size summary in bytes:
148 // Measured: `76 + s * (177 ±0)`
149 // Estimated: `159279`
150 // Minimum execution time: 11_131_000 picoseconds.
151 Weight::from_parts(9_815_127, 0)
152 .saturating_add(Weight::from_parts(0, 159279))
153 // Standard Error: 4_777
154 .saturating_add(Weight::from_parts(480_266, 0).saturating_mul(s.into()))
155 .saturating_add(T::DbWeight::get().reads(1))
156 .saturating_add(T::DbWeight::get().writes(1))
157 }
158 /// Storage: `Scheduler::Agenda` (r:1 w:1)
159 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
160 /// Storage: `Scheduler::Retries` (r:0 w:1)
161 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
162 /// Storage: `Scheduler::Lookup` (r:0 w:1)
163 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
164 /// The range of component `s` is `[1, 200]`.
165 fn cancel(s: u32, ) -> Weight {
166 // Proof Size summary in bytes:
167 // Measured: `76 + s * (177 ±0)`
168 // Estimated: `159279`
169 // Minimum execution time: 17_237_000 picoseconds.
170 Weight::from_parts(11_083_199, 0)
171 .saturating_add(Weight::from_parts(0, 159279))
172 // Standard Error: 5_569
173 .saturating_add(Weight::from_parts(707_879, 0).saturating_mul(s.into()))
174 .saturating_add(T::DbWeight::get().reads(1))
175 .saturating_add(T::DbWeight::get().writes(3))
176 }
177 /// Storage: `Scheduler::Lookup` (r:1 w:1)
178 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
179 /// Storage: `Scheduler::Agenda` (r:1 w:1)
180 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
181 /// The range of component `s` is `[0, 199]`.
182 fn schedule_named(s: u32, ) -> Weight {
183 // Proof Size summary in bytes:
184 // Measured: `467 + s * (179 ±0)`
185 // Estimated: `159279`
186 // Minimum execution time: 14_435_000 picoseconds.
187 Weight::from_parts(15_995_475, 0)
188 .saturating_add(Weight::from_parts(0, 159279))
189 // Standard Error: 4_486
190 .saturating_add(Weight::from_parts(500_209, 0).saturating_mul(s.into()))
191 .saturating_add(T::DbWeight::get().reads(2))
192 .saturating_add(T::DbWeight::get().writes(2))
193 }
194 /// Storage: `Scheduler::Lookup` (r:1 w:1)
195 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
196 /// Storage: `Scheduler::Agenda` (r:1 w:1)
197 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
198 /// Storage: `Scheduler::Retries` (r:0 w:1)
199 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
200 /// The range of component `s` is `[1, 200]`.
201 fn cancel_named(s: u32, ) -> Weight {
202 // Proof Size summary in bytes:
203 // Measured: `508 + s * (179 ±0)`
204 // Estimated: `159279`
205 // Minimum execution time: 19_568_000 picoseconds.
206 Weight::from_parts(16_398_260, 0)
207 .saturating_add(Weight::from_parts(0, 159279))
208 // Standard Error: 4_753
209 .saturating_add(Weight::from_parts(700_992, 0).saturating_mul(s.into()))
210 .saturating_add(T::DbWeight::get().reads(2))
211 .saturating_add(T::DbWeight::get().writes(3))
212 }
213 /// Storage: `Scheduler::Agenda` (r:1 w:1)
214 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
215 /// Storage: `Scheduler::Retries` (r:0 w:1)
216 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
217 /// The range of component `s` is `[1, 200]`.
218 fn schedule_retry(s: u32, ) -> Weight {
219 // Proof Size summary in bytes:
220 // Measured: `117`
221 // Estimated: `159279`
222 // Minimum execution time: 10_535_000 picoseconds.
223 Weight::from_parts(11_022_574, 0)
224 .saturating_add(Weight::from_parts(0, 159279))
225 // Standard Error: 294
226 .saturating_add(Weight::from_parts(28_445, 0).saturating_mul(s.into()))
227 .saturating_add(T::DbWeight::get().reads(1))
228 .saturating_add(T::DbWeight::get().writes(2))
229 }
230 /// Storage: `Scheduler::Agenda` (r:1 w:0)
231 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
232 /// Storage: `Scheduler::Retries` (r:0 w:1)
233 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
234 fn set_retry() -> Weight {
235 // Proof Size summary in bytes:
236 // Measured: `35480`
237 // Estimated: `159279`
238 // Minimum execution time: 70_733_000 picoseconds.
239 Weight::from_parts(73_390_000, 0)
240 .saturating_add(Weight::from_parts(0, 159279))
241 .saturating_add(T::DbWeight::get().reads(1))
242 .saturating_add(T::DbWeight::get().writes(1))
243 }
244 /// Storage: `Scheduler::Lookup` (r:1 w:0)
245 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
246 /// Storage: `Scheduler::Agenda` (r:1 w:0)
247 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
248 /// Storage: `Scheduler::Retries` (r:0 w:1)
249 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
250 fn set_retry_named() -> Weight {
251 // Proof Size summary in bytes:
252 // Measured: `36252`
253 // Estimated: `159279`
254 // Minimum execution time: 78_863_000 picoseconds.
255 Weight::from_parts(80_810_000, 0)
256 .saturating_add(Weight::from_parts(0, 159279))
257 .saturating_add(T::DbWeight::get().reads(2))
258 .saturating_add(T::DbWeight::get().writes(1))
259 }
260 /// Storage: `Scheduler::Agenda` (r:1 w:0)
261 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
262 /// Storage: `Scheduler::Retries` (r:0 w:1)
263 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
264 fn cancel_retry() -> Weight {
265 // Proof Size summary in bytes:
266 // Measured: `35492`
267 // Estimated: `159279`
268 // Minimum execution time: 71_348_000 picoseconds.
269 Weight::from_parts(73_177_000, 0)
270 .saturating_add(Weight::from_parts(0, 159279))
271 .saturating_add(T::DbWeight::get().reads(1))
272 .saturating_add(T::DbWeight::get().writes(1))
273 }
274 /// Storage: `Scheduler::Lookup` (r:1 w:0)
275 /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
276 /// Storage: `Scheduler::Agenda` (r:1 w:0)
277 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
278 /// Storage: `Scheduler::Retries` (r:0 w:1)
279 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
280 fn cancel_retry_named() -> Weight {
281 // Proof Size summary in bytes:
282 // Measured: `36264`
283 // Estimated: `159279`
284 // Minimum execution time: 78_998_000 picoseconds.
285 Weight::from_parts(80_991_000, 0)
286 .saturating_add(Weight::from_parts(0, 159279))
287 .saturating_add(T::DbWeight::get().reads(2))
288 .saturating_add(T::DbWeight::get().writes(1))
289 }
290}