1
// Copyright 2024 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam 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
// Moonbeam 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 Moonbeam.  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 43.0.0
20
//! DATE: 2025-02-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
//! WORST CASE MAP SIZE: `1000000`
22
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
23
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
24

            
25
// Executed Command:
26
// ./target/production/moonbeam
27
// benchmark
28
// pallet
29
// --runtime=./target/production/wbuild/moonbeam-runtime/moonbeam_runtime.wasm
30
// --genesis-builder=runtime
31
// --genesis-builder-preset=development
32
// --steps=50
33
// --repeat=20
34
// --pallet=pallet_scheduler
35
// --extrinsic=*
36
// --wasm-execution=compiled
37
// --header=./file_header.txt
38
// --template=./benchmarking/frame-weight-template.hbs
39
// --output=./runtime/moonbeam/src/weights/
40

            
41
#![cfg_attr(rustfmt, rustfmt_skip)]
42
#![allow(unused_parens)]
43
#![allow(unused_imports)]
44

            
45
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
46
use sp_std::marker::PhantomData;
47

            
48
/// Weights for `pallet_scheduler`.
49
pub struct WeightInfo<T>(PhantomData<T>);
50
impl<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
18
	fn service_agendas_base() -> Weight {
54
18
		// Proof Size summary in bytes:
55
18
		//  Measured:  `31`
56
18
		//  Estimated: `1489`
57
18
		// Minimum execution time: 3_599_000 picoseconds.
58
18
		Weight::from_parts(3_802_000, 1489)
59
18
			.saturating_add(T::DbWeight::get().reads(1_u64))
60
18
			.saturating_add(T::DbWeight::get().writes(1_u64))
61
18
	}
62
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
63
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
64
	/// The range of component `s` is `[0, 50]`.
65
36
	fn service_agenda_base(s: u32, ) -> Weight {
66
36
		// Proof Size summary in bytes:
67
36
		//  Measured:  `78 + s * (177 ±0)`
68
36
		//  Estimated: `42428`
69
36
		// Minimum execution time: 3_537_000 picoseconds.
70
36
		Weight::from_parts(7_109_792, 42428)
71
36
			// Standard Error: 1_737
72
36
			.saturating_add(Weight::from_parts(351_876, 0).saturating_mul(s.into()))
73
36
			.saturating_add(T::DbWeight::get().reads(1_u64))
74
36
			.saturating_add(T::DbWeight::get().writes(1_u64))
75
36
	}
76
	fn service_task_base() -> Weight {
77
		// Proof Size summary in bytes:
78
		//  Measured:  `0`
79
		//  Estimated: `0`
80
		// Minimum execution time: 3_555_000 picoseconds.
81
		Weight::from_parts(3_648_000, 0)
82
	}
83
	/// Storage: `Preimage::PreimageFor` (r:1 w:1)
84
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
85
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
86
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
87
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
88
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
89
	/// The range of component `s` is `[128, 4194304]`.
90
	fn service_task_fetched(s: u32, ) -> Weight {
91
		// Proof Size summary in bytes:
92
		//  Measured:  `179 + s * (1 ±0)`
93
		//  Estimated: `3644 + s * (1 ±0)`
94
		// Minimum execution time: 19_106_000 picoseconds.
95
		Weight::from_parts(19_490_000, 3644)
96
			// Standard Error: 3
97
			.saturating_add(Weight::from_parts(1_223, 0).saturating_mul(s.into()))
98
			.saturating_add(T::DbWeight::get().reads(3_u64))
99
			.saturating_add(T::DbWeight::get().writes(2_u64))
100
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
101
	}
102
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
103
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
104
	fn service_task_named() -> Weight {
105
		// Proof Size summary in bytes:
106
		//  Measured:  `0`
107
		//  Estimated: `0`
108
		// Minimum execution time: 5_104_000 picoseconds.
109
		Weight::from_parts(5_331_000, 0)
110
			.saturating_add(T::DbWeight::get().writes(1_u64))
111
	}
112
	fn service_task_periodic() -> Weight {
113
		// Proof Size summary in bytes:
114
		//  Measured:  `0`
115
		//  Estimated: `0`
116
		// Minimum execution time: 3_490_000 picoseconds.
117
		Weight::from_parts(3_643_000, 0)
118
	}
119
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
120
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
121
	fn execute_dispatch_signed() -> Weight {
122
		// Proof Size summary in bytes:
123
		//  Measured:  `42`
124
		//  Estimated: `1527`
125
		// Minimum execution time: 4_789_000 picoseconds.
126
		Weight::from_parts(5_031_000, 1527)
127
			.saturating_add(T::DbWeight::get().reads(1_u64))
128
	}
129
	fn execute_dispatch_unsigned() -> Weight {
130
		// Proof Size summary in bytes:
131
		//  Measured:  `0`
132
		//  Estimated: `0`
133
		// Minimum execution time: 2_216_000 picoseconds.
134
		Weight::from_parts(2_405_000, 0)
135
	}
136
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
137
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
138
	/// The range of component `s` is `[0, 49]`.
139
	fn schedule(s: u32, ) -> Weight {
140
		// Proof Size summary in bytes:
141
		//  Measured:  `78 + s * (177 ±0)`
142
		//  Estimated: `42428`
143
		// Minimum execution time: 10_242_000 picoseconds.
144
		Weight::from_parts(13_907_701, 42428)
145
			// Standard Error: 1_714
146
			.saturating_add(Weight::from_parts(387_043, 0).saturating_mul(s.into()))
147
			.saturating_add(T::DbWeight::get().reads(1_u64))
148
			.saturating_add(T::DbWeight::get().writes(1_u64))
149
	}
