pallet_migrations/weights.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_migrations`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_migrations
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/migrations/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-umbrella-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --genesis-builder-policy=none
62// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier
63
64#![cfg_attr(rustfmt, rustfmt_skip)]
65#![allow(unused_parens)]
66#![allow(unused_imports)]
67#![allow(missing_docs)]
68#![allow(dead_code)]
69
70use frame::weights_prelude::*;
71
72/// Weight functions needed for `pallet_migrations`.
73pub trait WeightInfo {
74 fn onboard_new_mbms() -> Weight;
75 fn progress_mbms_none() -> Weight;
76 fn exec_migration_completed() -> Weight;
77 fn exec_migration_skipped_historic() -> Weight;
78 fn exec_migration_advance() -> Weight;
79 fn exec_migration_complete() -> Weight;
80 fn exec_migration_fail() -> Weight;
81 fn on_init_loop() -> Weight;
82 fn force_set_cursor() -> Weight;
83 fn force_set_active_cursor() -> Weight;
84 fn force_onboard_mbms() -> Weight;
85 fn clear_historic(n: u32, ) -> Weight;
86 fn reset_pallet_migration(n: u32, ) -> Weight;
87}
88
89/// Weights for `pallet_migrations` using the Substrate node and recommended hardware.
90pub struct SubstrateWeight<T>(PhantomData<T>);
91impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
92 /// Storage: `MultiBlockMigrations::Cursor` (r:1 w:1)
93 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
94 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
95 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
96 fn onboard_new_mbms() -> Weight {
97 // Proof Size summary in bytes:
98 // Measured: `0`
99 // Estimated: `67035`
100 // Minimum execution time: 4_411_000 picoseconds.
101 Weight::from_parts(4_542_000, 67035)
102 .saturating_add(T::DbWeight::get().reads(2_u64))
103 .saturating_add(T::DbWeight::get().writes(1_u64))
104 }
105 /// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
106 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
107 fn progress_mbms_none() -> Weight {
108 // Proof Size summary in bytes:
109 // Measured: `0`
110 // Estimated: `67035`
111 // Minimum execution time: 792_000 picoseconds.
112 Weight::from_parts(834_000, 67035)
113 .saturating_add(T::DbWeight::get().reads(1_u64))
114 }
115 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
116 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
117 /// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
118 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
119 fn exec_migration_completed() -> Weight {
120 // Proof Size summary in bytes:
121 // Measured: `0`
122 // Estimated: `3465`
123 // Minimum execution time: 3_842_000 picoseconds.
124 Weight::from_parts(3_951_000, 3465)
125 .saturating_add(T::DbWeight::get().reads(1_u64))
126 .saturating_add(T::DbWeight::get().writes(1_u64))
127 }
128 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
129 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
130 /// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
131 /// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
132 fn exec_migration_skipped_historic() -> Weight {
133 // Proof Size summary in bytes:
134 // Measured: `34`
135 // Estimated: `3731`
136 // Minimum execution time: 7_153_000 picoseconds.
137 Weight::from_parts(7_407_000, 3731)
138 .saturating_add(T::DbWeight::get().reads(2_u64))
139 }
140 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
141 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
142 /// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
143 /// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
144 fn exec_migration_advance() -> Weight {
145 // Proof Size summary in bytes:
146 // Measured: `0`
147 // Estimated: `3731`
148 // Minimum execution time: 6_837_000 picoseconds.
149 Weight::from_parts(7_033_000, 3731)
150 .saturating_add(T::DbWeight::get().reads(2_u64))
151 }
152 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
153 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
154 /// Storage: `MultiBlockMigrations::Historic` (r:1 w:1)
155 /// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
156 fn exec_migration_complete() -> Weight {
157 // Proof Size summary in bytes:
158 // Measured: `0`
159 // Estimated: `3731`
160 // Minimum execution time: 8_167_000 picoseconds.
161 Weight::from_parts(8_455_000, 3731)
162 .saturating_add(T::DbWeight::get().reads(2_u64))
163 .saturating_add(T::DbWeight::get().writes(1_u64))
164 }
165 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
166 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
167 /// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
168 /// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
169 /// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
170 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
171 fn exec_migration_fail() -> Weight {
172 // Proof Size summary in bytes:
173 // Measured: `0`
174 // Estimated: `3731`
175 // Minimum execution time: 8_868_000 picoseconds.
176 Weight::from_parts(9_053_000, 3731)
177 .saturating_add(T::DbWeight::get().reads(2_u64))
178 .saturating_add(T::DbWeight::get().writes(1_u64))
179 }
180 fn on_init_loop() -> Weight {
181 // Proof Size summary in bytes:
182 // Measured: `0`
183 // Estimated: `0`
184 // Minimum execution time: 150_000 picoseconds.
185 Weight::from_parts(163_000, 0)
186 }
187 /// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
188 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
189 fn force_set_cursor() -> Weight {
190 // Proof Size summary in bytes:
191 // Measured: `0`
192 // Estimated: `0`
193 // Minimum execution time: 2_142_000 picoseconds.
194 Weight::from_parts(2_212_000, 0)
195 .saturating_add(T::DbWeight::get().writes(1_u64))
196 }
197 /// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
198 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
199 fn force_set_active_cursor() -> Weight {
200 // Proof Size summary in bytes:
201 // Measured: `0`
202 // Estimated: `0`
203 // Minimum execution time: 2_496_000 picoseconds.
204 Weight::from_parts(2_609_000, 0)
205 .saturating_add(T::DbWeight::get().writes(1_u64))
206 }
207 /// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
208 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
209 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
210 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
211 fn force_onboard_mbms() -> Weight {
212 // Proof Size summary in bytes:
213 // Measured: `0`
214 // Estimated: `67035`
215 // Minimum execution time: 3_010_000 picoseconds.
216 Weight::from_parts(3_114_000, 67035)
217 .saturating_add(T::DbWeight::get().reads(2_u64))
218 }
219 /// Storage: `MultiBlockMigrations::Historic` (r:256 w:256)
220 /// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
221 /// The range of component `n` is `[0, 256]`.
222 fn clear_historic(n: u32, ) -> Weight {
223 // Proof Size summary in bytes:
224 // Measured: `960 + n * (271 ±0)`
225 // Estimated: `3834 + n * (2740 ±0)`
226 // Minimum execution time: 15_012_000 picoseconds.
227 Weight::from_parts(12_864_005, 3834)
228 // Standard Error: 3_561
229 .saturating_add(Weight::from_parts(1_455_402, 0).saturating_mul(n.into()))
230 .saturating_add(T::DbWeight::get().reads(1_u64))
231 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
232 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
233 .saturating_add(Weight::from_parts(0, 2740).saturating_mul(n.into()))
234 }
235 /// Storage: `Skipped::Metadata` (r:0 w:0)
236 /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
237 /// The range of component `n` is `[0, 2048]`.
238 fn reset_pallet_migration(n: u32, ) -> Weight {
239 // Proof Size summary in bytes:
240 // Measured: `1605 + n * (38 ±0)`
241 // Estimated: `686 + n * (39 ±0)`
242 // Minimum execution time: 1_185_000 picoseconds.
243 Weight::from_parts(6_858_633, 686)
244 // Standard Error: 1_584
245 .saturating_add(Weight::from_parts(834_871, 0).saturating_mul(n.into()))
246 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
247 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
248 .saturating_add(Weight::from_parts(0, 39).saturating_mul(n.into()))
249 }
250}
251
252// For backwards compatibility and tests.
253impl WeightInfo for () {
254 /// Storage: `MultiBlockMigrations::Cursor` (r:1 w:1)
255 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
256 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
257 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
258 fn onboard_new_mbms() -> Weight {
259 // Proof Size summary in bytes:
260 // Measured: `0`
261 // Estimated: `67035`
262 // Minimum execution time: 4_411_000 picoseconds.
263 Weight::from_parts(4_542_000, 67035)
264 .saturating_add(RocksDbWeight::get().reads(2_u64))
265 .saturating_add(RocksDbWeight::get().writes(1_u64))
266 }
267 /// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
268 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
269 fn progress_mbms_none() -> Weight {
270 // Proof Size summary in bytes:
271 // Measured: `0`
272 // Estimated: `67035`
273 // Minimum execution time: 792_000 picoseconds.
274 Weight::from_parts(834_000, 67035)
275 .saturating_add(RocksDbWeight::get().reads(1_u64))
276 }
277 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
278 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
279 /// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
280 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
281 fn exec_migration_completed() -> Weight {
282 // Proof Size summary in bytes:
283 // Measured: `0`
284 // Estimated: `3465`
285 // Minimum execution time: 3_842_000 picoseconds.
286 Weight::from_parts(3_951_000, 3465)
287 .saturating_add(RocksDbWeight::get().reads(1_u64))
288 .saturating_add(RocksDbWeight::get().writes(1_u64))
289 }
290 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
291 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
292 /// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
293 /// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
294 fn exec_migration_skipped_historic() -> Weight {
295 // Proof Size summary in bytes:
296 // Measured: `34`
297 // Estimated: `3731`
298 // Minimum execution time: 7_153_000 picoseconds.
299 Weight::from_parts(7_407_000, 3731)
300 .saturating_add(RocksDbWeight::get().reads(2_u64))
301 }
302 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
303 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
304 /// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
305 /// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
306 fn exec_migration_advance() -> Weight {
307 // Proof Size summary in bytes:
308 // Measured: `0`
309 // Estimated: `3731`
310 // Minimum execution time: 6_837_000 picoseconds.
311 Weight::from_parts(7_033_000, 3731)
312 .saturating_add(RocksDbWeight::get().reads(2_u64))
313 }
314 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
315 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
316 /// Storage: `MultiBlockMigrations::Historic` (r:1 w:1)
317 /// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
318 fn exec_migration_complete() -> Weight {
319 // Proof Size summary in bytes:
320 // Measured: `0`
321 // Estimated: `3731`
322 // Minimum execution time: 8_167_000 picoseconds.
323 Weight::from_parts(8_455_000, 3731)
324 .saturating_add(RocksDbWeight::get().reads(2_u64))
325 .saturating_add(RocksDbWeight::get().writes(1_u64))
326 }
327 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
328 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
329 /// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
330 /// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
331 /// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
332 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
333 fn exec_migration_fail() -> Weight {
334 // Proof Size summary in bytes:
335 // Measured: `0`
336 // Estimated: `3731`
337 // Minimum execution time: 8_868_000 picoseconds.
338 Weight::from_parts(9_053_000, 3731)
339 .saturating_add(RocksDbWeight::get().reads(2_u64))
340 .saturating_add(RocksDbWeight::get().writes(1_u64))
341 }
342 fn on_init_loop() -> Weight {
343 // Proof Size summary in bytes:
344 // Measured: `0`
345 // Estimated: `0`
346 // Minimum execution time: 150_000 picoseconds.
347 Weight::from_parts(163_000, 0)
348 }
349 /// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
350 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
351 fn force_set_cursor() -> Weight {
352 // Proof Size summary in bytes:
353 // Measured: `0`
354 // Estimated: `0`
355 // Minimum execution time: 2_142_000 picoseconds.
356 Weight::from_parts(2_212_000, 0)
357 .saturating_add(RocksDbWeight::get().writes(1_u64))
358 }
359 /// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
360 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
361 fn force_set_active_cursor() -> Weight {
362 // Proof Size summary in bytes:
363 // Measured: `0`
364 // Estimated: `0`
365 // Minimum execution time: 2_496_000 picoseconds.
366 Weight::from_parts(2_609_000, 0)
367 .saturating_add(RocksDbWeight::get().writes(1_u64))
368 }
369 /// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
370 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
371 /// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
372 /// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
373 fn force_onboard_mbms() -> Weight {
374 // Proof Size summary in bytes:
375 // Measured: `0`
376 // Estimated: `67035`
377 // Minimum execution time: 3_010_000 picoseconds.
378 Weight::from_parts(3_114_000, 67035)
379 .saturating_add(RocksDbWeight::get().reads(2_u64))
380 }
381 /// Storage: `MultiBlockMigrations::Historic` (r:256 w:256)
382 /// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
383 /// The range of component `n` is `[0, 256]`.
384 fn clear_historic(n: u32, ) -> Weight {
385 // Proof Size summary in bytes:
386 // Measured: `960 + n * (271 ±0)`
387 // Estimated: `3834 + n * (2740 ±0)`
388 // Minimum execution time: 15_012_000 picoseconds.
389 Weight::from_parts(12_864_005, 3834)
390 // Standard Error: 3_561
391 .saturating_add(Weight::from_parts(1_455_402, 0).saturating_mul(n.into()))
392 .saturating_add(RocksDbWeight::get().reads(1_u64))
393 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
394 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
395 .saturating_add(Weight::from_parts(0, 2740).saturating_mul(n.into()))
396 }
397 /// Storage: `Skipped::Metadata` (r:0 w:0)
398 /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
399 /// The range of component `n` is `[0, 2048]`.
400 fn reset_pallet_migration(n: u32, ) -> Weight {
401 // Proof Size summary in bytes:
402 // Measured: `1605 + n * (38 ±0)`
403 // Estimated: `686 + n * (39 ±0)`
404 // Minimum execution time: 1_185_000 picoseconds.
405 Weight::from_parts(6_858_633, 686)
406 // Standard Error: 1_584
407 .saturating_add(Weight::from_parts(834_871, 0).saturating_mul(n.into()))
408 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
409 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
410 .saturating_add(Weight::from_parts(0, 39).saturating_mul(n.into()))
411 }
412}