referrerpolicy=no-referrer-when-downgrade

asset_hub_westend_runtime/weights/
pallet_scheduler.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Cumulus.
3// SPDX-License-Identifier: Apache-2.0
4
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// 	http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17//! Autogenerated weights for `pallet_scheduler`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20//! DATE: 2024-01-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `runner-grjcggob-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("westend-dev")`, DB CACHE: 1024
24
25// Executed Command:
26// target/production/polkadot
27// benchmark
28// pallet
29// --steps=50
30// --repeat=20
31// --extrinsic=*
32// --wasm-execution=compiled
33// --heap-pages=4096
34// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
35// --pallet=pallet_scheduler
36// --chain=westend-dev
37// --header=./polkadot/file_header.txt
38// --output=./polkadot/runtime/westend/src/weights/
39
40#![cfg_attr(rustfmt, rustfmt_skip)]
41#![allow(unused_parens)]
42#![allow(unused_imports)]
43#![allow(missing_docs)]
44
45use frame_support::{traits::Get, weights::Weight};
46use core::marker::PhantomData;
47
48/// Weight functions for `pallet_scheduler`.
49pub struct WeightInfo<T>(PhantomData<T>);
50impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> {
51	/// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
52	/// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
53	fn service_agendas_base() -> Weight {
54		// Proof Size summary in bytes:
55		//  Measured:  `69`
56		//  Estimated: `1489`
57		// Minimum execution time: 3_220_000 picoseconds.
58		Weight::from_parts(3_512_000, 0)
59			.saturating_add(Weight::from_parts(0, 1489))
60			.saturating_add(T::DbWeight::get().reads(1))
61			.saturating_add(T::DbWeight::get().writes(1))
62	}
63	/// Storage: `Scheduler::Agenda` (r:1 w:1)
64	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
65	/// The range of component `s` is `[0, 50]`.
66	fn service_agenda_base(s: u32, ) -> Weight {
67		// Proof Size summary in bytes:
68		//  Measured:  `116 + s * (177 ±0)`
69		//  Estimated: `42428`
70		// Minimum execution time: 3_565_000 picoseconds.
71		Weight::from_parts(6_102_216, 0)
72			.saturating_add(Weight::from_parts(0, 42428))
73			// Standard Error: 1_413
74			.saturating_add(Weight::from_parts(339_016, 0).saturating_mul(s.into()))
75			.saturating_add(T::DbWeight::get().reads(1))
76			.saturating_add(T::DbWeight::get().writes(1))
77	}
78	fn service_task_base() -> Weight {
79		// Proof Size summary in bytes:
80		//  Measured:  `0`
81		//  Estimated: `0`
82		// Minimum execution time: 2_940_000 picoseconds.
83		Weight::from_parts(3_070_000, 0)
84			.saturating_add(Weight::from_parts(0, 0))
85	}
86	/// Storage: `Preimage::PreimageFor` (r:1 w:1)
87	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
88	/// Storage: `Preimage::StatusFor` (r:1 w:0)
89	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
90	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
91	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
92	/// The range of component `s` is `[128, 4194304]`.
93	fn service_task_fetched(s: u32, ) -> Weight {
94		// Proof Size summary in bytes:
95		//  Measured:  `217 + s * (1 ±0)`
96		//  Estimated: `3682 + s * (1 ±0)`
97		// Minimum execution time: 16_602_000 picoseconds.
98		Weight::from_parts(16_834_000, 0)
99			.saturating_add(Weight::from_parts(0, 3682))
100			// Standard Error: 10
101			.saturating_add(Weight::from_parts(1_307, 0).saturating_mul(s.into()))
102			.saturating_add(T::DbWeight::get().reads(3))
103			.saturating_add(T::DbWeight::get().writes(2))
104			.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
105	}
106	/// Storage: `Scheduler::Lookup` (r:0 w:1)
107	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
108	fn service_task_named() -> Weight {
109		// Proof Size summary in bytes:
110		//  Measured:  `0`
111		//  Estimated: `0`
112		// Minimum execution time: 4_202_000 picoseconds.
113		Weight::from_parts(4_383_000, 0)
114			.saturating_add(Weight::from_parts(0, 0))
115			.saturating_add(T::DbWeight::get().writes(1))
116	}
117	fn service_task_periodic() -> Weight {
118		// Proof Size summary in bytes:
119		//  Measured:  `0`
120		//  Estimated: `0`
121		// Minimum execution time: 2_917_000 picoseconds.
122		Weight::from_parts(3_043_000, 0)
123			.saturating_add(Weight::from_parts(0, 0))
124	}
125	fn execute_dispatch_signed() -> Weight {
126		// Proof Size summary in bytes:
127		//  Measured:  `0`
128		//  Estimated: `0`
129		// Minimum execution time: 1_707_000 picoseconds.
130		Weight::from_parts(1_802_000, 0)
131			.saturating_add(Weight::from_parts(0, 0))
132	}
133	fn execute_dispatch_unsigned() -> Weight {
134		// Proof Size summary in bytes:
135		//  Measured:  `0`
136		//  Estimated: `0`
137		// Minimum execution time: 1_671_000 picoseconds.
138		Weight::from_parts(1_796_000, 0)
139			.saturating_add(Weight::from_parts(0, 0))
140	}
141	/// Storage: `Scheduler::Agenda` (r:1 w:1)
142	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
143	/// The range of component `s` is `[0, 49]`.
144	fn schedule(s: u32, ) -> Weight {
145		// Proof Size summary in bytes:
146		//  Measured:  `116 + s * (177 ±0)`
147		//  Estimated: `42428`
148		// Minimum execution time: 9_313_000 picoseconds.
149		Weight::from_parts(12_146_613, 0)
150			.saturating_add(Weight::from_parts(0, 42428))
151			// Standard Error: 1_381
152			.saturating_add(Weight::from_parts(360_418, 0).saturating_mul(s.into()))
153			.saturating_add(T::DbWeight::get().reads(1))
154			.saturating_add(T::DbWeight::get().writes(1))
155	}
156	/// Storage: `Scheduler::Agenda` (r:1 w:1)
157	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
158	/// Storage: `Scheduler::Lookup` (r:0 w:1)
159	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
160	/// The range of component `s` is `[1, 50]`.
161	fn cancel(s: u32, ) -> Weight {
162		// Proof Size summary in bytes:
163		//  Measured:  `116 + s * (177 ±0)`
164		//  Estimated: `42428`
165		// Minimum execution time: 13_079_000 picoseconds.
166		Weight::from_parts(12_921_017, 0)
167			.saturating_add(Weight::from_parts(0, 42428))
168			// Standard Error: 1_112
169			.saturating_add(Weight::from_parts(538_089, 0).saturating_mul(s.into()))
170			.saturating_add(T::DbWeight::get().reads(1))
171			.saturating_add(T::DbWeight::get().writes(2))
172	}
173	/// Storage: `Scheduler::Lookup` (r:1 w:1)
174	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
175	/// Storage: `Scheduler::Agenda` (r:1 w:1)
176	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
177	/// The range of component `s` is `[0, 49]`.
178	fn schedule_named(s: u32, ) -> Weight {
179		// Proof Size summary in bytes:
180		//  Measured:  `293 + s * (185 ±0)`
181		//  Estimated: `42428`
182		// Minimum execution time: 12_458_000 picoseconds.
183		Weight::from_parts(16_009_539, 0)
184			.saturating_add(Weight::from_parts(0, 42428))
185			// Standard Error: 2_260
186			.saturating_add(Weight::from_parts(399_245, 0).saturating_mul(s.into()))
187			.saturating_add(T::DbWeight::get().reads(2))
188			.saturating_add(T::DbWeight::get().writes(2))
189	}
190	/// Storage: `Scheduler::Lookup` (r:1 w:1)
191	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
192	/// Storage: `Scheduler::Agenda` (r:1 w:1)
193	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
194	/// The range of component `s` is `[1, 50]`.
195	fn cancel_named(s: u32, ) -> Weight {
196		// Proof Size summary in bytes:
197		//  Measured:  `319 + s * (185 ±0)`
198		//  Estimated: `42428`
199		// Minimum execution time: 15_173_000 picoseconds.
200		Weight::from_parts(15_602_728, 0)
201			.saturating_add(Weight::from_parts(0, 42428))
202			// Standard Error: 1_302
203			.saturating_add(Weight::from_parts(557_878, 0).saturating_mul(s.into()))
204			.saturating_add(T::DbWeight::get().reads(2))
205			.saturating_add(T::DbWeight::get().writes(2))
206	}
207	/// Storage: `Scheduler::Retries` (r:1 w:2)
208	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
209	/// Storage: `Scheduler::Agenda` (r:1 w:1)
210	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
211	/// Storage: `Scheduler::Lookup` (r:0 w:1)
212	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
213	/// The range of component `s` is `[1, 50]`.
214	fn schedule_retry(s: u32, ) -> Weight {
215		// Proof Size summary in bytes:
216		//  Measured:  `197`
217		//  Estimated: `42428`
218		// Minimum execution time: 13_531_000 picoseconds.
219		Weight::from_parts(13_985_249, 0)
220			.saturating_add(Weight::from_parts(0, 42428))
221			// Standard Error: 619
222			.saturating_add(Weight::from_parts(39_068, 0).saturating_mul(s.into()))
223			.saturating_add(T::DbWeight::get().reads(2))
224			.saturating_add(T::DbWeight::get().writes(4))
225	}
226	/// Storage: `Scheduler::Agenda` (r:1 w:0)
227	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
228	/// Storage: `Scheduler::Retries` (r:0 w:1)
229	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
230	fn set_retry() -> Weight {
231		// Proof Size summary in bytes:
232		//  Measured:  `116 + s * (177 ±0)`
233		//  Estimated: `42428`
234		// Minimum execution time: 8_050_000 picoseconds.
235		Weight::from_parts(8_440_627, 0)
236			.saturating_add(Weight::from_parts(0, 42428))
237			.saturating_add(T::DbWeight::get().reads(1))
238			.saturating_add(T::DbWeight::get().writes(1))
239	}
240	/// Storage: `Scheduler::Lookup` (r:1 w:0)
241	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
242	/// Storage: `Scheduler::Agenda` (r:1 w:0)
243	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
244	/// Storage: `Scheduler::Retries` (r:0 w:1)
245	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
246	fn set_retry_named() -> Weight {
247		// Proof Size summary in bytes:
248		//  Measured:  `325 + s * (185 ±0)`
249		//  Estimated: `42428`
250		// Minimum execution time: 10_876_000 picoseconds.
251		Weight::from_parts(11_708_172, 0)
252			.saturating_add(Weight::from_parts(0, 42428))
253			.saturating_add(T::DbWeight::get().reads(2))
254			.saturating_add(T::DbWeight::get().writes(1))
255	}
256	/// Storage: `Scheduler::Agenda` (r:1 w:0)
257	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
258	/// Storage: `Scheduler::Retries` (r:0 w:1)
259	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
260	fn cancel_retry() -> Weight {
261		// Proof Size summary in bytes:
262		//  Measured:  `116 + s * (177 ±0)`
263		//  Estimated: `42428`
264		// Minimum execution time: 8_050_000 picoseconds.
265		Weight::from_parts(8_440_627, 0)
266			.saturating_add(Weight::from_parts(0, 42428))
267			.saturating_add(T::DbWeight::get().reads(1))
268			.saturating_add(T::DbWeight::get().writes(1))
269	}
270	/// Storage: `Scheduler::Lookup` (r:1 w:0)
271	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
272	/// Storage: `Scheduler::Agenda` (r:1 w:0)
273	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
274	/// Storage: `Scheduler::Retries` (r:0 w:1)
275	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
276	fn cancel_retry_named() -> Weight {
277		// Proof Size summary in bytes:
278		//  Measured:  `325 + s * (185 ±0)`
279		//  Estimated: `42428`
280		// Minimum execution time: 10_876_000 picoseconds.
281		Weight::from_parts(11_708_172, 0)
282			.saturating_add(Weight::from_parts(0, 42428))
283			.saturating_add(T::DbWeight::get().reads(2))
284			.saturating_add(T::DbWeight::get().writes(1))
285	}
286}