referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_rc_runtime/weights/xcm/
pallet_xcm_benchmarks_generic.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_xcm_benchmarks::generic`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `3a2e9ae8a8f5`, 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/westend-runtime/westend_runtime.wasm
33// --pallet=pallet_xcm_benchmarks::generic
34// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
35// --output=./polkadot/runtime/westend/src/weights/xcm
36// --wasm-execution=compiled
37// --steps=50
38// --repeat=20
39// --heap-pages=4096
40// --template=polkadot/xcm/pallet-xcm-benchmarks/template.hbs
41// --no-storage-info
42// --no-min-squares
43// --no-median-slopes
44
45#![cfg_attr(rustfmt, rustfmt_skip)]
46#![allow(unused_parens)]
47#![allow(unused_imports)]
48#![allow(missing_docs)]
49
50use frame_support::{traits::Get, weights::Weight};
51use core::marker::PhantomData;
52
53/// Weight functions for `pallet_xcm_benchmarks::generic`.
54pub struct WeightInfo<T>(PhantomData<T>);
55impl<T: frame_system::Config> WeightInfo<T> {
56	/// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
57	/// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
58	/// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
59	/// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
60	/// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
61	/// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
62	/// Storage: `Paras::Heads` (r:1 w:0)
63	/// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
64	/// Storage: `System::Account` (r:2 w:2)
65	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
66	/// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
67	/// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
68	pub(crate) fn report_holding() -> Weight {
69		// Proof Size summary in bytes:
70		//  Measured:  `416`
71		//  Estimated: `6196`
72		// Minimum execution time: 85_049_000 picoseconds.
73		Weight::from_parts(86_990_000, 6196)
74			.saturating_add(T::DbWeight::get().reads(7))
75			.saturating_add(T::DbWeight::get().writes(4))
76	}
77	pub(crate) fn buy_execution() -> Weight {
78		// Proof Size summary in bytes:
79		//  Measured:  `0`
80		//  Estimated: `0`
81		// Minimum execution time: 765_000 picoseconds.
82		Weight::from_parts(843_000, 0)
83	}
84	pub(crate) fn pay_fees() -> Weight {
85		// Proof Size summary in bytes:
86		//  Measured:  `0`
87		//  Estimated: `0`
88		// Minimum execution time: 3_417_000 picoseconds.
89		Weight::from_parts(3_570_000, 0)
90	}
91	pub(crate) fn asset_claimer() -> Weight {
92		// Proof Size summary in bytes:
93		//  Measured:  `0`
94		//  Estimated: `0`
95		// Minimum execution time: 758_000 picoseconds.
96		Weight::from_parts(827_000, 0)
97	}
98	/// Storage: `XcmPallet::Queries` (r:1 w:0)
99	/// Proof: `XcmPallet::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
100	pub(crate) fn query_response() -> Weight {
101		// Proof Size summary in bytes:
102		//  Measured:  `0`
103		//  Estimated: `3465`
104		// Minimum execution time: 6_326_000 picoseconds.
105		Weight::from_parts(6_588_000, 3465)
106			.saturating_add(T::DbWeight::get().reads(1))
107	}
108	pub(crate) fn transact() -> Weight {
109		// Proof Size summary in bytes:
110		//  Measured:  `0`
111		//  Estimated: `0`
112		// Minimum execution time: 7_872_000 picoseconds.
113		Weight::from_parts(8_163_000, 0)
114	}
115	pub(crate) fn refund_surplus() -> Weight {
116		// Proof Size summary in bytes:
117		//  Measured:  `0`
118		//  Estimated: `0`
119		// Minimum execution time: 1_361_000 picoseconds.
120		Weight::from_parts(1_477_000, 0)
121	}
122	pub(crate) fn set_error_handler() -> Weight {
123		// Proof Size summary in bytes:
124		//  Measured:  `0`
125		//  Estimated: `0`
126		// Minimum execution time: 723_000 picoseconds.
127		Weight::from_parts(827_000, 0)
128	}
129	pub(crate) fn set_appendix() -> Weight {
130		// Proof Size summary in bytes:
131		//  Measured:  `0`
132		//  Estimated: `0`
133		// Minimum execution time: 752_000 picoseconds.
134		Weight::from_parts(817_000, 0)
135	}
136	pub(crate) fn clear_error() -> Weight {
137		// Proof Size summary in bytes:
138		//  Measured:  `0`
139		//  Estimated: `0`
140		// Minimum execution time: 729_000 picoseconds.
141		Weight::from_parts(774_000, 0)
142	}
143	pub(crate) fn descend_origin() -> Weight {
144		// Proof Size summary in bytes:
145		//  Measured:  `0`
146		//  Estimated: `0`
147		// Minimum execution time: 784_000 picoseconds.
148		Weight::from_parts(834_000, 0)
149	}
150	pub(crate) fn execute_with_origin() -> Weight {
151		// Proof Size summary in bytes:
152		//  Measured:  `0`
153		//  Estimated: `0`
154		// Minimum execution time: 836_000 picoseconds.
155		Weight::from_parts(907_000, 0)
156	}
157	pub(crate) fn clear_origin() -> Weight {
158		// Proof Size summary in bytes:
159		//  Measured:  `0`
160		//  Estimated: `0`
161		// Minimum execution time: 753_000 picoseconds.
162		Weight::from_parts(808_000, 0)
163	}
164	/// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
165	/// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
166	/// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
167	/// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
168	/// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
169	/// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
170	/// Storage: `Paras::Heads` (r:1 w:0)
171	/// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
172	/// Storage: `System::Account` (r:2 w:2)
173	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
174	/// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
175	/// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
176	pub(crate) fn report_error() -> Weight {
177		// Proof Size summary in bytes:
178		//  Measured:  `416`
179		//  Estimated: `6196`
180		// Minimum execution time: 82_051_000 picoseconds.
181		Weight::from_parts(84_513_000, 6196)
182			.saturating_add(T::DbWeight::get().reads(7))
183			.saturating_add(T::DbWeight::get().writes(4))
184	}
185	/// Storage: `XcmPallet::AssetTraps` (r:1 w:1)
186	/// Proof: `XcmPallet::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
187	pub(crate) fn claim_asset() -> Weight {
188		// Proof Size summary in bytes:
189		//  Measured:  `23`
190		//  Estimated: `3488`
191		// Minimum execution time: 9_753_000 picoseconds.
192		Weight::from_parts(10_101_000, 3488)
193			.saturating_add(T::DbWeight::get().reads(1))
194			.saturating_add(T::DbWeight::get().writes(1))
195	}
196	pub(crate) fn trap() -> Weight {
197		// Proof Size summary in bytes:
198		//  Measured:  `0`
199		//  Estimated: `0`
200		// Minimum execution time: 762_000 picoseconds.
201		Weight::from_parts(825_000, 0)
202	}
203	/// Storage: `XcmPallet::VersionNotifyTargets` (r:1 w:1)
204	/// Proof: `XcmPallet::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
205	/// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
206	/// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
207	/// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
208	/// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
209	/// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
210	/// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
211	/// Storage: `Paras::Heads` (r:1 w:0)
212	/// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
213	/// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
214	/// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
215	pub(crate) fn subscribe_version() -> Weight {
216		// Proof Size summary in bytes:
217		//  Measured:  `212`
218		//  Estimated: `3677`
219		// Minimum execution time: 42_745_000 picoseconds.
220		Weight::from_parts(44_123_000, 3677)
221			.saturating_add(T::DbWeight::get().reads(6))
222			.saturating_add(T::DbWeight::get().writes(3))
223	}
224	/// Storage: `XcmPallet::VersionNotifyTargets` (r:0 w:1)
225	/// Proof: `XcmPallet::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
226	pub(crate) fn unsubscribe_version() -> Weight {
227		// Proof Size summary in bytes:
228		//  Measured:  `0`
229		//  Estimated: `0`
230		// Minimum execution time: 3_198_000 picoseconds.
231		Weight::from_parts(3_356_000, 0)
232			.saturating_add(T::DbWeight::get().writes(1))
233	}
234	pub(crate) fn burn_asset() -> Weight {
235		// Proof Size summary in bytes:
236		//  Measured:  `0`
237		//  Estimated: `0`
238		// Minimum execution time: 1_122_000 picoseconds.
239		Weight::from_parts(1_255_000, 0)
240	}
241	pub(crate) fn expect_asset() -> Weight {
242		// Proof Size summary in bytes:
243		//  Measured:  `0`
244		//  Estimated: `0`
245		// Minimum execution time: 865_000 picoseconds.
246		Weight::from_parts(911_000, 0)
247	}
248	pub(crate) fn expect_origin() -> Weight {
249		// Proof Size summary in bytes:
250		//  Measured:  `0`
251		//  Estimated: `0`
252		// Minimum execution time: 748_000 picoseconds.
253		Weight::from_parts(815_000, 0)
254	}
255	pub(crate) fn expect_error() -> Weight {
256		// Proof Size summary in bytes:
257		//  Measured:  `0`
258		//  Estimated: `0`
259		// Minimum execution time: 724_000 picoseconds.
260		Weight::from_parts(783_000, 0)
261	}
262	pub(crate) fn expect_transact_status() -> Weight {
263		// Proof Size summary in bytes:
264		//  Measured:  `0`
265		//  Estimated: `0`
266		// Minimum execution time: 885_000 picoseconds.
267		Weight::from_parts(973_000, 0)
268	}
269	/// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
270	/// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
271	/// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
272	/// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
273	/// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
274	/// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
275	/// Storage: `Paras::Heads` (r:1 w:0)
276	/// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
277	/// Storage: `System::Account` (r:2 w:2)
278	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
279	/// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
280	/// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
281	pub(crate) fn query_pallet() -> Weight {
282		// Proof Size summary in bytes:
283		//  Measured:  `416`
284		//  Estimated: `6196`
285		// Minimum execution time: 92_780_000 picoseconds.
286		Weight::from_parts(94_883_000, 6196)
287			.saturating_add(T::DbWeight::get().reads(7))
288			.saturating_add(T::DbWeight::get().writes(4))
289	}
290	pub(crate) fn expect_pallet() -> Weight {
291		// Proof Size summary in bytes:
292		//  Measured:  `0`
293		//  Estimated: `0`
294		// Minimum execution time: 8_284_000 picoseconds.
295		Weight::from_parts(8_505_000, 0)
296	}
297	/// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
298	/// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
299	/// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
300	/// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
301	/// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
302	/// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
303	/// Storage: `Paras::Heads` (r:1 w:0)
304	/// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
305	/// Storage: `System::Account` (r:2 w:2)
306	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
307	/// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
308	/// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
309	pub(crate) fn report_transact_status() -> Weight {
310		// Proof Size summary in bytes:
311		//  Measured:  `416`
312		//  Estimated: `6196`
313		// Minimum execution time: 82_598_000 picoseconds.
314		Weight::from_parts(86_748_000, 6196)
315			.saturating_add(T::DbWeight::get().reads(7))
316			.saturating_add(T::DbWeight::get().writes(4))
317	}
318	pub(crate) fn clear_transact_status() -> Weight {
319		// Proof Size summary in bytes:
320		//  Measured:  `0`
321		//  Estimated: `0`
322		// Minimum execution time: 801_000 picoseconds.
323		Weight::from_parts(853_000, 0)
324	}
325	pub(crate) fn set_topic() -> Weight {
326		// Proof Size summary in bytes:
327		//  Measured:  `0`
328		//  Estimated: `0`
329		// Minimum execution time: 703_000 picoseconds.
330		Weight::from_parts(782_000, 0)
331	}
332	pub(crate) fn clear_topic() -> Weight {
333		// Proof Size summary in bytes:
334		//  Measured:  `0`
335		//  Estimated: `0`
336		// Minimum execution time: 674_000 picoseconds.
337		Weight::from_parts(759_000, 0)
338	}
339	pub(crate) fn set_fees_mode() -> Weight {
340		// Proof Size summary in bytes:
341		//  Measured:  `0`
342		//  Estimated: `0`
343		// Minimum execution time: 712_000 picoseconds.
344		Weight::from_parts(793_000, 0)
345	}
346	pub(crate) fn unpaid_execution() -> Weight {
347		// Proof Size summary in bytes:
348		//  Measured:  `0`
349		//  Estimated: `0`
350		// Minimum execution time: 745_000 picoseconds.
351		Weight::from_parts(812_000, 0)
352	}
353	pub(crate) fn alias_origin() -> Weight {
354		// Proof Size summary in bytes:
355		//  Measured:  `0`
356		//  Estimated: `0`
357		// Minimum execution time: 757_000 picoseconds.
358		Weight::from_parts(799_000, 0)
359	}
360}