150
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
151
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
152
	/// Storage: `Scheduler::Retries` (r:0 w:1)
153
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
154
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
155
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
156
	/// The range of component `s` is `[1, 50]`.
157
	fn cancel(s: u32, ) -> Weight {
158
		// Proof Size summary in bytes:
159
		//  Measured:  `78 + s * (177 ±0)`
160
		//  Estimated: `42428`
161
		// Minimum execution time: 15_882_000 picoseconds.
162
		Weight::from_parts(15_858_990, 42428)
163
			// Standard Error: 1_101
164
			.saturating_add(Weight::from_parts(588_235, 0).saturating_mul(s.into()))
165
			.saturating_add(T::DbWeight::get().reads(1_u64))
166
			.saturating_add(T::DbWeight::get().writes(3_u64))
167
	}
168
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
169
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
170
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
171
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
172
	/// The range of component `s` is `[0, 49]`.
173
	fn schedule_named(s: u32, ) -> Weight {
174
		// Proof Size summary in bytes:
175
		//  Measured:  `255 + s * (185 ±0)`
176
		//  Estimated: `42428`
177
		// Minimum execution time: 13_967_000 picoseconds.
178
		Weight::from_parts(18_605_568, 42428)
179
			// Standard Error: 2_890
180
			.saturating_add(Weight::from_parts(443_093, 0).saturating_mul(s.into()))
181
			.saturating_add(T::DbWeight::get().reads(2_u64))
182
			.saturating_add(T::DbWeight::get().writes(2_u64))
183
	}
184
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
185
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
186
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
187
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
188
	/// Storage: `Scheduler::Retries` (r:0 w:1)
189
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
190
	/// The range of component `s` is `[1, 50]`.
191
	fn cancel_named(s: u32, ) -> Weight {
192
		// Proof Size summary in bytes:
193
		//  Measured:  `281 + s * (185 ±0)`
194
		//  Estimated: `42428`
195
		// Minimum execution time: 18_640_000 picoseconds.
196
		Weight::from_parts(19_482_229, 42428)
197
			// Standard Error: 1_431
198
			.saturating_add(Weight::from_parts(638_645, 0).saturating_mul(s.into()))
199
			.saturating_add(T::DbWeight::get().reads(2_u64))
200
			.saturating_add(T::DbWeight::get().writes(3_u64))
201
	}
202
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
203
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
204
	/// Storage: `Scheduler::Retries` (r:0 w:1)
205
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
206
	/// The range of component `s` is `[1, 50]`.
207
	fn schedule_retry(s: u32, ) -> Weight {
208
		// Proof Size summary in bytes:
209
		//  Measured:  `118`
210
		//  Estimated: `42428`
211
		// Minimum execution time: 9_545_000 picoseconds.
212
		Weight::from_parts(10_025_830, 42428)
213
			// Standard Error: 425
214
			.saturating_add(Weight::from_parts(27_242, 0).saturating_mul(s.into()))
215
			.saturating_add(T::DbWeight::get().reads(1_u64))
216
			.saturating_add(T::DbWeight::get().writes(2_u64))
217
	}
218
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
219
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
220
	/// Storage: `Scheduler::Retries` (r:0 w:1)
221
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
222
	fn set_retry() -> Weight {
223
		// Proof Size summary in bytes:
224
		//  Measured:  `8928`
225
		//  Estimated: `42428`
226
		// Minimum execution time: 25_967_000 picoseconds.
227
		Weight::from_parts(27_163_000, 42428)
228
			.saturating_add(T::DbWeight::get().reads(1_u64))
229
			.saturating_add(T::DbWeight::get().writes(1_u64))
230
	}
231
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
232
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
233
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
234
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
235
	/// Storage: `Scheduler::Retries` (r:0 w:1)
236
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
237
	fn set_retry_named() -> Weight {
238
		// Proof Size summary in bytes:
239
		//  Measured:  `9606`
240
		//  Estimated: `42428`
241
		// Minimum execution time: 36_149_000 picoseconds.
242
		Weight::from_parts(37_551_000, 42428)
243
			.saturating_add(T::DbWeight::get().reads(2_u64))
244
			.saturating_add(T::DbWeight::get().writes(1_u64))
245
	}
246
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
247
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, 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 cancel_retry() -> Weight {
251
		// Proof Size summary in bytes:
252
		//  Measured:  `8940`
253
		//  Estimated: `42428`
254
		// Minimum execution time: 24_789_000 picoseconds.
255
		Weight::from_parts(25_800_000, 42428)
256
			.saturating_add(T::DbWeight::get().reads(1_u64))
257
			.saturating_add(T::DbWeight::get().writes(1_u64))
258
	}
259
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
260
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
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_named() -> Weight {
266
		// Proof Size summary in bytes:
267
		//  Measured:  `9618`
268
		//  Estimated: `42428`
269
		// Minimum execution time: 35_419_000 picoseconds.
270
		Weight::from_parts(36_857_000, 42428)
271
			.saturating_add(T::DbWeight::get().reads(2_u64))
272
			.saturating_add(T::DbWeight::get().writes(1_u64))
273
	}
274
}