shiden_runtime/weights/xcm/generic.rs
1
2// This file is part of Astar.
3
4// Copyright (C) Stake Technologies Pte.Ltd.
5// SPDX-License-Identifier: GPL-3.0-or-later
6
7// Astar is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11
12// Astar is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16
17// You should have received a copy of the GNU General Public License
18// along with Astar. If not, see <http://www.gnu.org/licenses/>.
19
20//! Autogenerated weights for `xcm_benchmarks_generic`
21//!
22//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 46.1.0
23//! DATE: 2025-05-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
24//! WORST CASE MAP SIZE: `1000000`
25//! HOSTNAME: `gh-runner-01-ovh`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz`
26//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("shiden-dev")`, DB CACHE: 1024
27
28// Executed Command:
29// ./target/release/astar-collator
30// benchmark
31// pallet
32// --chain=shiden-dev
33// --steps=50
34// --repeat=20
35// --pallet=xcm_benchmarks_generic
36// --extrinsic=*
37// --wasm-execution=compiled
38// --heap-pages=4096
39// --output=./benchmark-results/shiden-dev/benchmarks_generic_weights.rs
40// --template=./scripts/templates/weight-template.hbs
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46#![allow(dead_code)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `xcm_benchmarks_generic`.
52pub struct SubstrateWeight<T>(PhantomData<T>);
53impl<T: frame_system::Config> SubstrateWeight<T> {
54 /// Storage: `XcAssetConfig::AssetLocationUnitsPerSecond` (r:1 w:0)
55 /// Proof: `XcAssetConfig::AssetLocationUnitsPerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
56 /// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
57 /// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
58 /// Storage: `Assets::Asset` (r:1 w:1)
59 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
60 /// Storage: `Assets::Account` (r:1 w:1)
61 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
62 /// Storage: `System::Account` (r:1 w:1)
63 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
64 pub fn buy_execution() -> Weight {
65 // Proof Size summary in bytes:
66 // Measured: `686`
67 // Estimated: `4151`
68 // Minimum execution time: 20_439_000 picoseconds.
69 Weight::from_parts(20_865_000, 0)
70 .saturating_add(Weight::from_parts(0, 4151))
71 .saturating_add(T::DbWeight::get().reads(5))
72 .saturating_add(T::DbWeight::get().writes(3))
73 }
74 /// Storage: `Benchmark::Override` (r:0 w:0)
75 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
76 pub fn exchange_asset() -> Weight {
77 // Proof Size summary in bytes:
78 // Measured: `0`
79 // Estimated: `0`
80 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
81 Weight::from_parts(18_446_744_073_709_551_000, 0)
82 .saturating_add(Weight::from_parts(0, 0))
83 }
84 /// Storage: `Benchmark::Override` (r:0 w:0)
85 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
86 pub fn export_message() -> Weight {
87 // Proof Size summary in bytes:
88 // Measured: `0`
89 // Estimated: `0`
90 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
91 Weight::from_parts(18_446_744_073_709_551_000, 0)
92 .saturating_add(Weight::from_parts(0, 0))
93 }
94 /// Storage: `Benchmark::Override` (r:0 w:0)
95 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
96 pub fn lock_asset() -> Weight {
97 // Proof Size summary in bytes:
98 // Measured: `0`
99 // Estimated: `0`
100 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
101 Weight::from_parts(18_446_744_073_709_551_000, 0)
102 .saturating_add(Weight::from_parts(0, 0))
103 }
104 /// Storage: `Benchmark::Override` (r:0 w:0)
105 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
106 pub fn unlock_asset() -> Weight {
107 // Proof Size summary in bytes:
108 // Measured: `0`
109 // Estimated: `0`
110 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
111 Weight::from_parts(18_446_744_073_709_551_000, 0)
112 .saturating_add(Weight::from_parts(0, 0))
113 }
114 /// Storage: `Benchmark::Override` (r:0 w:0)
115 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
116 pub fn note_unlockable() -> Weight {
117 // Proof Size summary in bytes:
118 // Measured: `0`
119 // Estimated: `0`
120 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
121 Weight::from_parts(18_446_744_073_709_551_000, 0)
122 .saturating_add(Weight::from_parts(0, 0))
123 }
124 /// Storage: `Benchmark::Override` (r:0 w:0)
125 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
126 pub fn request_unlock() -> Weight {
127 // Proof Size summary in bytes:
128 // Measured: `0`
129 // Estimated: `0`
130 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
131 Weight::from_parts(18_446_744_073_709_551_000, 0)
132 .saturating_add(Weight::from_parts(0, 0))
133 }
134 /// Storage: `Benchmark::Override` (r:0 w:0)
135 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
136 pub fn universal_origin() -> Weight {
137 // Proof Size summary in bytes:
138 // Measured: `0`
139 // Estimated: `0`
140 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
141 Weight::from_parts(18_446_744_073_709_551_000, 0)
142 .saturating_add(Weight::from_parts(0, 0))
143 }
144 /// Storage: `Benchmark::Override` (r:0 w:0)
145 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
146 pub fn alias_origin() -> Weight {
147 // Proof Size summary in bytes:
148 // Measured: `0`
149 // Estimated: `0`
150 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
151 Weight::from_parts(18_446_744_073_709_551_000, 0)
152 .saturating_add(Weight::from_parts(0, 0))
153 }
154 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
155 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
156 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
157 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
158 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
159 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
160 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
161 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162 pub fn report_holding() -> Weight {
163 // Proof Size summary in bytes:
164 // Measured: `168`
165 // Estimated: `3633`
166 // Minimum execution time: 51_617_000 picoseconds.
167 Weight::from_parts(52_034_000, 0)
168 .saturating_add(Weight::from_parts(0, 3633))
169 .saturating_add(T::DbWeight::get().reads(4))
170 .saturating_add(T::DbWeight::get().writes(1))
171 }
172 /// Storage: `System::Account` (r:1 w:1)
173 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
174 pub fn pay_fees() -> Weight {
175 // Proof Size summary in bytes:
176 // Measured: `0`
177 // Estimated: `3593`
178 // Minimum execution time: 7_143_000 picoseconds.
179 Weight::from_parts(7_252_000, 0)
180 .saturating_add(Weight::from_parts(0, 3593))
181 .saturating_add(T::DbWeight::get().reads(1))
182 .saturating_add(T::DbWeight::get().writes(1))
183 }
184 pub fn asset_claimer() -> Weight {
185 // Proof Size summary in bytes:
186 // Measured: `0`
187 // Estimated: `0`
188 // Minimum execution time: 790_000 picoseconds.
189 Weight::from_parts(855_000, 0)
190 .saturating_add(Weight::from_parts(0, 0))
191 }
192 /// Storage: `PolkadotXcm::Queries` (r:1 w:0)
193 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
194 pub fn query_response() -> Weight {
195 // Proof Size summary in bytes:
196 // Measured: `0`
197 // Estimated: `3465`
198 // Minimum execution time: 6_271_000 picoseconds.
199 Weight::from_parts(6_399_000, 0)
200 .saturating_add(Weight::from_parts(0, 3465))
201 .saturating_add(T::DbWeight::get().reads(1))
202 }
203 pub fn transact() -> Weight {
204 // Proof Size summary in bytes:
205 // Measured: `0`
206 // Estimated: `0`
207 // Minimum execution time: 8_876_000 picoseconds.
208 Weight::from_parts(9_022_000, 0)
209 .saturating_add(Weight::from_parts(0, 0))
210 }
211 pub fn refund_surplus() -> Weight {
212 // Proof Size summary in bytes:
213 // Measured: `0`
214 // Estimated: `0`
215 // Minimum execution time: 4_143_000 picoseconds.
216 Weight::from_parts(4_217_000, 0)
217 .saturating_add(Weight::from_parts(0, 0))
218 }
219 pub fn set_error_handler() -> Weight {
220 // Proof Size summary in bytes:
221 // Measured: `0`
222 // Estimated: `0`
223 // Minimum execution time: 766_000 picoseconds.
224 Weight::from_parts(832_000, 0)
225 .saturating_add(Weight::from_parts(0, 0))
226 }
227 pub fn set_appendix() -> Weight {
228 // Proof Size summary in bytes:
229 // Measured: `0`
230 // Estimated: `0`
231 // Minimum execution time: 813_000 picoseconds.
232 Weight::from_parts(841_000, 0)
233 .saturating_add(Weight::from_parts(0, 0))
234 }
235 pub fn clear_error() -> Weight {
236 // Proof Size summary in bytes:
237 // Measured: `0`
238 // Estimated: `0`
239 // Minimum execution time: 769_000 picoseconds.
240 Weight::from_parts(826_000, 0)
241 .saturating_add(Weight::from_parts(0, 0))
242 }
243 pub fn descend_origin() -> Weight {
244 // Proof Size summary in bytes:
245 // Measured: `0`
246 // Estimated: `0`
247 // Minimum execution time: 856_000 picoseconds.
248 Weight::from_parts(897_000, 0)
249 .saturating_add(Weight::from_parts(0, 0))
250 }
251 /// Storage: `Benchmark::Override` (r:0 w:0)
252 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
253 pub fn execute_with_origin() -> Weight {
254 // Proof Size summary in bytes:
255 // Measured: `0`
256 // Estimated: `0`
257 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
258 Weight::from_parts(18_446_744_073_709_551_000, 0)
259 .saturating_add(Weight::from_parts(0, 0))
260 }
261 pub fn clear_origin() -> Weight {
262 // Proof Size summary in bytes:
263 // Measured: `0`
264 // Estimated: `0`
265 // Minimum execution time: 797_000 picoseconds.
266 Weight::from_parts(887_000, 0)
267 .saturating_add(Weight::from_parts(0, 0))
268 }
269 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
270 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
271 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
272 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
273 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
274 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
275 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
276 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
277 pub fn report_error() -> Weight {
278 // Proof Size summary in bytes:
279 // Measured: `168`
280 // Estimated: `3633`
281 // Minimum execution time: 19_473_000 picoseconds.
282 Weight::from_parts(19_869_000, 0)
283 .saturating_add(Weight::from_parts(0, 3633))
284 .saturating_add(T::DbWeight::get().reads(4))
285 .saturating_add(T::DbWeight::get().writes(1))
286 }
287 /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1)
288 /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
289 pub fn claim_asset() -> Weight {
290 // Proof Size summary in bytes:
291 // Measured: `24`
292 // Estimated: `3489`
293 // Minimum execution time: 9_790_000 picoseconds.
294 Weight::from_parts(9_939_000, 0)
295 .saturating_add(Weight::from_parts(0, 3489))
296 .saturating_add(T::DbWeight::get().reads(1))
297 .saturating_add(T::DbWeight::get().writes(1))
298 }
299 pub fn trap() -> Weight {
300 // Proof Size summary in bytes:
301 // Measured: `0`
302 // Estimated: `0`
303 // Minimum execution time: 780_000 picoseconds.
304 Weight::from_parts(826_000, 0)
305 .saturating_add(Weight::from_parts(0, 0))
306 }
307 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:1 w:1)
308 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
309 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
310 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
311 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
312 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
313 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
314 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
315 pub fn subscribe_version() -> Weight {
316 // Proof Size summary in bytes:
317 // Measured: `99`
318 // Estimated: `3564`
319 // Minimum execution time: 20_096_000 picoseconds.
320 Weight::from_parts(20_421_000, 0)
321 .saturating_add(Weight::from_parts(0, 3564))
322 .saturating_add(T::DbWeight::get().reads(4))
323 .saturating_add(T::DbWeight::get().writes(2))
324 }
325 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:0 w:1)
326 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
327 pub fn unsubscribe_version() -> Weight {
328 // Proof Size summary in bytes:
329 // Measured: `0`
330 // Estimated: `0`
331 // Minimum execution time: 2_927_000 picoseconds.
332 Weight::from_parts(3_056_000, 0)
333 .saturating_add(Weight::from_parts(0, 0))
334 .saturating_add(T::DbWeight::get().writes(1))
335 }
336 pub fn burn_asset() -> Weight {
337 // Proof Size summary in bytes:
338 // Measured: `0`
339 // Estimated: `0`
340 // Minimum execution time: 22_514_000 picoseconds.
341 Weight::from_parts(22_952_000, 0)
342 .saturating_add(Weight::from_parts(0, 0))
343 }
344 pub fn expect_asset() -> Weight {
345 // Proof Size summary in bytes:
346 // Measured: `0`
347 // Estimated: `0`
348 // Minimum execution time: 7_782_000 picoseconds.
349 Weight::from_parts(8_062_000, 0)
350 .saturating_add(Weight::from_parts(0, 0))
351 }
352 pub fn expect_origin() -> Weight {
353 // Proof Size summary in bytes:
354 // Measured: `0`
355 // Estimated: `0`
356 // Minimum execution time: 766_000 picoseconds.
357 Weight::from_parts(807_000, 0)
358 .saturating_add(Weight::from_parts(0, 0))
359 }
360 pub fn expect_error() -> Weight {
361 // Proof Size summary in bytes:
362 // Measured: `0`
363 // Estimated: `0`
364 // Minimum execution time: 765_000 picoseconds.
365 Weight::from_parts(816_000, 0)
366 .saturating_add(Weight::from_parts(0, 0))
367 }
368 pub fn expect_transact_status() -> Weight {
369 // Proof Size summary in bytes:
370 // Measured: `0`
371 // Estimated: `0`
372 // Minimum execution time: 972_000 picoseconds.
373 Weight::from_parts(1_010_000, 0)
374 .saturating_add(Weight::from_parts(0, 0))
375 }
376 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
377 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
378 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
379 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
380 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
381 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
382 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
383 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
384 pub fn query_pallet() -> Weight {
385 // Proof Size summary in bytes:
386 // Measured: `168`
387 // Estimated: `3633`
388 // Minimum execution time: 25_029_000 picoseconds.
389 Weight::from_parts(25_442_000, 0)
390 .saturating_add(Weight::from_parts(0, 3633))
391 .saturating_add(T::DbWeight::get().reads(4))
392 .saturating_add(T::DbWeight::get().writes(1))
393 }
394 pub fn expect_pallet() -> Weight {
395 // Proof Size summary in bytes:
396 // Measured: `0`
397 // Estimated: `0`
398 // Minimum execution time: 5_086_000 picoseconds.
399 Weight::from_parts(5_188_000, 0)
400 .saturating_add(Weight::from_parts(0, 0))
401 }
402 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
403 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
404 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
405 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
406 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
407 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
408 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
409 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
410 pub fn report_transact_status() -> Weight {
411 // Proof Size summary in bytes:
412 // Measured: `168`
413 // Estimated: `3633`
414 // Minimum execution time: 19_808_000 picoseconds.
415 Weight::from_parts(20_194_000, 0)
416 .saturating_add(Weight::from_parts(0, 3633))
417 .saturating_add(T::DbWeight::get().reads(4))
418 .saturating_add(T::DbWeight::get().writes(1))
419 }
420 pub fn clear_transact_status() -> Weight {
421 // Proof Size summary in bytes:
422 // Measured: `0`
423 // Estimated: `0`
424 // Minimum execution time: 849_000 picoseconds.
425 Weight::from_parts(881_000, 0)
426 .saturating_add(Weight::from_parts(0, 0))
427 }
428 pub fn set_topic() -> Weight {
429 // Proof Size summary in bytes:
430 // Measured: `0`
431 // Estimated: `0`
432 // Minimum execution time: 789_000 picoseconds.
433 Weight::from_parts(832_000, 0)
434 .saturating_add(Weight::from_parts(0, 0))
435 }
436 pub fn clear_topic() -> Weight {
437 // Proof Size summary in bytes:
438 // Measured: `0`
439 // Estimated: `0`
440 // Minimum execution time: 812_000 picoseconds.
441 Weight::from_parts(858_000, 0)
442 .saturating_add(Weight::from_parts(0, 0))
443 }
444 pub fn set_fees_mode() -> Weight {
445 // Proof Size summary in bytes:
446 // Measured: `0`
447 // Estimated: `0`
448 // Minimum execution time: 775_000 picoseconds.
449 Weight::from_parts(822_000, 0)
450 .saturating_add(Weight::from_parts(0, 0))
451 }
452 pub fn unpaid_execution() -> Weight {
453 // Proof Size summary in bytes:
454 // Measured: `0`
455 // Estimated: `0`
456 // Minimum execution time: 849_000 picoseconds.
457 Weight::from_parts(880_000, 0)
458 .saturating_add(Weight::from_parts(0, 0))
459 }
460}