pallet_staking_async_rc_runtime/weights/pallet_xcm.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Substrate.
3
4// Substrate is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Substrate is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `pallet_xcm`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `3a2e9ae8a8f5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/westend-runtime/westend_runtime.wasm
32// --pallet=pallet_xcm
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
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#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_xcm`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
54 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
55 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
56 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
57 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
58 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
59 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
60 /// Storage: `Paras::Heads` (r:1 w:0)
61 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
62 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
63 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
64 fn send() -> Weight {
65 // Proof Size summary in bytes:
66 // Measured: `212`
67 // Estimated: `3677`
68 // Minimum execution time: 41_335_000 picoseconds.
69 Weight::from_parts(42_659_000, 0)
70 .saturating_add(Weight::from_parts(0, 3677))
71 .saturating_add(T::DbWeight::get().reads(5))
72 .saturating_add(T::DbWeight::get().writes(2))
73 }
74 /// Storage: `System::Account` (r:2 w:2)
75 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
76 /// Storage: `XcmPallet::ShouldRecordXcm` (r:1 w:0)
77 /// Proof: `XcmPallet::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
78 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
79 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
80 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
81 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
82 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
83 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
84 /// Storage: `Paras::Heads` (r:1 w:0)
85 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
86 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
87 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
88 fn teleport_assets() -> Weight {
89 // Proof Size summary in bytes:
90 // Measured: `315`
91 // Estimated: `6196`
92 // Minimum execution time: 146_685_000 picoseconds.
93 Weight::from_parts(152_738_000, 0)
94 .saturating_add(Weight::from_parts(0, 6196))
95 .saturating_add(T::DbWeight::get().reads(8))
96 .saturating_add(T::DbWeight::get().writes(4))
97 }
98 /// Storage: `XcmPallet::ShouldRecordXcm` (r:1 w:0)
99 /// Proof: `XcmPallet::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
100 /// Storage: `System::Account` (r:2 w:2)
101 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
102 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
103 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
104 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
105 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
106 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
107 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
108 /// Storage: `Paras::Heads` (r:1 w:0)
109 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
110 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
111 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
112 fn reserve_transfer_assets() -> Weight {
113 // Proof Size summary in bytes:
114 // Measured: `367`
115 // Estimated: `6196`
116 // Minimum execution time: 145_601_000 picoseconds.
117 Weight::from_parts(153_228_000, 0)
118 .saturating_add(Weight::from_parts(0, 6196))
119 .saturating_add(T::DbWeight::get().reads(8))
120 .saturating_add(T::DbWeight::get().writes(4))
121 }
122 /// Storage: `System::Account` (r:2 w:2)
123 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
124 /// Storage: `XcmPallet::ShouldRecordXcm` (r:1 w:0)
125 /// Proof: `XcmPallet::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
126 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
127 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
128 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
129 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
130 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
131 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
132 /// Storage: `Paras::Heads` (r:1 w:0)
133 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
134 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
135 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
136 fn transfer_assets() -> Weight {
137 // Proof Size summary in bytes:
138 // Measured: `315`
139 // Estimated: `6196`
140 // Minimum execution time: 148_866_000 picoseconds.
141 Weight::from_parts(152_293_000, 0)
142 .saturating_add(Weight::from_parts(0, 6196))
143 .saturating_add(T::DbWeight::get().reads(8))
144 .saturating_add(T::DbWeight::get().writes(4))
145 }
146 /// Storage: `XcmPallet::ShouldRecordXcm` (r:1 w:0)
147 /// Proof: `XcmPallet::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
148 fn execute() -> Weight {
149 // Proof Size summary in bytes:
150 // Measured: `0`
151 // Estimated: `1485`
152 // Minimum execution time: 9_855_000 picoseconds.
153 Weight::from_parts(10_341_000, 0)
154 .saturating_add(Weight::from_parts(0, 1485))
155 .saturating_add(T::DbWeight::get().reads(1))
156 }
157 /// Storage: `XcmPallet::SupportedVersion` (r:0 w:1)
158 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
159 fn force_xcm_version() -> Weight {
160 // Proof Size summary in bytes:
161 // Measured: `0`
162 // Estimated: `0`
163 // Minimum execution time: 8_483_000 picoseconds.
164 Weight::from_parts(8_898_000, 0)
165 .saturating_add(Weight::from_parts(0, 0))
166 .saturating_add(T::DbWeight::get().writes(1))
167 }
168 fn force_default_xcm_version() -> Weight {
169 // Proof Size summary in bytes:
170 // Measured: `0`
171 // Estimated: `0`
172 // Minimum execution time: 2_570_000 picoseconds.
173 Weight::from_parts(2_709_000, 0)
174 .saturating_add(Weight::from_parts(0, 0))
175 }
176 /// Storage: `XcmPallet::VersionNotifiers` (r:1 w:1)
177 /// Proof: `XcmPallet::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)
178 /// Storage: `XcmPallet::QueryCounter` (r:1 w:1)
179 /// Proof: `XcmPallet::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
180 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
181 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
182 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
183 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
184 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
185 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
186 /// Storage: `Paras::Heads` (r:1 w:0)
187 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
188 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
189 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
190 /// Storage: `XcmPallet::Queries` (r:0 w:1)
191 /// Proof: `XcmPallet::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
192 fn force_subscribe_version_notify() -> Weight {
193 // Proof Size summary in bytes:
194 // Measured: `212`
195 // Estimated: `3677`
196 // Minimum execution time: 48_311_000 picoseconds.
197 Weight::from_parts(49_878_000, 0)
198 .saturating_add(Weight::from_parts(0, 3677))
199 .saturating_add(T::DbWeight::get().reads(7))
200 .saturating_add(T::DbWeight::get().writes(5))
201 }
202 /// Storage: `XcmPallet::VersionNotifiers` (r:1 w:1)
203 /// Proof: `XcmPallet::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)
204 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
205 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
206 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
207 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
208 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
209 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
210 /// Storage: `Paras::Heads` (r:1 w:0)
211 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
212 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
213 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
214 /// Storage: `XcmPallet::Queries` (r:0 w:1)
215 /// Proof: `XcmPallet::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
216 fn force_unsubscribe_version_notify() -> Weight {
217 // Proof Size summary in bytes:
218 // Measured: `392`
219 // Estimated: `3857`
220 // Minimum execution time: 53_270_000 picoseconds.
221 Weight::from_parts(55_216_000, 0)
222 .saturating_add(Weight::from_parts(0, 3857))
223 .saturating_add(T::DbWeight::get().reads(6))
224 .saturating_add(T::DbWeight::get().writes(4))
225 }
226 /// Storage: `XcmPallet::XcmExecutionSuspended` (r:0 w:1)
227 /// Proof: `XcmPallet::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
228 fn force_suspension() -> Weight {
229 // Proof Size summary in bytes:
230 // Measured: `0`
231 // Estimated: `0`
232 // Minimum execution time: 2_538_000 picoseconds.
233 Weight::from_parts(2_717_000, 0)
234 .saturating_add(Weight::from_parts(0, 0))
235 .saturating_add(T::DbWeight::get().writes(1))
236 }
237 /// Storage: `XcmPallet::SupportedVersion` (r:6 w:2)
238 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
239 fn migrate_supported_version() -> Weight {
240 // Proof Size summary in bytes:
241 // Measured: `22`
242 // Estimated: `15862`
243 // Minimum execution time: 22_579_000 picoseconds.
244 Weight::from_parts(22_973_000, 0)
245 .saturating_add(Weight::from_parts(0, 15862))
246 .saturating_add(T::DbWeight::get().reads(6))
247 .saturating_add(T::DbWeight::get().writes(2))
248 }
249 /// Storage: `XcmPallet::VersionNotifiers` (r:6 w:2)
250 /// Proof: `XcmPallet::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)
251 fn migrate_version_notifiers() -> Weight {
252 // Proof Size summary in bytes:
253 // Measured: `26`
254 // Estimated: `15866`
255 // Minimum execution time: 22_803_000 picoseconds.
256 Weight::from_parts(23_241_000, 0)
257 .saturating_add(Weight::from_parts(0, 15866))
258 .saturating_add(T::DbWeight::get().reads(6))
259 .saturating_add(T::DbWeight::get().writes(2))
260 }
261 /// Storage: `XcmPallet::VersionNotifyTargets` (r:7 w:0)
262 /// Proof: `XcmPallet::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
263 fn already_notified_target() -> Weight {
264 // Proof Size summary in bytes:
265 // Measured: `40`
266 // Estimated: `18355`
267 // Minimum execution time: 25_760_000 picoseconds.
268 Weight::from_parts(26_511_000, 0)
269 .saturating_add(Weight::from_parts(0, 18355))
270 .saturating_add(T::DbWeight::get().reads(7))
271 }
272 /// Storage: `XcmPallet::VersionNotifyTargets` (r:2 w:1)
273 /// Proof: `XcmPallet::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
274 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
275 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
276 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
277 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
278 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:0)
279 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
280 /// Storage: `Paras::Heads` (r:1 w:0)
281 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
282 fn notify_current_targets() -> Weight {
283 // Proof Size summary in bytes:
284 // Measured: `211`
285 // Estimated: `6151`
286 // Minimum execution time: 36_850_000 picoseconds.
287 Weight::from_parts(38_086_000, 0)
288 .saturating_add(Weight::from_parts(0, 6151))
289 .saturating_add(T::DbWeight::get().reads(6))
290 .saturating_add(T::DbWeight::get().writes(1))
291 }
292 /// Storage: `XcmPallet::VersionNotifyTargets` (r:5 w:0)
293 /// Proof: `XcmPallet::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
294 fn notify_target_migration_fail() -> Weight {
295 // Proof Size summary in bytes:
296 // Measured: `40`
297 // Estimated: `13405`
298 // Minimum execution time: 17_893_000 picoseconds.
299 Weight::from_parts(18_327_000, 0)
300 .saturating_add(Weight::from_parts(0, 13405))
301 .saturating_add(T::DbWeight::get().reads(5))
302 }
303 /// Storage: `XcmPallet::VersionNotifyTargets` (r:6 w:2)
304 /// Proof: `XcmPallet::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
305 fn migrate_version_notify_targets() -> Weight {
306 // Proof Size summary in bytes:
307 // Measured: `33`
308 // Estimated: `15873`
309 // Minimum execution time: 22_807_000 picoseconds.
310 Weight::from_parts(23_148_000, 0)
311 .saturating_add(Weight::from_parts(0, 15873))
312 .saturating_add(T::DbWeight::get().reads(6))
313 .saturating_add(T::DbWeight::get().writes(2))
314 }
315 /// Storage: `XcmPallet::VersionNotifyTargets` (r:6 w:1)
316 /// Proof: `XcmPallet::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
317 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
318 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
319 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
320 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
321 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:0)
322 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
323 /// Storage: `Paras::Heads` (r:1 w:0)
324 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
325 fn migrate_and_notify_old_targets() -> Weight {
326 // Proof Size summary in bytes:
327 // Measured: `211`
328 // Estimated: `16051`
329 // Minimum execution time: 48_558_000 picoseconds.
330 Weight::from_parts(50_046_000, 0)
331 .saturating_add(Weight::from_parts(0, 16051))
332 .saturating_add(T::DbWeight::get().reads(10))
333 .saturating_add(T::DbWeight::get().writes(1))
334 }
335 /// Storage: `XcmPallet::QueryCounter` (r:1 w:1)
336 /// Proof: `XcmPallet::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
337 /// Storage: `XcmPallet::Queries` (r:0 w:1)
338 /// Proof: `XcmPallet::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
339 fn new_query() -> Weight {
340 // Proof Size summary in bytes:
341 // Measured: `0`
342 // Estimated: `1485`
343 // Minimum execution time: 2_757_000 picoseconds.
344 Weight::from_parts(2_981_000, 0)
345 .saturating_add(Weight::from_parts(0, 1485))
346 .saturating_add(T::DbWeight::get().reads(1))
347 .saturating_add(T::DbWeight::get().writes(2))
348 }
349 /// Storage: `XcmPallet::Queries` (r:1 w:1)
350 /// Proof: `XcmPallet::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
351 fn take_response() -> Weight {
352 // Proof Size summary in bytes:
353 // Measured: `7576`
354 // Estimated: `11041`
355 // Minimum execution time: 27_384_000 picoseconds.
356 Weight::from_parts(27_705_000, 0)
357 .saturating_add(Weight::from_parts(0, 11041))
358 .saturating_add(T::DbWeight::get().reads(1))
359 .saturating_add(T::DbWeight::get().writes(1))
360 }
361 /// Storage: `XcmPallet::ShouldRecordXcm` (r:1 w:0)
362 /// Proof: `XcmPallet::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
363 /// Storage: `XcmPallet::AssetTraps` (r:1 w:1)
364 /// Proof: `XcmPallet::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
365 fn claim_assets() -> Weight {
366 // Proof Size summary in bytes:
367 // Measured: `23`
368 // Estimated: `3488`
369 // Minimum execution time: 40_784_000 picoseconds.
370 Weight::from_parts(42_298_000, 0)
371 .saturating_add(Weight::from_parts(0, 3488))
372 .saturating_add(T::DbWeight::get().reads(2))
373 .saturating_add(T::DbWeight::get().writes(1))
374 }
375 fn add_authorized_alias() -> Weight {
376 Weight::from_parts(100_000, 0)
377 }
378 fn remove_authorized_alias() -> Weight {
379 Weight::from_parts(100_000, 0)
380 }
381
382 fn weigh_message() -> Weight {
383 // Proof Size summary in bytes:
384 // Measured: `0`
385 // Estimated: `0`
386 // Minimum execution time: 7_785_000 picoseconds.
387 Weight::from_parts(8_077_000, 0)
388 .saturating_add(Weight::from_parts(0, 0))
389 }
390}