pallet_staking_async_parachain_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: 2024-10-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `runner-wmcgzesc-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! WASM-EXECUTION: Compiled, CHAIN: Some("asset-hub-next-westend-dev"), DB CACHE: 1024
25
26// Executed Command:
27// target/production/polkadot-parachain
28// benchmark
29// pallet
30// --steps=50
31// --repeat=20
32// --extrinsic=*
33// --wasm-execution=compiled
34// --heap-pages=4096
35// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
36// --pallet=pallet_xcm_benchmarks::generic
37// --chain=asset-hub-next-westend-dev
38// --header=./cumulus/file_header.txt
39// --template=./cumulus/templates/xcm-bench-template.hbs
40// --output=./cumulus/parachains/runtimes/assets/asset-hub-next-westend/src/weights/xcm/
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45
46use frame_support::{traits::Get, weights::Weight};
47use core::marker::PhantomData;
48
49/// Weights for `pallet_xcm_benchmarks::generic`.
50pub struct WeightInfo<T>(PhantomData<T>);
51impl<T: frame_system::Config> WeightInfo<T> {
52 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
53 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
54 // Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
55 // Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
57 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
58 // Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
59 // Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
60 // Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
61 // Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
62 // Storage: `System::Account` (r:2 w:2)
63 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
64 // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
65 // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
66 // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
67 // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
68 pub fn report_holding() -> Weight {
69 // Proof Size summary in bytes:
70 // Measured: `246`
71 // Estimated: `6196`
72 // Minimum execution time: 103_794_000 picoseconds.
73 Weight::from_parts(106_697_000, 6196)
74 .saturating_add(T::DbWeight::get().reads(9))
75 .saturating_add(T::DbWeight::get().writes(4))
76 }
77 pub fn buy_execution() -> Weight {
78 // Proof Size summary in bytes:
79 // Measured: `0`
80 // Estimated: `0`
81 // Minimum execution time: 621_000 picoseconds.
82 Weight::from_parts(705_000, 0)
83 }
84 pub fn pay_fees() -> Weight {
85 // Proof Size summary in bytes:
86 // Measured: `0`
87 // Estimated: `0`
88 // Minimum execution time: 5_580_000 picoseconds.
89 Weight::from_parts(5_950_000, 0)
90 }
91 pub fn asset_claimer() -> Weight {
92 // Proof Size summary in bytes:
93 // Measured: `0`
94 // Estimated: `0`
95 // Minimum execution time: 598_000 picoseconds.
96 Weight::from_parts(700_000, 0)
97 }
98 // Storage: `PolkadotXcm::Queries` (r:1 w:0)
99 // Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
100 pub fn query_response() -> Weight {
101 // Proof Size summary in bytes:
102 // Measured: `103`
103 // Estimated: `3568`
104 // Minimum execution time: 8_186_000 picoseconds.
105 Weight::from_parts(8_753_000, 3568)
106 .saturating_add(T::DbWeight::get().reads(1))
107 }
108 pub fn transact() -> Weight {
109 // Proof Size summary in bytes:
110 // Measured: `0`
111 // Estimated: `0`
112 // Minimum execution time: 6_924_000 picoseconds.
113 Weight::from_parts(7_315_000, 0)
114 }
115 pub fn refund_surplus() -> Weight {
116 // Proof Size summary in bytes:
117 // Measured: `0`
118 // Estimated: `0`
119 // Minimum execution time: 2_731_000 picoseconds.
120 Weight::from_parts(2_828_000, 0)
121 }
122 pub fn set_error_handler() -> Weight {
123 // Proof Size summary in bytes:
124 // Measured: `0`
125 // Estimated: `0`
126 // Minimum execution time: 655_000 picoseconds.
127 Weight::from_parts(723_000, 0)
128 }
129 pub fn set_appendix() -> Weight {
130 // Proof Size summary in bytes:
131 // Measured: `0`
132 // Estimated: `0`
133 // Minimum execution time: 648_000 picoseconds.
134 Weight::from_parts(730_000, 0)
135 }
136 pub fn clear_error() -> Weight {
137 // Proof Size summary in bytes:
138 // Measured: `0`
139 // Estimated: `0`
140 // Minimum execution time: 628_000 picoseconds.
141 Weight::from_parts(697_000, 0)
142 }
143 pub fn descend_origin() -> Weight {
144 // Proof Size summary in bytes:
145 // Measured: `0`
146 // Estimated: `0`
147 // Minimum execution time: 714_000 picoseconds.
148 Weight::from_parts(775_000, 0)
149 }
150 pub fn clear_origin() -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `0`
153 // Estimated: `0`
154 // Minimum execution time: 666_000 picoseconds.
155 Weight::from_parts(717_000, 0)
156 }
157 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
158 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
159 // Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
160 // Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
161 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
162 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
163 // Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
164 // Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
165 // Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
166 // Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
167 // Storage: `System::Account` (r:2 w:2)
168 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
169 // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
170 // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
171 // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
172 // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
173 pub fn report_error() -> Weight {
174 // Proof Size summary in bytes:
175 // Measured: `246`
176 // Estimated: `6196`
177 // Minimum execution time: 70_263_000 picoseconds.
178 Weight::from_parts(71_266_000, 6196)
179 .saturating_add(T::DbWeight::get().reads(9))
180 .saturating_add(T::DbWeight::get().writes(4))
181 }
182 // Storage: `PolkadotXcm::AssetTraps` (r:1 w:1)
183 // Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
184 pub fn claim_asset() -> Weight {
185 // Proof Size summary in bytes:
186 // Measured: `160`
187 // Estimated: `3625`
188 // Minimum execution time: 13_079_000 picoseconds.
189 Weight::from_parts(13_569_000, 3625)
190 .saturating_add(T::DbWeight::get().reads(1))
191 .saturating_add(T::DbWeight::get().writes(1))
192 }
193 pub fn trap() -> Weight {
194 // Proof Size summary in bytes:
195 // Measured: `0`
196 // Estimated: `0`
197 // Minimum execution time: 630_000 picoseconds.
198 Weight::from_parts(710_000, 0)
199 }
200 // Storage: `PolkadotXcm::VersionNotifyTargets` (r:1 w:1)
201 // Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
202 // Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
203 // Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
204 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
205 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
206 // Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
207 // Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
208 // Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
209 // Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
210 // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
211 // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
212 // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
213 // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
214 pub fn subscribe_version() -> Weight {
215 // Proof Size summary in bytes:
216 // Measured: `145`
217 // Estimated: `3610`
218 // Minimum execution time: 29_042_000 picoseconds.
219 Weight::from_parts(29_633_000, 3610)
220 .saturating_add(T::DbWeight::get().reads(7))
221 .saturating_add(T::DbWeight::get().writes(3))
222 }
223 // Storage: `PolkadotXcm::VersionNotifyTargets` (r:0 w:1)
224 // Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
225 pub fn unsubscribe_version() -> Weight {
226 // Proof Size summary in bytes:
227 // Measured: `0`
228 // Estimated: `0`
229 // Minimum execution time: 2_601_000 picoseconds.
230 Weight::from_parts(2_855_000, 0)
231 .saturating_add(T::DbWeight::get().writes(1))
232 }
233 pub fn burn_asset() -> Weight {
234 // Proof Size summary in bytes:
235 // Measured: `0`
236 // Estimated: `0`
237 // Minimum execution time: 23_696_000 picoseconds.
238 Weight::from_parts(24_427_000, 0)
239 }
240 pub fn expect_asset() -> Weight {
241 // Proof Size summary in bytes:
242 // Measured: `0`
243 // Estimated: `0`
244 // Minimum execution time: 6_687_000 picoseconds.
245 Weight::from_parts(6_820_000, 0)
246 }
247 pub fn expect_origin() -> Weight {
248 // Proof Size summary in bytes:
249 // Measured: `0`
250 // Estimated: `0`
251 // Minimum execution time: 653_000 picoseconds.
252 Weight::from_parts(728_000, 0)
253 }
254 pub fn expect_error() -> Weight {
255 // Proof Size summary in bytes:
256 // Measured: `0`
257 // Estimated: `0`
258 // Minimum execution time: 668_000 picoseconds.
259 Weight::from_parts(721_000, 0)
260 }
261 pub fn expect_transact_status() -> Weight {
262 // Proof Size summary in bytes:
263 // Measured: `0`
264 // Estimated: `0`
265 // Minimum execution time: 832_000 picoseconds.
266 Weight::from_parts(900_000, 0)
267 }
268 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
269 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
270 // Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
271 // Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
272 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
273 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
274 // Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
275 // Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
276 // Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
277 // Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
278 // Storage: `System::Account` (r:2 w:2)
279 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
280 // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
281 // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
282 // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
283 // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
284 pub fn query_pallet() -> Weight {
285 // Proof Size summary in bytes:
286 // Measured: `246`
287 // Estimated: `6196`
288 // Minimum execution time: 75_131_000 picoseconds.
289 Weight::from_parts(77_142_000, 6196)
290 .saturating_add(T::DbWeight::get().reads(9))
291 .saturating_add(T::DbWeight::get().writes(4))
292 }
293 pub fn expect_pallet() -> Weight {
294 // Proof Size summary in bytes:
295 // Measured: `0`
296 // Estimated: `0`
297 // Minimum execution time: 4_820_000 picoseconds.
298 Weight::from_parts(5_089_000, 0)
299 }
300 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
301 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
302 // Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
303 // Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
304 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
305 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
306 // Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
307 // Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
308 // Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
309 // Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
310 // Storage: `System::Account` (r:2 w:2)
311 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
312 // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
313 // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
314 // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
315 // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
316 pub fn report_transact_status() -> Weight {
317 // Proof Size summary in bytes:
318 // Measured: `246`
319 // Estimated: `6196`
320 // Minimum execution time: 70_079_000 picoseconds.
321 Weight::from_parts(71_762_000, 6196)
322 .saturating_add(T::DbWeight::get().reads(9))
323 .saturating_add(T::DbWeight::get().writes(4))
324 }
325 pub fn clear_transact_status() -> Weight {
326 // Proof Size summary in bytes:
327 // Measured: `0`
328 // Estimated: `0`
329 // Minimum execution time: 722_000 picoseconds.
330 Weight::from_parts(784_000, 0)
331 }
332 pub fn set_topic() -> Weight {
333 // Proof Size summary in bytes:
334 // Measured: `0`
335 // Estimated: `0`
336 // Minimum execution time: 613_000 picoseconds.
337 Weight::from_parts(674_000, 0)
338 }
339 pub fn clear_topic() -> Weight {
340 // Proof Size summary in bytes:
341 // Measured: `0`
342 // Estimated: `0`
343 // Minimum execution time: 608_000 picoseconds.
344 Weight::from_parts(683_000, 0)
345 }
346 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
347 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
348 pub fn universal_origin() -> Weight {
349 // Proof Size summary in bytes:
350 // Measured: `0`
351 // Estimated: `1489`
352 // Minimum execution time: 2_466_000 picoseconds.
353 Weight::from_parts(2_705_000, 1489)
354 .saturating_add(T::DbWeight::get().reads(1))
355 }
356 pub fn set_fees_mode() -> Weight {
357 // Proof Size summary in bytes:
358 // Measured: `0`
359 // Estimated: `0`
360 // Minimum execution time: 623_000 picoseconds.
361 Weight::from_parts(687_000, 0)
362 }
363 pub fn unpaid_execution() -> Weight {
364 // Proof Size summary in bytes:
365 // Measured: `0`
366 // Estimated: `0`
367 // Minimum execution time: 673_000 picoseconds.
368 Weight::from_parts(752_000, 0)
369 }
370 pub fn alias_origin() -> Weight {
371 // Proof Size summary in bytes:
372 // Measured: `0`
373 // Estimated: `0`
374 // Minimum execution time: 638_000 picoseconds.
375 Weight::from_parts(708_000, 0)
376 }
377 pub fn execute_with_origin() -> Weight {
378 // Proof Size summary in bytes:
379 // Measured: `0`
380 // Estimated: `0`
381 // Minimum execution time: 713_000 picoseconds.
382 Weight::from_parts(776_000, 0)
383 }
384}