referrerpolicy=no-referrer-when-downgrade

people_westend_runtime/weights/
pallet_migrations.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// 	http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_migrations`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `b9a9df1fcddf`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/people-westend-runtime/people_westend_runtime.wasm
31// --pallet=pallet_migrations
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/people/people-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_migrations`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_migrations::WeightInfo for WeightInfo<T> {
53	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:1)
54	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
55	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
56	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
57	fn onboard_new_mbms() -> Weight {
58		// Proof Size summary in bytes:
59		//  Measured:  `71`
60		//  Estimated: `67035`
61		// Minimum execution time: 8_341_000 picoseconds.
62		Weight::from_parts(8_848_000, 0)
63			.saturating_add(Weight::from_parts(0, 67035))
64			.saturating_add(T::DbWeight::get().reads(2))
65			.saturating_add(T::DbWeight::get().writes(1))
66	}
67	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
68	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
69	fn progress_mbms_none() -> Weight {
70		// Proof Size summary in bytes:
71		//  Measured:  `42`
72		//  Estimated: `67035`
73		// Minimum execution time: 2_659_000 picoseconds.
74		Weight::from_parts(2_816_000, 0)
75			.saturating_add(Weight::from_parts(0, 67035))
76			.saturating_add(T::DbWeight::get().reads(1))
77	}
78	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
79	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
80	/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
81	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
82	fn exec_migration_completed() -> Weight {
83		// Proof Size summary in bytes:
84		//  Measured:  `29`
85		//  Estimated: `3494`
86		// Minimum execution time: 5_839_000 picoseconds.
87		Weight::from_parts(6_144_000, 0)
88			.saturating_add(Weight::from_parts(0, 3494))
89			.saturating_add(T::DbWeight::get().reads(1))
90			.saturating_add(T::DbWeight::get().writes(1))
91	}
92	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
93	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
94	/// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
95	/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
96	fn exec_migration_skipped_historic() -> Weight {
97		// Proof Size summary in bytes:
98		//  Measured:  `125`
99		//  Estimated: `3731`
100		// Minimum execution time: 11_821_000 picoseconds.
101		Weight::from_parts(12_294_000, 0)
102			.saturating_add(Weight::from_parts(0, 3731))
103			.saturating_add(T::DbWeight::get().reads(2))
104	}
105	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
106	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
107	/// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
108	/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
109	fn exec_migration_advance() -> Weight {
110		// Proof Size summary in bytes:
111		//  Measured:  `71`
112		//  Estimated: `3731`
113		// Minimum execution time: 11_132_000 picoseconds.
114		Weight::from_parts(11_703_000, 0)
115			.saturating_add(Weight::from_parts(0, 3731))
116			.saturating_add(T::DbWeight::get().reads(2))
117	}
118	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
119	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
120	/// Storage: `MultiBlockMigrations::Historic` (r:1 w:1)
121	/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
122	fn exec_migration_complete() -> Weight {
123		// Proof Size summary in bytes:
124		//  Measured:  `71`
125		//  Estimated: `3731`
126		// Minimum execution time: 13_004_000 picoseconds.
127		Weight::from_parts(13_507_000, 0)
128			.saturating_add(Weight::from_parts(0, 3731))
129			.saturating_add(T::DbWeight::get().reads(2))
130			.saturating_add(T::DbWeight::get().writes(1))
131	}
132	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
133	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
134	/// Storage: `MultiBlockMigrations::Historic` (r:1 w:0)
135	/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
136	/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
137	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
138	fn exec_migration_fail() -> Weight {
139		// Proof Size summary in bytes:
140		//  Measured:  `71`
141		//  Estimated: `3731`
142		// Minimum execution time: 13_784_000 picoseconds.
143		Weight::from_parts(14_049_000, 0)
144			.saturating_add(Weight::from_parts(0, 3731))
145			.saturating_add(T::DbWeight::get().reads(2))
146			.saturating_add(T::DbWeight::get().writes(1))
147	}
148	fn on_init_loop() -> Weight {
149		// Proof Size summary in bytes:
150		//  Measured:  `0`
151		//  Estimated: `0`
152		// Minimum execution time: 199_000 picoseconds.
153		Weight::from_parts(244_000, 0)
154			.saturating_add(Weight::from_parts(0, 0))
155	}
156	/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
157	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
158	fn force_set_cursor() -> Weight {
159		// Proof Size summary in bytes:
160		//  Measured:  `0`
161		//  Estimated: `0`
162		// Minimum execution time: 2_693_000 picoseconds.
163		Weight::from_parts(2_940_000, 0)
164			.saturating_add(Weight::from_parts(0, 0))
165			.saturating_add(T::DbWeight::get().writes(1))
166	}
167	/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
168	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
169	fn force_set_active_cursor() -> Weight {
170		// Proof Size summary in bytes:
171		//  Measured:  `0`
172		//  Estimated: `0`
173		// Minimum execution time: 3_086_000 picoseconds.
174		Weight::from_parts(3_352_000, 0)
175			.saturating_add(Weight::from_parts(0, 0))
176			.saturating_add(T::DbWeight::get().writes(1))
177	}
178	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
179	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
180	/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
181	/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
182	fn force_onboard_mbms() -> Weight {
183		// Proof Size summary in bytes:
184		//  Measured:  `85`
185		//  Estimated: `67035`
186		// Minimum execution time: 6_741_000 picoseconds.
187		Weight::from_parts(7_168_000, 0)
188			.saturating_add(Weight::from_parts(0, 67035))
189			.saturating_add(T::DbWeight::get().reads(2))
190	}
191	/// Storage: `MultiBlockMigrations::Historic` (r:256 w:256)
192	/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
193	/// The range of component `n` is `[0, 256]`.
194	fn clear_historic(n: u32, ) -> Weight {
195		// Proof Size summary in bytes:
196		//  Measured:  `1022 + n * (271 ±0)`
197		//  Estimated: `3834 + n * (2740 ±0)`
198		// Minimum execution time: 15_803_000 picoseconds.
199		Weight::from_parts(14_862_130, 0)
200			.saturating_add(Weight::from_parts(0, 3834))
201			// Standard Error: 3_440
202			.saturating_add(Weight::from_parts(1_453_668, 0).saturating_mul(n.into()))
203			.saturating_add(T::DbWeight::get().reads(1))
204			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
205			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
206			.saturating_add(Weight::from_parts(0, 2740).saturating_mul(n.into()))
207	}
208	/// Storage: `Skipped::Metadata` (r:0 w:0)
209	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
210	/// The range of component `n` is `[0, 2048]`.
211	fn reset_pallet_migration(n: u32, ) -> Weight {
212		// Proof Size summary in bytes:
213		//  Measured:  `1642 + n * (38 ±0)`
214		//  Estimated: `720 + n * (39 ±0)`
215		// Minimum execution time: 1_919_000 picoseconds.
216		Weight::from_parts(5_740_246, 0)
217			.saturating_add(Weight::from_parts(0, 720))
218			// Standard Error: 1_463
219			.saturating_add(Weight::from_parts(836_551, 0).saturating_mul(n.into()))
220			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
221			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
222			.saturating_add(Weight::from_parts(0, 39).saturating_mul(n.into()))
223	}
224}