bridge_hub_westend_runtime/weights/xcm/pallet_xcm_benchmarks_generic.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_xcm_benchmarks::generic`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-07-30, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `a49f76527979`, 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/bridge-hub-westend-runtime/bridge_hub_westend_runtime.wasm
31// --pallet=pallet_xcm_benchmarks::generic
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/weights/xcm
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --template=cumulus/templates/xcm-bench-template.hbs
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weights for `pallet_xcm_benchmarks::generic`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> WeightInfo<T> {
53 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
54 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
55 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
56 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
57 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
58 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
59 // Storage: `System::Account` (r:2 w:2)
60 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
61 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
62 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
63 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
64 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
65 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
66 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`)
67 pub fn report_holding() -> Weight {
68 // Proof Size summary in bytes:
69 // Measured: `448`
70 // Estimated: `6196`
71 // Minimum execution time: 84_814_000 picoseconds.
72 Weight::from_parts(87_025_000, 6196)
73 .saturating_add(T::DbWeight::get().reads(7))
74 .saturating_add(T::DbWeight::get().writes(4))
75 }
76 // Storage: `System::Account` (r:1 w:1)
77 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
78 pub fn buy_execution() -> Weight {
79 // Proof Size summary in bytes:
80 // Measured: `0`
81 // Estimated: `3593`
82 // Minimum execution time: 4_202_000 picoseconds.
83 Weight::from_parts(4_408_000, 3593)
84 .saturating_add(T::DbWeight::get().reads(1))
85 .saturating_add(T::DbWeight::get().writes(1))
86 }
87 // Storage: `System::Account` (r:1 w:1)
88 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
89 pub fn pay_fees() -> Weight {
90 // Proof Size summary in bytes:
91 // Measured: `0`
92 // Estimated: `3593`
93 // Minimum execution time: 4_150_000 picoseconds.
94 Weight::from_parts(4_423_000, 3593)
95 .saturating_add(T::DbWeight::get().reads(1))
96 .saturating_add(T::DbWeight::get().writes(1))
97 }
98 pub fn asset_claimer() -> Weight {
99 // Proof Size summary in bytes:
100 // Measured: `0`
101 // Estimated: `0`
102 // Minimum execution time: 1_105_000 picoseconds.
103 Weight::from_parts(1_152_000, 0)
104 }
105 // Storage: `PolkadotXcm::Queries` (r:1 w:0)
106 // Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
107 pub fn query_response() -> Weight {
108 // Proof Size summary in bytes:
109 // Measured: `0`
110 // Estimated: `3465`
111 // Minimum execution time: 6_078_000 picoseconds.
112 Weight::from_parts(6_297_000, 3465)
113 .saturating_add(T::DbWeight::get().reads(1))
114 }
115 pub fn transact() -> Weight {
116 // Proof Size summary in bytes:
117 // Measured: `0`
118 // Estimated: `0`
119 // Minimum execution time: 8_586_000 picoseconds.
120 Weight::from_parts(8_908_000, 0)
121 }
122 pub fn refund_surplus() -> Weight {
123 // Proof Size summary in bytes:
124 // Measured: `0`
125 // Estimated: `0`
126 // Minimum execution time: 1_581_000 picoseconds.
127 Weight::from_parts(1_705_000, 0)
128 }
129 pub fn set_error_handler() -> Weight {
130 // Proof Size summary in bytes:
131 // Measured: `0`
132 // Estimated: `0`
133 // Minimum execution time: 1_118_000 picoseconds.
134 Weight::from_parts(1_166_000, 0)
135 }
136 pub fn set_appendix() -> Weight {
137 // Proof Size summary in bytes:
138 // Measured: `0`
139 // Estimated: `0`
140 // Minimum execution time: 1_096_000 picoseconds.
141 Weight::from_parts(1_142_000, 0)
142 }
143 pub fn clear_error() -> Weight {
144 // Proof Size summary in bytes:
145 // Measured: `0`
146 // Estimated: `0`
147 // Minimum execution time: 1_049_000 picoseconds.
148 Weight::from_parts(1_130_000, 0)
149 }
150 pub fn descend_origin() -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `0`
153 // Estimated: `0`
154 // Minimum execution time: 1_077_000 picoseconds.
155 Weight::from_parts(1_140_000, 0)
156 }
157 // Storage: `Benchmark::Override` (r:0 w:0)
158 // Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
159 pub fn execute_with_origin() -> Weight {
160 // Proof Size summary in bytes:
161 // Measured: `0`
162 // Estimated: `0`
163 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
164 Weight::from_parts(18_446_744_073_709_551_000, 0)
165 }
166 pub fn clear_origin() -> Weight {
167 // Proof Size summary in bytes:
168 // Measured: `0`
169 // Estimated: `0`
170 // Minimum execution time: 1_097_000 picoseconds.
171 Weight::from_parts(1_147_000, 0)
172 }
173 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
174 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
175 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
176 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
177 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
178 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
179 // Storage: `System::Account` (r:2 w:2)
180 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
181 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
182 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
183 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
184 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
185 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
186 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`)
187 pub fn report_error() -> Weight {
188 // Proof Size summary in bytes:
189 // Measured: `448`
190 // Estimated: `6196`
191 // Minimum execution time: 79_156_000 picoseconds.
192 Weight::from_parts(82_289_000, 6196)
193 .saturating_add(T::DbWeight::get().reads(7))
194 .saturating_add(T::DbWeight::get().writes(4))
195 }
196 // Storage: `PolkadotXcm::AssetTraps` (r:1 w:1)
197 // Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
198 pub fn claim_asset() -> Weight {
199 // Proof Size summary in bytes:
200 // Measured: `24`
201 // Estimated: `3489`
202 // Minimum execution time: 9_923_000 picoseconds.
203 Weight::from_parts(10_220_000, 3489)
204 .saturating_add(T::DbWeight::get().reads(1))
205 .saturating_add(T::DbWeight::get().writes(1))
206 }
207 pub fn trap() -> Weight {
208 // Proof Size summary in bytes:
209 // Measured: `0`
210 // Estimated: `0`
211 // Minimum execution time: 3_814_000 picoseconds.
212 Weight::from_parts(4_024_000, 0)
213 }
214 // Storage: `PolkadotXcm::VersionNotifyTargets` (r:1 w:1)
215 // Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
216 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
217 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
218 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
219 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
220 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
221 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
222 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
223 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
224 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
225 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`)
226 pub fn subscribe_version() -> Weight {
227 // Proof Size summary in bytes:
228 // Measured: `278`
229 // Estimated: `3743`
230 // Minimum execution time: 33_105_000 picoseconds.
231 Weight::from_parts(34_887_000, 3743)
232 .saturating_add(T::DbWeight::get().reads(5))
233 .saturating_add(T::DbWeight::get().writes(3))
234 }
235 // Storage: `PolkadotXcm::VersionNotifyTargets` (r:0 w:1)
236 // Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
237 pub fn unsubscribe_version() -> Weight {
238 // Proof Size summary in bytes:
239 // Measured: `0`
240 // Estimated: `0`
241 // Minimum execution time: 3_587_000 picoseconds.
242 Weight::from_parts(3_898_000, 0)
243 .saturating_add(T::DbWeight::get().writes(1))
244 }
245 pub fn burn_asset() -> Weight {
246 // Proof Size summary in bytes:
247 // Measured: `0`
248 // Estimated: `0`
249 // Minimum execution time: 1_515_000 picoseconds.
250 Weight::from_parts(1_600_000, 0)
251 }
252 pub fn expect_asset() -> Weight {
253 // Proof Size summary in bytes:
254 // Measured: `0`
255 // Estimated: `0`
256 // Minimum execution time: 1_156_000 picoseconds.
257 Weight::from_parts(1_234_000, 0)
258 }
259 pub fn expect_origin() -> Weight {
260 // Proof Size summary in bytes:
261 // Measured: `0`
262 // Estimated: `0`
263 // Minimum execution time: 3_753_000 picoseconds.
264 Weight::from_parts(3_974_000, 0)
265 }
266 pub fn expect_error() -> Weight {
267 // Proof Size summary in bytes:
268 // Measured: `0`
269 // Estimated: `0`
270 // Minimum execution time: 3_737_000 picoseconds.
271 Weight::from_parts(3_893_000, 0)
272 }
273 pub fn expect_transact_status() -> Weight {
274 // Proof Size summary in bytes:
275 // Measured: `0`
276 // Estimated: `0`
277 // Minimum execution time: 1_178_000 picoseconds.
278 Weight::from_parts(1_272_000, 0)
279 }
280 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
281 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
282 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
283 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
284 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
285 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
286 // Storage: `System::Account` (r:2 w:2)
287 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
288 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
289 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
290 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
291 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
292 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
293 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`)
294 pub fn query_pallet() -> Weight {
295 // Proof Size summary in bytes:
296 // Measured: `448`
297 // Estimated: `6196`
298 // Minimum execution time: 86_480_000 picoseconds.
299 Weight::from_parts(88_562_000, 6196)
300 .saturating_add(T::DbWeight::get().reads(7))
301 .saturating_add(T::DbWeight::get().writes(4))
302 }
303 pub fn expect_pallet() -> Weight {
304 // Proof Size summary in bytes:
305 // Measured: `0`
306 // Estimated: `0`
307 // Minimum execution time: 5_175_000 picoseconds.
308 Weight::from_parts(5_346_000, 0)
309 }
310 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
311 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
312 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
313 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
314 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
315 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
316 // Storage: `System::Account` (r:2 w:2)
317 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
318 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
319 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
320 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
321 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
322 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
323 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`)
324 pub fn report_transact_status() -> Weight {
325 // Proof Size summary in bytes:
326 // Measured: `448`
327 // Estimated: `6196`
328 // Minimum execution time: 79_699_000 picoseconds.
329 Weight::from_parts(82_168_000, 6196)
330 .saturating_add(T::DbWeight::get().reads(7))
331 .saturating_add(T::DbWeight::get().writes(4))
332 }
333 pub fn clear_transact_status() -> Weight {
334 // Proof Size summary in bytes:
335 // Measured: `0`
336 // Estimated: `0`
337 // Minimum execution time: 1_119_000 picoseconds.
338 Weight::from_parts(1_177_000, 0)
339 }
340 pub fn set_topic() -> Weight {
341 // Proof Size summary in bytes:
342 // Measured: `0`
343 // Estimated: `0`
344 // Minimum execution time: 1_104_000 picoseconds.
345 Weight::from_parts(1_154_000, 0)
346 }
347 pub fn clear_topic() -> Weight {
348 // Proof Size summary in bytes:
349 // Measured: `0`
350 // Estimated: `0`
351 // Minimum execution time: 1_032_000 picoseconds.
352 Weight::from_parts(1_105_000, 0)
353 }
354 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
355 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
356 // Storage: `XcmOverBridgeHubRococo::Bridges` (r:1 w:0)
357 // Proof: `XcmOverBridgeHubRococo::Bridges` (`max_values`: None, `max_size`: Some(1889), added: 4364, mode: `MaxEncodedLen`)
358 // Storage: `PolkadotXcm::SupportedVersion` (r:2 w:0)
359 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
360 // Storage: `BridgeRococoMessages::PalletOperatingMode` (r:1 w:0)
361 // Proof: `BridgeRococoMessages::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
362 // Storage: `BridgeRococoMessages::OutboundLanes` (r:1 w:1)
363 // Proof: `BridgeRococoMessages::OutboundLanes` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
364 // Storage: `BridgeRococoMessages::OutboundMessages` (r:0 w:1)
365 // Proof: `BridgeRococoMessages::OutboundMessages` (`max_values`: None, `max_size`: Some(65568), added: 68043, mode: `MaxEncodedLen`)
366 /// The range of component `x` is `[1, 1000]`.
367 pub fn export_message(x: u32, ) -> Weight {
368 // Proof Size summary in bytes:
369 // Measured: `546`
370 // Estimated: `6486`
371 // Minimum execution time: 64_386_000 picoseconds.
372 Weight::from_parts(66_478_537, 6486)
373 // Standard Error: 399
374 .saturating_add(Weight::from_parts(74_645, 0).saturating_mul(x.into()))
375 .saturating_add(T::DbWeight::get().reads(6))
376 .saturating_add(T::DbWeight::get().writes(2))
377 }
378 pub fn set_fees_mode() -> Weight {
379 // Proof Size summary in bytes:
380 // Measured: `0`
381 // Estimated: `0`
382 // Minimum execution time: 1_044_000 picoseconds.
383 Weight::from_parts(1_120_000, 0)
384 }
385 pub fn unpaid_execution() -> Weight {
386 // Proof Size summary in bytes:
387 // Measured: `0`
388 // Estimated: `0`
389 // Minimum execution time: 1_062_000 picoseconds.
390 Weight::from_parts(1_106_000, 0)
391 }
392 pub fn alias_origin() -> Weight {
393 // Proof Size summary in bytes:
394 // Measured: `0`
395 // Estimated: `0`
396 // Minimum execution time: 1_078_000 picoseconds.
397 Weight::from_parts(1_152_000, 0)
398 }
399}