common_runtime/weights/pallet_xcm_benchmarks_generic.rs
1
2//! Autogenerated weights for `pallet_xcm_benchmarks::generic`
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 48.0.0
5//! DATE: 2025-08-12, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `ip-10-173-5-194`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
8//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
9
10// Executed Command:
11// ./scripts/../target/release/frequency
12// benchmark
13// pallet
14// --pallet=pallet_xcm_benchmarks::generic
15// --extrinsic
16// *
17// --heap-pages=4096
18// --steps=50
19// --repeat=20
20// --output=./scripts/../runtime/common/src/weights
21// --template=./scripts/../.maintain/xcm-bench-template.hbs
22// --additional-trie-layers=3
23// --runtime=./scripts/../target/release/wbuild/frequency-runtime/frequency_runtime.wasm
24// --genesis-builder=runtime
25
26#![cfg_attr(rustfmt, rustfmt_skip)]
27#![allow(unused_parens)]
28#![allow(unused_imports)]
29
30use frame_support::{traits::Get, weights::Weight};
31use core::marker::PhantomData;
32
33/// Weights for `pallet_xcm_benchmarks::generic`.
34pub struct WeightInfo<T>(PhantomData<T>);
35impl<T: frame_system::Config> WeightInfo<T> {
36 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
37 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
38 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
39 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
40 // Storage: `ForeignAssets::Asset` (r:1 w:1)
41 // Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
42 // Storage: `ForeignAssets::Account` (r:2 w:2)
43 // Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
44 // Storage: `System::Account` (r:1 w:1)
45 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
46 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
47 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
48 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
49 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
50 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
51 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(65570), added: 68045, mode: `MaxEncodedLen`)
52 pub fn report_holding() -> Weight {
53 // Proof Size summary in bytes:
54 // Measured: `695`
55 // Estimated: `7899`
56 // Minimum execution time: 188_373_000 picoseconds.
57 Weight::from_parts(206_265_000, 7899)
58 .saturating_add(T::DbWeight::get().reads(8))
59 .saturating_add(T::DbWeight::get().writes(6))
60 }
61 pub fn buy_execution() -> Weight {
62 // Proof Size summary in bytes:
63 // Measured: `0`
64 // Estimated: `0`
65 // Minimum execution time: 8_456_000 picoseconds.
66 Weight::from_parts(9_087_000, 0)
67 }
68 pub fn pay_fees() -> Weight {
69 // Proof Size summary in bytes:
70 // Measured: `0`
71 // Estimated: `0`
72 // Minimum execution time: 22_617_000 picoseconds.
73 Weight::from_parts(23_726_000, 0)
74 }
75 pub fn asset_claimer() -> Weight {
76 // Proof Size summary in bytes:
77 // Measured: `0`
78 // Estimated: `0`
79 // Minimum execution time: 10_849_000 picoseconds.
80 Weight::from_parts(11_292_000, 0)
81 }
82 // Storage: `PolkadotXcm::Queries` (r:1 w:0)
83 // Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
84 pub fn query_response() -> Weight {
85 // Proof Size summary in bytes:
86 // Measured: `0`
87 // Estimated: `3960`
88 // Minimum execution time: 15_778_000 picoseconds.
89 Weight::from_parts(16_487_000, 3960)
90 .saturating_add(T::DbWeight::get().reads(1))
91 }
92 pub fn transact() -> Weight {
93 // Proof Size summary in bytes:
94 // Measured: `0`
95 // Estimated: `0`
96 // Minimum execution time: 29_439_000 picoseconds.
97 Weight::from_parts(30_425_000, 0)
98 }
99 pub fn refund_surplus() -> Weight {
100 // Proof Size summary in bytes:
101 // Measured: `0`
102 // Estimated: `0`
103 // Minimum execution time: 18_640_000 picoseconds.
104 Weight::from_parts(19_395_000, 0)
105 }
106 pub fn set_error_handler() -> Weight {
107 // Proof Size summary in bytes:
108 // Measured: `0`
109 // Estimated: `0`
110 // Minimum execution time: 9_365_000 picoseconds.
111 Weight::from_parts(9_521_000, 0)
112 }
113 pub fn set_appendix() -> Weight {
114 // Proof Size summary in bytes:
115 // Measured: `0`
116 // Estimated: `0`
117 // Minimum execution time: 9_358_000 picoseconds.
118 Weight::from_parts(9_842_000, 0)
119 }
120 pub fn clear_error() -> Weight {
121 // Proof Size summary in bytes:
122 // Measured: `0`
123 // Estimated: `0`
124 // Minimum execution time: 7_421_000 picoseconds.
125 Weight::from_parts(7_742_000, 0)
126 }
127 pub fn descend_origin() -> Weight {
128 // Proof Size summary in bytes:
129 // Measured: `0`
130 // Estimated: `0`
131 // Minimum execution time: 7_770_000 picoseconds.
132 Weight::from_parts(8_334_000, 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 execute_with_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 }
143 pub fn clear_origin() -> Weight {
144 // Proof Size summary in bytes:
145 // Measured: `0`
146 // Estimated: `0`
147 // Minimum execution time: 7_623_000 picoseconds.
148 Weight::from_parts(7_818_000, 0)
149 }
150 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
151 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
152 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
153 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
154 // Storage: `ForeignAssets::Asset` (r:1 w:1)
155 // Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
156 // Storage: `ForeignAssets::Account` (r:2 w:2)
157 // Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
158 // Storage: `System::Account` (r:1 w:1)
159 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
160 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
161 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
163 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
164 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
165 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(65570), added: 68045, mode: `MaxEncodedLen`)
166 pub fn report_error() -> Weight {
167 // Proof Size summary in bytes:
168 // Measured: `695`
169 // Estimated: `7899`
170 // Minimum execution time: 175_116_000 picoseconds.
171 Weight::from_parts(179_643_000, 7899)
172 .saturating_add(T::DbWeight::get().reads(8))
173 .saturating_add(T::DbWeight::get().writes(6))
174 }
175 // Storage: `PolkadotXcm::AssetTraps` (r:1 w:1)
176 // Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
177 pub fn claim_asset() -> Weight {
178 // Proof Size summary in bytes:
179 // Measured: `23`
180 // Estimated: `3983`
181 // Minimum execution time: 23_902_000 picoseconds.
182 Weight::from_parts(25_189_000, 3983)
183 .saturating_add(T::DbWeight::get().reads(1))
184 .saturating_add(T::DbWeight::get().writes(1))
185 }
186 pub fn trap() -> Weight {
187 // Proof Size summary in bytes:
188 // Measured: `0`
189 // Estimated: `0`
190 // Minimum execution time: 13_122_000 picoseconds.
191 Weight::from_parts(13_863_000, 0)
192 }
193 // Storage: `PolkadotXcm::VersionNotifyTargets` (r:1 w:1)
194 // Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
195 // Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
196 // Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
197 // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
198 // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
199 // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
200 // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
201 pub fn subscribe_version() -> Weight {
202 // Proof Size summary in bytes:
203 // Measured: `4`
204 // Estimated: `3964`
205 // Minimum execution time: 32_896_000 picoseconds.
206 Weight::from_parts(33_874_000, 3964)
207 .saturating_add(T::DbWeight::get().reads(4))
208 .saturating_add(T::DbWeight::get().writes(2))
209 }
210 // Storage: `PolkadotXcm::VersionNotifyTargets` (r:0 w:1)
211 // Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
212 pub fn unsubscribe_version() -> Weight {
213 // Proof Size summary in bytes:
214 // Measured: `0`
215 // Estimated: `0`
216 // Minimum execution time: 12_103_000 picoseconds.
217 Weight::from_parts(12_637_000, 0)
218 .saturating_add(T::DbWeight::get().writes(1))
219 }
220 pub fn burn_asset() -> Weight {
221 // Proof Size summary in bytes:
222 // Measured: `0`
223 // Estimated: `0`
224 // Minimum execution time: 10_560_000 picoseconds.
225 Weight::from_parts(11_090_000, 0)
226 }
227 pub fn expect_asset() -> Weight {
228 // Proof Size summary in bytes:
229 // Measured: `0`
230 // Estimated: `0`
231 // Minimum execution time: 9_987_000 picoseconds.
232 Weight::from_parts(10_264_000, 0)
233 }
234 pub fn expect_origin() -> Weight {
235 // Proof Size summary in bytes:
236 // Measured: `0`
237 // Estimated: `0`
238 // Minimum execution time: 13_924_000 picoseconds.
239 Weight::from_parts(29_295_000, 0)
240 }
241 pub fn expect_error() -> Weight {
242 // Proof Size summary in bytes:
243 // Measured: `0`
244 // Estimated: `0`
245 // Minimum execution time: 13_144_000 picoseconds.
246 Weight::from_parts(13_810_000, 0)
247 }
248 pub fn expect_transact_status() -> Weight {
249 // Proof Size summary in bytes:
250 // Measured: `0`
251 // Estimated: `0`
252 // Minimum execution time: 13_751_000 picoseconds.
253 Weight::from_parts(14_316_000, 0)
254 }
255 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
256 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
257 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
258 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
259 // Storage: `ForeignAssets::Asset` (r:1 w:1)
260 // Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
261 // Storage: `ForeignAssets::Account` (r:2 w:2)
262 // Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
263 // Storage: `System::Account` (r:1 w:1)
264 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
265 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
266 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
267 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
268 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
269 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
270 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(65570), added: 68045, mode: `MaxEncodedLen`)
271 pub fn query_pallet() -> Weight {
272 // Proof Size summary in bytes:
273 // Measured: `695`
274 // Estimated: `7899`
275 // Minimum execution time: 194_763_000 picoseconds.
276 Weight::from_parts(211_633_000, 7899)
277 .saturating_add(T::DbWeight::get().reads(8))
278 .saturating_add(T::DbWeight::get().writes(6))
279 }
280 pub fn expect_pallet() -> Weight {
281 // Proof Size summary in bytes:
282 // Measured: `0`
283 // Estimated: `0`
284 // Minimum execution time: 19_229_000 picoseconds.
285 Weight::from_parts(19_889_000, 0)
286 }
287 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
288 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
289 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
290 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
291 // Storage: `ForeignAssets::Asset` (r:1 w:1)
292 // Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
293 // Storage: `ForeignAssets::Account` (r:2 w:2)
294 // Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
295 // Storage: `System::Account` (r:1 w:1)
296 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
297 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
298 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
299 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
300 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
301 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
302 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(65570), added: 68045, mode: `MaxEncodedLen`)
303 pub fn report_transact_status() -> Weight {
304 // Proof Size summary in bytes:
305 // Measured: `695`
306 // Estimated: `7899`
307 // Minimum execution time: 175_108_000 picoseconds.
308 Weight::from_parts(190_745_000, 7899)
309 .saturating_add(T::DbWeight::get().reads(8))
310 .saturating_add(T::DbWeight::get().writes(6))
311 }
312 pub fn clear_transact_status() -> Weight {
313 // Proof Size summary in bytes:
314 // Measured: `0`
315 // Estimated: `0`
316 // Minimum execution time: 7_523_000 picoseconds.
317 Weight::from_parts(7_847_000, 0)
318 }
319 pub fn set_topic() -> Weight {
320 // Proof Size summary in bytes:
321 // Measured: `0`
322 // Estimated: `0`
323 // Minimum execution time: 9_275_000 picoseconds.
324 Weight::from_parts(9_569_000, 0)
325 }
326 pub fn clear_topic() -> Weight {
327 // Proof Size summary in bytes:
328 // Measured: `0`
329 // Estimated: `0`
330 // Minimum execution time: 7_430_000 picoseconds.
331 Weight::from_parts(7_786_000, 0)
332 }
333 pub fn set_fees_mode() -> Weight {
334 // Proof Size summary in bytes:
335 // Measured: `0`
336 // Estimated: `0`
337 // Minimum execution time: 7_646_000 picoseconds.
338 Weight::from_parts(7_963_000, 0)
339 }
340 pub fn unpaid_execution() -> Weight {
341 // Proof Size summary in bytes:
342 // Measured: `0`
343 // Estimated: `0`
344 // Minimum execution time: 8_178_000 picoseconds.
345 Weight::from_parts(8_596_000, 0)
346 }
347}