1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi 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
// Tanssi 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 Tanssi.  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 32.0.0
21
//! DATE: 2025-05-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("starlight-dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/tanssi-relay
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_scheduler
34
// --extrinsic
35
// *
36
// --chain=starlight-dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/starlight_weights/pallet_scheduler.rs
46

            
47
#![cfg_attr(rustfmt, rustfmt_skip)]
48
#![allow(unused_parens)]
49
#![allow(unused_imports)]
50

            
51
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
52
use sp_std::marker::PhantomData;
53

            
54
/// Weights for pallet_scheduler using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> pallet_scheduler::WeightInfo for SubstrateWeight<T> {
57
	/// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
58
	/// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
59
	fn service_agendas_base() -> Weight {
60
		// Proof Size summary in bytes:
61
		//  Measured:  `31`
62
		//  Estimated: `1489`
63
		// Minimum execution time: 4_621_000 picoseconds.
64
		Weight::from_parts(4_818_000, 1489)
65
			.saturating_add(T::DbWeight::get().reads(1_u64))
66
			.saturating_add(T::DbWeight::get().writes(1_u64))
67
	}
68
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
69
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
70
	/// The range of component `s` is `[0, 50]`.
71
	fn service_agenda_base(s: u32, ) -> Weight {
72
		// Proof Size summary in bytes:
73
		//  Measured:  `78 + s * (177 ±0)`
74
		//  Estimated: `42428`
75
		// Minimum execution time: 5_178_000 picoseconds.
76
		Weight::from_parts(12_493_499, 42428)
77
			// Standard Error: 3_309
78
			.saturating_add(Weight::from_parts(419_936, 0).saturating_mul(s.into()))
79
			.saturating_add(T::DbWeight::get().reads(1_u64))
80
			.saturating_add(T::DbWeight::get().writes(1_u64))
81
	}
82
	fn service_task_base() -> Weight {
83
		// Proof Size summary in bytes:
84
		//  Measured:  `0`
85
		//  Estimated: `0`
86
		// Minimum execution time: 4_794_000 picoseconds.
87
		Weight::from_parts(4_937_000, 0)
88
	}
89
	/// Storage: `Preimage::PreimageFor` (r:1 w:1)
90
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
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: `0`
100
		// Minimum execution time: 28_830_000 picoseconds.
101
		Weight::from_parts(29_462_000, 0)
102
			// Standard Error: 7
103
			.saturating_add(Weight::from_parts(1_319, 0).saturating_mul(s.into()))
104
			.saturating_add(T::DbWeight::get().reads(3_u64))
105
			.saturating_add(T::DbWeight::get().writes(2_u64))
106
	}
107
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
108
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
109
	fn service_task_named() -> Weight {
110
		// Proof Size summary in bytes:
111
		//  Measured:  `0`
112
		//  Estimated: `0`
113
		// Minimum execution time: 7_085_000 picoseconds.
114
		Weight::from_parts(7_349_000, 0)
115
			.saturating_add(T::DbWeight::get().writes(1_u64))
116
	}
117
	fn service_task_periodic() -> Weight {
118
		// Proof Size summary in bytes:
119
		//  Measured:  `0`
120
		//  Estimated: `0`
121
		// Minimum execution time: 4_874_000 picoseconds.
122
		Weight::from_parts(5_015_000, 0)
123
	}
124
	fn execute_dispatch_signed() -> Weight {
125
		// Proof Size summary in bytes:
126
		//  Measured:  `0`
127
		//  Estimated: `0`
128
		// Minimum execution time: 3_590_000 picoseconds.
129
		Weight::from_parts(3_735_000, 0)
130
	}
131
	fn execute_dispatch_unsigned() -> Weight {
132
		// Proof Size summary in bytes:
133
		//  Measured:  `0`
134
		//  Estimated: `0`
135
		// Minimum execution time: 3_516_000 picoseconds.
136
		Weight::from_parts(3_641_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: 14_794_000 picoseconds.
146
		Weight::from_parts(21_400_677, 42428)
147
			// Standard Error: 3_147
148
			.saturating_add(Weight::from_parts(478_250, 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: 25_773_000 picoseconds.
164
		Weight::from_parts(25_049_020, 42428)
165
			// Standard Error: 1_600
166
			.saturating_add(Weight::from_parts(706_881, 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: 19_614_000 picoseconds.
180
		Weight::from_parts(28_323_245, 42428)
181
			// Standard Error: 4_578
182
			.saturating_add(Weight::from_parts(528_714, 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: 29_179_000 picoseconds.
198
		Weight::from_parts(29_660_571, 42428)
199
			// Standard Error: 1_544
200
			.saturating_add(Weight::from_parts(751_741, 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: 17_304_000 picoseconds.
214
		Weight::from_parts(17_697_990, 42428)
215
			// Standard Error: 785
216
			.saturating_add(Weight::from_parts(38_121, 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: 36_335_000 picoseconds.
229
		Weight::from_parts(37_641_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: 45_459_000 picoseconds.
244
		Weight::from_parts(46_564_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: 35_051_000 picoseconds.
257
		Weight::from_parts(36_189_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: 43_331_000 picoseconds.
272
		Weight::from_parts(44_956_000, 42428)
273
			.saturating_add(T::DbWeight::get().reads(2_u64))
274
			.saturating_add(T::DbWeight::get().writes(1_u64))
275
	}
276
}