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-02, 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("dancelight-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=dancelight-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/dancelight_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_676_000 picoseconds.
64
		Weight::from_parts(4_833_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_026_000 picoseconds.
76
		Weight::from_parts(12_263_579, 42428)
77
			// Standard Error: 3_242
78
			.saturating_add(Weight::from_parts(448_900, 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_878_000 picoseconds.
87
		Weight::from_parts(4_995_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
		// Minimum execution time: 28_954_000 picoseconds.
100
		Weight::from_parts(29_211_000, 0)
101
			// Standard Error: 13
102
			.saturating_add(Weight::from_parts(1_445, 0).saturating_mul(s.into()))
103
			.saturating_add(T::DbWeight::get().reads(3_u64))
104
			.saturating_add(T::DbWeight::get().writes(2_u64))
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: 7_217_000 picoseconds.
113
		Weight::from_parts(7_461_000, 0)
114
			.saturating_add(T::DbWeight::get().writes(1_u64))
115
	}
116
	fn service_task_periodic() -> Weight {
117
		// Proof Size summary in bytes:
118
		//  Measured:  `0`
119
		//  Estimated: `0`
120
		// Minimum execution time: 4_837_000 picoseconds.
121
		Weight::from_parts(4_954_000, 0)
122
	}
123
	fn execute_dispatch_signed() -> Weight {
124
		// Proof Size summary in bytes:
125
		//  Measured:  `0`
126
		//  Estimated: `0`
127
		// Minimum execution time: 3_486_000 picoseconds.
128
		Weight::from_parts(3_589_000, 0)
129
	}
130
	fn execute_dispatch_unsigned() -> Weight {
131
		// Proof Size summary in bytes:
132
		//  Measured:  `0`
133
		//  Estimated: `0`
134
		// Minimum execution time: 3_478_000 picoseconds.
135
		Weight::from_parts(3_582_000, 0)
136
	}
137
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
138
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
139
	/// The range of component `s` is `[0, 49]`.
140
	fn schedule(s: u32, ) -> Weight {
141
		// Proof Size summary in bytes:
142
		//  Measured:  `78 + s * (177 ±0)`
143
		//  Estimated: `42428`
144
		// Minimum execution time: 14_727_000 picoseconds.
145
		Weight::from_parts(21_476_631, 42428)
146
			// Standard Error: 3_226
147
			.saturating_add(Weight::from_parts(505_717, 0).saturating_mul(s.into()))
148
			.saturating_add(T::DbWeight::get().reads(1_u64))
149
			.saturating_add(T::DbWeight::get().writes(1_u64))
150
	}
151
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
152
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
153
	/// Storage: `Scheduler::Retries` (r:0 w:1)
154
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
155
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
156
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
157
	/// The range of component `s` is `[1, 50]`.
158
	fn cancel(s: u32, ) -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `78 + s * (177 ±0)`
161
		//  Estimated: `42428`
162
		// Minimum execution time: 25_847_000 picoseconds.
163
		Weight::from_parts(25_003_584, 42428)
164
			// Standard Error: 1_510
165
			.saturating_add(Weight::from_parts(747_938, 0).saturating_mul(s.into()))
166
			.saturating_add(T::DbWeight::get().reads(1_u64))
167
			.saturating_add(T::DbWeight::get().writes(3_u64))
168
	}
169
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
170
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
171
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
172
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
173
	/// The range of component `s` is `[0, 49]`.
174
	fn schedule_named(s: u32, ) -> Weight {
175
		// Proof Size summary in bytes:
176
		//  Measured:  `255 + s * (185 ±0)`
177
		//  Estimated: `42428`
178
		// Minimum execution time: 19_569_000 picoseconds.
179
		Weight::from_parts(27_941_440, 42428)
180
			// Standard Error: 5_129
181
			.saturating_add(Weight::from_parts(555_368, 0).saturating_mul(s.into()))
182
			.saturating_add(T::DbWeight::get().reads(2_u64))
183
			.saturating_add(T::DbWeight::get().writes(2_u64))
184
	}
185
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
186
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
187
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
188
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
189
	/// Storage: `Scheduler::Retries` (r:0 w:1)
190
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
191
	/// The range of component `s` is `[1, 50]`.
192
	fn cancel_named(s: u32, ) -> Weight {
193
		// Proof Size summary in bytes:
194
		//  Measured:  `281 + s * (185 ±0)`
195
		//  Estimated: `42428`
196
		// Minimum execution time: 29_043_000 picoseconds.
197
		Weight::from_parts(29_687_734, 42428)
198
			// Standard Error: 1_519
199
			.saturating_add(Weight::from_parts(781_635, 0).saturating_mul(s.into()))
200
			.saturating_add(T::DbWeight::get().reads(2_u64))
201
			.saturating_add(T::DbWeight::get().writes(3_u64))
202
	}
203
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
204
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
205
	/// Storage: `Scheduler::Retries` (r:0 w:1)
206
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
207
	/// The range of component `s` is `[1, 50]`.
208
	fn schedule_retry(s: u32, ) -> Weight {
209
		// Proof Size summary in bytes:
210
		//  Measured:  `118`
211
		//  Estimated: `42428`
212
		// Minimum execution time: 17_165_000 picoseconds.
213
		Weight::from_parts(17_626_586, 42428)
214
			// Standard Error: 761
215
			.saturating_add(Weight::from_parts(34_927, 0).saturating_mul(s.into()))
216
			.saturating_add(T::DbWeight::get().reads(1_u64))
217
			.saturating_add(T::DbWeight::get().writes(2_u64))
218
	}
219
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
220
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
221
	/// Storage: `Scheduler::Retries` (r:0 w:1)
222
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
223
	fn set_retry() -> Weight {
224
		// Proof Size summary in bytes:
225
		//  Measured:  `8928`
226
		//  Estimated: `42428`
227
		// Minimum execution time: 37_118_000 picoseconds.
228
		Weight::from_parts(38_257_000, 42428)
229
			.saturating_add(T::DbWeight::get().reads(1_u64))
230
			.saturating_add(T::DbWeight::get().writes(1_u64))
231
	}
232
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
233
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
234
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
235
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
236
	/// Storage: `Scheduler::Retries` (r:0 w:1)
237
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
238
	fn set_retry_named() -> Weight {
239
		// Proof Size summary in bytes:
240
		//  Measured:  `9606`
241
		//  Estimated: `42428`
242
		// Minimum execution time: 45_911_000 picoseconds.
243
		Weight::from_parts(47_460_000, 42428)
244
			.saturating_add(T::DbWeight::get().reads(2_u64))
245
			.saturating_add(T::DbWeight::get().writes(1_u64))
246
	}
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 cancel_retry() -> Weight {
252
		// Proof Size summary in bytes:
253
		//  Measured:  `8940`
254
		//  Estimated: `42428`
255
		// Minimum execution time: 36_033_000 picoseconds.
256
		Weight::from_parts(37_107_000, 42428)
257
			.saturating_add(T::DbWeight::get().reads(1_u64))
258
			.saturating_add(T::DbWeight::get().writes(1_u64))
259
	}
260
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
261
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
262
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
263
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
264
	/// Storage: `Scheduler::Retries` (r:0 w:1)
265
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
266
	fn cancel_retry_named() -> Weight {
267
		// Proof Size summary in bytes:
268
		//  Measured:  `9618`
269
		//  Estimated: `42428`
270
		// Minimum execution time: 44_441_000 picoseconds.
271
		Weight::from_parts(45_562_000, 42428)
272
			.saturating_add(T::DbWeight::get().reads(2_u64))
273
			.saturating_add(T::DbWeight::get().writes(1_u64))
274
	}
275
}