1
// Copyright 2019-2022 PureStake Inc.
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 32.0.0
20
//! DATE: 2024-05-27, 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: Some("moonbase-dev"), DB CACHE: 1024
24

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

            
39
#![cfg_attr(rustfmt, rustfmt_skip)]
40
#![allow(unused_parens)]
41
#![allow(unused_imports)]
42

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

            
46
/// Weights for `pallet_scheduler`.
47
pub struct WeightInfo<T>(PhantomData<T>);
48
impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> {
49
	/// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
50
	/// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
51
66
	fn service_agendas_base() -> Weight {
52
66
		// Proof Size summary in bytes:
53
66
		//  Measured:  `31`
54
66
		//  Estimated: `1489`
55
66
		// Minimum execution time: 2_994_000 picoseconds.
56
66
		Weight::from_parts(3_114_000, 1489)
57
66
			.saturating_add(T::DbWeight::get().reads(1_u64))
58
66
			.saturating_add(T::DbWeight::get().writes(1_u64))
59
66
	}
60
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
61
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
62
	/// The range of component `s` is `[0, 50]`.
63
132
	fn service_agenda_base(s: u32, ) -> Weight {
64
132
		// Proof Size summary in bytes:
65
132
		//  Measured:  `78 + s * (177 ±0)`
66
132
		//  Estimated: `42428`
67
132
		// Minimum execution time: 3_429_000 picoseconds.
68
132
		Weight::from_parts(6_215_144, 42428)
69
132
			// Standard Error: 1_440
70
132
			.saturating_add(Weight::from_parts(362_695, 0).saturating_mul(s.into()))
71
132
			.saturating_add(T::DbWeight::get().reads(1_u64))
72
132
			.saturating_add(T::DbWeight::get().writes(1_u64))
73
132
	}
74
	fn service_task_base() -> Weight {
75
		// Proof Size summary in bytes:
76
		//  Measured:  `0`
77
		//  Estimated: `0`
78
		// Minimum execution time: 3_200_000 picoseconds.
79
		Weight::from_parts(3_375_000, 0)
80
	}
81
	/// Storage: `Preimage::PreimageFor` (r:1 w:1)
82
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
83
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
84
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
85
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
86
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
87
	/// The range of component `s` is `[128, 4194304]`.
88
	fn service_task_fetched(s: u32, ) -> Weight {
89
		// Proof Size summary in bytes:
90
		//  Measured:  `179 + s * (1 ±0)`
91
		//  Estimated: `3644 + s * (1 ±0)`
92
		// Minimum execution time: 17_600_000 picoseconds.
93
		Weight::from_parts(17_784_000, 3644)
94
			// Standard Error: 4
95
			.saturating_add(Weight::from_parts(1_330, 0).saturating_mul(s.into()))
96
			.saturating_add(T::DbWeight::get().reads(3_u64))
97
			.saturating_add(T::DbWeight::get().writes(2_u64))
98
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
99
	}
100
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
101
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
102
	fn service_task_named() -> Weight {
103
		// Proof Size summary in bytes:
104
		//  Measured:  `0`
105
		//  Estimated: `0`
106
		// Minimum execution time: 4_563_000 picoseconds.
107
		Weight::from_parts(4_802_000, 0)
108
			.saturating_add(T::DbWeight::get().writes(1_u64))
109
	}
110
	fn service_task_periodic() -> Weight {
111
		// Proof Size summary in bytes:
112
		//  Measured:  `0`
113
		//  Estimated: `0`
114
		// Minimum execution time: 3_114_000 picoseconds.
115
		Weight::from_parts(3_341_000, 0)
116
	}
117
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
118
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
119
	fn execute_dispatch_signed() -> Weight {
120
		// Proof Size summary in bytes:
121
		//  Measured:  `42`
122
		//  Estimated: `1527`
123
		// Minimum execution time: 4_477_000 picoseconds.
124
		Weight::from_parts(4_552_000, 1527)
125
			.saturating_add(T::DbWeight::get().reads(1_u64))
126
	}
127
	fn execute_dispatch_unsigned() -> Weight {
128
		// Proof Size summary in bytes:
129
		//  Measured:  `0`
130
		//  Estimated: `0`
131
		// Minimum execution time: 2_116_000 picoseconds.
132
		Weight::from_parts(2_277_000, 0)
133
	}
134
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
135
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
136
	/// The range of component `s` is `[0, 49]`.
137
	fn schedule(s: u32, ) -> Weight {
138
		// Proof Size summary in bytes:
139
		//  Measured:  `78 + s * (177 ±0)`
140
		//  Estimated: `42428`
141
		// Minimum execution time: 9_817_000 picoseconds.
142
		Weight::from_parts(12_768_005, 42428)
143
			// Standard Error: 1_424
144
			.saturating_add(Weight::from_parts(407_640, 0).saturating_mul(s.into()))
145
			.saturating_add(T::DbWeight::get().reads(1_u64))
146
			.saturating_add(T::DbWeight::get().writes(1_u64))
147
	}
148
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
149
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
150
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
151
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
152
	/// The range of component `s` is `[1, 50]`.
153
	fn cancel(s: u32, ) -> Weight {
154
		// Proof Size summary in bytes:
155
		//  Measured:  `78 + s * (177 ±0)`
156
		//  Estimated: `42428`
157
		// Minimum execution time: 13_667_000 picoseconds.
158
		Weight::from_parts(13_347_362, 42428)
159
			// Standard Error: 1_303
160
			.saturating_add(Weight::from_parts(624_965, 0).saturating_mul(s.into()))
161
			.saturating_add(T::DbWeight::get().reads(1_u64))
162
			.saturating_add(T::DbWeight::get().writes(2_u64))
163
	}
164
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
165
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
166
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
167
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
168
	/// The range of component `s` is `[0, 49]`.
169
	fn schedule_named(s: u32, ) -> Weight {
170
		// Proof Size summary in bytes:
171
		//  Measured:  `255 + s * (185 ±0)`
172
		//  Estimated: `42428`
173
		// Minimum execution time: 13_039_000 picoseconds.
174
		Weight::from_parts(16_557_684, 42428)
175
			// Standard Error: 2_263
176
			.saturating_add(Weight::from_parts(459_921, 0).saturating_mul(s.into()))
177
			.saturating_add(T::DbWeight::get().reads(2_u64))
178
			.saturating_add(T::DbWeight::get().writes(2_u64))
179
	}
180
	/// Storage: `Scheduler::Lookup` (r:1 w:1)
181
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
182
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
183
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
184
	/// The range of component `s` is `[1, 50]`.
185
	fn cancel_named(s: u32, ) -> Weight {
186
		// Proof Size summary in bytes:
187
		//  Measured:  `281 + s * (185 ±0)`
188
		//  Estimated: `42428`
189
		// Minimum execution time: 15_650_000 picoseconds.
190
		Weight::from_parts(16_039_943, 42428)
191
			// Standard Error: 1_501
192
			.saturating_add(Weight::from_parts(628_223, 0).saturating_mul(s.into()))
193
			.saturating_add(T::DbWeight::get().reads(2_u64))
194
			.saturating_add(T::DbWeight::get().writes(2_u64))
195
	}
196

            
197
	/// Storage: `Scheduler::Retries` (r:1 w:2)
198
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
199
	/// Storage: `Scheduler::Agenda` (r:1 w:1)
200
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
201
	/// Storage: `Scheduler::Lookup` (r:0 w:1)
202
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
203
	/// The range of component `s` is `[1, 50]`.
204
	fn schedule_retry(s: u32, ) -> Weight {
205
		// Proof Size summary in bytes:
206
		//  Measured:  `196`
207
		//  Estimated: `42428`
208
		// Minimum execution time: 13_156_000 picoseconds.
209
		Weight::from_parts(13_801_287, 0)
210
			.saturating_add(Weight::from_parts(0, 42428))
211
			// Standard Error: 568
212
			.saturating_add(Weight::from_parts(35_441, 0).saturating_mul(s.into()))
213
			.saturating_add(T::DbWeight::get().reads(2))
214
			.saturating_add(T::DbWeight::get().writes(4))
215
	}
216
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
217
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
218
	/// Storage: `Scheduler::Retries` (r:0 w:1)
219
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
220
	/// The range of component `s` is `[1, 50]`.
221
	fn set_retry() -> Weight {
222
		// Proof Size summary in bytes:
223
		//  Measured:  `115 + s * (177 ±0)`
224
		//  Estimated: `42428`
225
		// Minimum execution time: 7_912_000 picoseconds.
226
		Weight::from_parts(8_081_460, 0)
227
			.saturating_add(Weight::from_parts(0, 42428))
228
			.saturating_add(T::DbWeight::get().reads(1))
229
			.saturating_add(T::DbWeight::get().writes(1))
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
	/// The range of component `s` is `[1, 50]`.
238
	fn set_retry_named() -> Weight {
239
		// Proof Size summary in bytes:
240
		//  Measured:  `324 + s * (185 ±0)`
241
		//  Estimated: `42428`
242
		// Minimum execution time: 10_673_000 picoseconds.
243
		Weight::from_parts(12_212_185, 0)
244
			.saturating_add(Weight::from_parts(0, 42428))
245
			.saturating_add(T::DbWeight::get().reads(2))
246
			.saturating_add(T::DbWeight::get().writes(1))
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
	/// The range of component `s` is `[1, 50]`.
253
	fn cancel_retry() -> Weight {
254
		// Proof Size summary in bytes:
255
		//  Measured:  `115 + s * (177 ±0)`
256
		//  Estimated: `42428`
257
		// Minimum execution time: 7_912_000 picoseconds.
258
		Weight::from_parts(8_081_460, 0)
259
			.saturating_add(Weight::from_parts(0, 42428))
260
			.saturating_add(T::DbWeight::get().reads(1))
261
			.saturating_add(T::DbWeight::get().writes(1))
262
	}
263
	/// Storage: `Scheduler::Lookup` (r:1 w:0)
264
	/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
265
	/// Storage: `Scheduler::Agenda` (r:1 w:0)
266
	/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
267
	/// Storage: `Scheduler::Retries` (r:0 w:1)
268
	/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
269
	/// The range of component `s` is `[1, 50]`.
270
	fn cancel_retry_named() -> Weight {
271
		// Proof Size summary in bytes:
272
		//  Measured:  `324 + s * (185 ±0)`
273
		//  Estimated: `42428`
274
		// Minimum execution time: 10_673_000 picoseconds.
275
		Weight::from_parts(12_212_185, 0)
276
			.saturating_add(Weight::from_parts(0, 42428))
277
			.saturating_add(T::DbWeight::get().reads(2))
278
			.saturating_add(T::DbWeight::get().writes(1))
279
	}
280
}