referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
pallet_migrations.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//! Autogenerated weights for `pallet_migrations`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21//! DATE: 2025-01-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `17938671047b`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
25
26// Executed Command:
27// frame-omni-bencher
28// v1
29// benchmark
30// pallet
31// --extrinsic=*
32// --runtime=target/production/wbuild/asset-hub-next-westend-runtime/asset_hub_next_westend_runtime.wasm
33// --pallet=pallet_migrations
34// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
35// --output=./cumulus/parachains/runtimes/assets/asset-hub-next-westend/src/weights
36// --wasm-execution=compiled
37// --steps=50
38// --repeat=20
39// --heap-pages=4096
40// --no-storage-info
41// --no-min-squares
42// --no-median-slopes
43
44#![cfg_attr(rustfmt, rustfmt_skip)]
45#![allow(unused_parens)]
46#![allow(unused_imports)]
47#![allow(missing_docs)]
48
49use frame_support::{traits::Get, weights::Weight};
50use core::marker::PhantomData;
51
52/// Weight functions for `pallet_migrations`.
53pub struct WeightInfo<T>(PhantomData<T>);
54impl<T: frame_system::Config> pallet_migrations::WeightInfo for WeightInfo<T> {
55	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:1)
56	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
57	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
58	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
59	fn onboard_new_mbms() -> Weight {
60		// Proof Size summary in bytes:
61		//  Measured:  `171`
62		//  Estimated: `67035`
63		// Minimum execution time: 8_697_000 picoseconds.
64		Weight::from_parts(8_998_000, 0)
65			.saturating_add(Weight::from_parts(0, 67035))
66			.saturating_add(T::DbWeight::get().reads(2))
67			.saturating_add(T::DbWeight::get().writes(1))
68	}
69	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
70	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
71	fn progress_mbms_none() -> Weight {
72		// Proof Size summary in bytes:
73		//  Measured:  `42`
74		//  Estimated: `67035`
75		// Minimum execution time: 2_737_000 picoseconds.
76		Weight::from_parts(2_813_000, 0)
77			.saturating_add(Weight::from_parts(0, 67035))
78			.saturating_add(T::DbWeight::get().reads(1))
79	}
80	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
81	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
82	/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
83	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
84	fn exec_migration_completed() -> Weight {
85		// Proof Size summary in bytes:
86		//  Measured:  `129`
87		//  Estimated: `3594`
88		// Minimum execution time: 6_181_000 picoseconds.
89		Weight::from_parts(6_458_000, 0)
90			.saturating_add(Weight::from_parts(0, 3594))
91			.saturating_add(T::DbWeight::get().reads(1))
92			.saturating_add(T::DbWeight::get().writes(1))
93	}
94	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
95	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
96	/// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
97	/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
98	fn exec_migration_skipped_historic() -> Weight {
99		// Proof Size summary in bytes:
100		//  Measured:  `225`
101		//  Estimated: `3731`
102		// Minimum execution time: 11_932_000 picoseconds.
103		Weight::from_parts(12_539_000, 0)
104			.saturating_add(Weight::from_parts(0, 3731))
105			.saturating_add(T::DbWeight::get().reads(2))
106	}
107	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
108	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
109	/// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
110	/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
111	fn exec_migration_advance() -> Weight {
112		// Proof Size summary in bytes:
113		//  Measured:  `171`
114		//  Estimated: `3731`
115		// Minimum execution time: 11_127_000 picoseconds.
116		Weight::from_parts(11_584_000, 0)
117			.saturating_add(Weight::from_parts(0, 3731))
118			.saturating_add(T::DbWeight::get().reads(2))
119	}
120	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
121	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
122	/// Storage: `MultiBlockMigrations::Historic` (r:1 w:1)
123	/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
124	fn exec_migration_complete() -> Weight {
125		// Proof Size summary in bytes:
126		//  Measured:  `171`
127		//  Estimated: `3731`
128		// Minimum execution time: 12_930_000 picoseconds.
129		Weight::from_parts(13_272_000, 0)
130			.saturating_add(Weight::from_parts(0, 3731))
131			.saturating_add(T::DbWeight::get().reads(2))
132			.saturating_add(T::DbWeight::get().writes(1))
133	}
134	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
135	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
136	/// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
137	/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
138	/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
139	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
140	fn exec_migration_fail() -> Weight {
141		// Proof Size summary in bytes:
142		//  Measured:  `171`
143		//  Estimated: `3731`
144		// Minimum execution time: 13_709_000 picoseconds.
145		Weight::from_parts(14_123_000, 0)
146			.saturating_add(Weight::from_parts(0, 3731))
147			.saturating_add(T::DbWeight::get().reads(2))
148			.saturating_add(T::DbWeight::get().writes(1))
149	}
150	fn on_init_loop() -> Weight {
151		// Proof Size summary in bytes:
152		//  Measured:  `0`
153		//  Estimated: `0`
154		// Minimum execution time: 162_000 picoseconds.
155		Weight::from_parts(188_000, 0)
156			.saturating_add(Weight::from_parts(0, 0))
157	}
158	/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
159	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
160	fn force_set_cursor() -> Weight {
161		// Proof Size summary in bytes:
162		//  Measured:  `0`
163		//  Estimated: `0`
164		// Minimum execution time: 2_737_000 picoseconds.
165		Weight::from_parts(2_919_000, 0)
166			.saturating_add(Weight::from_parts(0, 0))
167			.saturating_add(T::DbWeight::get().writes(1))
168	}
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 force_set_active_cursor() -> Weight {
172		// Proof Size summary in bytes:
173		//  Measured:  `0`
174		//  Estimated: `0`
175		// Minimum execution time: 3_087_000 picoseconds.
176		Weight::from_parts(3_320_000, 0)
177			.saturating_add(Weight::from_parts(0, 0))
178			.saturating_add(T::DbWeight::get().writes(1))
179	}
180	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
181	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
182	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
183	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
184	fn force_onboard_mbms() -> Weight {
185		// Proof Size summary in bytes:
186		//  Measured:  `147`
187		//  Estimated: `67035`
188		// Minimum execution time: 6_470_000 picoseconds.
189		Weight::from_parts(6_760_000, 0)
190			.saturating_add(Weight::from_parts(0, 67035))
191			.saturating_add(T::DbWeight::get().reads(2))
192	}
193	/// Storage: `MultiBlockMigrations::Historic` (r:256 w:256)
194	/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
195	/// The range of component `n` is `[0, 256]`.
196	fn clear_historic(n: u32, ) -> Weight {
197		// Proof Size summary in bytes:
198		//  Measured:  `1022 + n * (271 ±0)`
199		//  Estimated: `3834 + n * (2740 ±0)`
200		// Minimum execution time: 15_864_000 picoseconds.
201		Weight::from_parts(24_535_162, 0)
202			.saturating_add(Weight::from_parts(0, 3834))
203			// Standard Error: 8_688
204			.saturating_add(Weight::from_parts(1_530_542, 0).saturating_mul(n.into()))
205			.saturating_add(T::DbWeight::get().reads(1))
206			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
207			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
208			.saturating_add(Weight::from_parts(0, 2740).saturating_mul(n.into()))
209	}
210	/// Storage: `Skipped::Metadata` (r:0 w:0)
211	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
212	/// The range of component `n` is `[0, 2048]`.
213	fn reset_pallet_migration(n: u32, ) -> Weight {
214		// Proof Size summary in bytes:
215		//  Measured:  `1680 + n * (38 ±0)`
216		//  Estimated: `758 + n * (39 ±0)`
217		// Minimum execution time: 2_168_000 picoseconds.
218		Weight::from_parts(2_226_000, 0)
219			.saturating_add(Weight::from_parts(0, 758))
220			// Standard Error: 2_841
221			.saturating_add(Weight::from_parts(935_438, 0).saturating_mul(n.into()))
222			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
223			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
224			.saturating_add(Weight::from_parts(0, 39).saturating_mul(n.into()))
225	}
226}