westend_runtime/weights/xcm/pallet_xcm_benchmarks_generic.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot 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// Polkadot 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 Polkadot. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `pallet_xcm_benchmarks::generic`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-04-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `0af6a34749d7`, 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_benchmarks::generic
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/src/weights/xcm
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --template=polkadot/xcm/pallet-xcm-benchmarks/template.hbs
40// --no-storage-info
41// --no-min-squares
42// --no-median-slopes
43
44#![cfg_attr(rustfmt, rustfmt_skip)]
45#![allow(unused_parens)]
46#![allow(unused_imports)]
47#![allow(missing_docs)]
48
49use frame_support::{traits::Get, weights::Weight};
50use core::marker::PhantomData;
51
52/// Weight functions for `pallet_xcm_benchmarks::generic`.
53pub struct WeightInfo<T>(PhantomData<T>);
54impl<T: frame_system::Config> WeightInfo<T> {
55 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
56 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
57 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
58 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
59 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
60 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
61 /// Storage: `Paras::Heads` (r:1 w:0)
62 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
63 /// Storage: `System::Account` (r:2 w:2)
64 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
65 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
66 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
67 pub(crate) fn report_holding() -> Weight {
68 // Proof Size summary in bytes:
69 // Measured: `449`
70 // Estimated: `6196`
71 // Minimum execution time: 83_407_000 picoseconds.
72 Weight::from_parts(85_820_000, 6196)
73 .saturating_add(T::DbWeight::get().reads(7))
74 .saturating_add(T::DbWeight::get().writes(4))
75 }
76 pub(crate) fn buy_execution() -> Weight {
77 // Proof Size summary in bytes:
78 // Measured: `0`
79 // Estimated: `0`
80 // Minimum execution time: 3_288_000 picoseconds.
81 Weight::from_parts(3_491_000, 0)
82 }
83 pub(crate) fn pay_fees() -> Weight {
84 // Proof Size summary in bytes:
85 // Measured: `0`
86 // Estimated: `0`
87 // Minimum execution time: 3_201_000 picoseconds.
88 Weight::from_parts(3_358_000, 0)
89 }
90 pub(crate) fn asset_claimer() -> Weight {
91 // Proof Size summary in bytes:
92 // Measured: `0`
93 // Estimated: `0`
94 // Minimum execution time: 794_000 picoseconds.
95 Weight::from_parts(843_000, 0)
96 }
97 /// Storage: `XcmPallet::Queries` (r:1 w:0)
98 /// Proof: `XcmPallet::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
99 pub(crate) fn query_response() -> Weight {
100 // Proof Size summary in bytes:
101 // Measured: `0`
102 // Estimated: `3465`
103 // Minimum execution time: 6_120_000 picoseconds.
104 Weight::from_parts(6_334_000, 3465)
105 .saturating_add(T::DbWeight::get().reads(1))
106 }
107 pub(crate) fn transact() -> Weight {
108 // Proof Size summary in bytes:
109 // Measured: `0`
110 // Estimated: `0`
111 // Minimum execution time: 7_772_000 picoseconds.
112 Weight::from_parts(8_025_000, 0)
113 }
114 pub(crate) fn refund_surplus() -> Weight {
115 // Proof Size summary in bytes:
116 // Measured: `0`
117 // Estimated: `0`
118 // Minimum execution time: 1_309_000 picoseconds.
119 Weight::from_parts(1_418_000, 0)
120 }
121 pub(crate) fn set_error_handler() -> Weight {
122 // Proof Size summary in bytes:
123 // Measured: `0`
124 // Estimated: `0`
125 // Minimum execution time: 738_000 picoseconds.
126 Weight::from_parts(804_000, 0)
127 }
128 pub(crate) fn set_appendix() -> Weight {
129 // Proof Size summary in bytes:
130 // Measured: `0`
131 // Estimated: `0`
132 // Minimum execution time: 755_000 picoseconds.
133 Weight::from_parts(800_000, 0)
134 }
135 pub(crate) fn clear_error() -> Weight {
136 // Proof Size summary in bytes:
137 // Measured: `0`
138 // Estimated: `0`
139 // Minimum execution time: 746_000 picoseconds.
140 Weight::from_parts(790_000, 0)
141 }
142 pub(crate) fn descend_origin() -> Weight {
143 // Proof Size summary in bytes:
144 // Measured: `0`
145 // Estimated: `0`
146 // Minimum execution time: 748_000 picoseconds.
147 Weight::from_parts(816_000, 0)
148 }
149 /// Storage: `Benchmark::Override` (r:0 w:0)
150 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
151 pub(crate) fn execute_with_origin() -> Weight {
152 // Proof Size summary in bytes:
153 // Measured: `0`
154 // Estimated: `0`
155 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
156 Weight::from_parts(18_446_744_073_709_551_000, 0)
157 }
158 pub(crate) fn clear_origin() -> Weight {
159 // Proof Size summary in bytes:
160 // Measured: `0`
161 // Estimated: `0`
162 // Minimum execution time: 772_000 picoseconds.
163 Weight::from_parts(835_000, 0)
164 }
165 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
166 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
167 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
168 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
169 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
170 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
171 /// Storage: `Paras::Heads` (r:1 w:0)
172 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
173 /// Storage: `System::Account` (r:2 w:2)
174 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
175 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
176 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
177 pub(crate) fn report_error() -> Weight {
178 // Proof Size summary in bytes:
179 // Measured: `449`
180 // Estimated: `6196`
181 // Minimum execution time: 80_474_000 picoseconds.
182 Weight::from_parts(82_450_000, 6196)
183 .saturating_add(T::DbWeight::get().reads(7))
184 .saturating_add(T::DbWeight::get().writes(4))
185 }
186 /// Storage: `XcmPallet::AssetTraps` (r:1 w:1)
187 /// Proof: `XcmPallet::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
188 pub(crate) fn claim_asset() -> Weight {
189 // Proof Size summary in bytes:
190 // Measured: `23`
191 // Estimated: `3488`
192 // Minimum execution time: 9_550_000 picoseconds.
193 Weight::from_parts(9_797_000, 3488)
194 .saturating_add(T::DbWeight::get().reads(1))
195 .saturating_add(T::DbWeight::get().writes(1))
196 }
197 pub(crate) fn trap() -> Weight {
198 // Proof Size summary in bytes:
199 // Measured: `0`
200 // Estimated: `0`
201 // Minimum execution time: 3_711_000 picoseconds.
202 Weight::from_parts(3_936_000, 0)
203 }
204 /// Storage: `XcmPallet::VersionNotifyTargets` (r:1 w:1)
205 /// Proof: `XcmPallet::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
206 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
207 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
208 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
209 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
210 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
211 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
212 /// Storage: `Paras::Heads` (r:1 w:0)
213 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
214 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
215 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
216 pub(crate) fn subscribe_version() -> Weight {
217 // Proof Size summary in bytes:
218 // Measured: `245`
219 // Estimated: `3710`
220 // Minimum execution time: 40_080_000 picoseconds.
221 Weight::from_parts(41_850_000, 3710)
222 .saturating_add(T::DbWeight::get().reads(6))
223 .saturating_add(T::DbWeight::get().writes(3))
224 }
225 /// Storage: `XcmPallet::VersionNotifyTargets` (r:0 w:1)
226 /// Proof: `XcmPallet::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
227 pub(crate) fn unsubscribe_version() -> Weight {
228 // Proof Size summary in bytes:
229 // Measured: `0`
230 // Estimated: `0`
231 // Minimum execution time: 3_142_000 picoseconds.
232 Weight::from_parts(3_421_000, 0)
233 .saturating_add(T::DbWeight::get().writes(1))
234 }
235 pub(crate) fn burn_asset() -> Weight {
236 // Proof Size summary in bytes:
237 // Measured: `0`
238 // Estimated: `0`
239 // Minimum execution time: 1_113_000 picoseconds.
240 Weight::from_parts(1_219_000, 0)
241 }
242 pub(crate) fn expect_asset() -> Weight {
243 // Proof Size summary in bytes:
244 // Measured: `0`
245 // Estimated: `0`
246 // Minimum execution time: 788_000 picoseconds.
247 Weight::from_parts(869_000, 0)
248 }
249 pub(crate) fn expect_origin() -> Weight {
250 // Proof Size summary in bytes:
251 // Measured: `0`
252 // Estimated: `0`
253 // Minimum execution time: 3_718_000 picoseconds.
254 Weight::from_parts(3_909_000, 0)
255 }
256 pub(crate) fn expect_error() -> Weight {
257 // Proof Size summary in bytes:
258 // Measured: `0`
259 // Estimated: `0`
260 // Minimum execution time: 3_889_000 picoseconds.
261 Weight::from_parts(4_643_000, 0)
262 }
263 pub(crate) fn expect_transact_status() -> Weight {
264 // Proof Size summary in bytes:
265 // Measured: `0`
266 // Estimated: `0`
267 // Minimum execution time: 887_000 picoseconds.
268 Weight::from_parts(962_000, 0)
269 }
270 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
271 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
272 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
273 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
274 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
275 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
276 /// Storage: `Paras::Heads` (r:1 w:0)
277 /// Proof: `Paras::Heads` (`max_values`: None, `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: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
281 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
282 pub(crate) fn query_pallet() -> Weight {
283 // Proof Size summary in bytes:
284 // Measured: `449`
285 // Estimated: `6196`
286 // Minimum execution time: 90_787_000 picoseconds.
287 Weight::from_parts(95_039_000, 6196)
288 .saturating_add(T::DbWeight::get().reads(7))
289 .saturating_add(T::DbWeight::get().writes(4))
290 }
291 pub(crate) fn expect_pallet() -> Weight {
292 // Proof Size summary in bytes:
293 // Measured: `0`
294 // Estimated: `0`
295 // Minimum execution time: 8_838_000 picoseconds.
296 Weight::from_parts(9_070_000, 0)
297 }
298 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
299 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
300 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
301 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
302 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
303 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
304 /// Storage: `Paras::Heads` (r:1 w:0)
305 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
306 /// Storage: `System::Account` (r:2 w:2)
307 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
308 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
309 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
310 pub(crate) fn report_transact_status() -> Weight {
311 // Proof Size summary in bytes:
312 // Measured: `449`
313 // Estimated: `6196`
314 // Minimum execution time: 80_560_000 picoseconds.
315 Weight::from_parts(83_776_000, 6196)
316 .saturating_add(T::DbWeight::get().reads(7))
317 .saturating_add(T::DbWeight::get().writes(4))
318 }
319 pub(crate) fn clear_transact_status() -> Weight {
320 // Proof Size summary in bytes:
321 // Measured: `0`
322 // Estimated: `0`
323 // Minimum execution time: 781_000 picoseconds.
324 Weight::from_parts(851_000, 0)
325 }
326 pub(crate) fn set_topic() -> Weight {
327 // Proof Size summary in bytes:
328 // Measured: `0`
329 // Estimated: `0`
330 // Minimum execution time: 751_000 picoseconds.
331 Weight::from_parts(782_000, 0)
332 }
333 pub(crate) fn clear_topic() -> Weight {
334 // Proof Size summary in bytes:
335 // Measured: `0`
336 // Estimated: `0`
337 // Minimum execution time: 729_000 picoseconds.
338 Weight::from_parts(792_000, 0)
339 }
340 pub(crate) fn set_fees_mode() -> Weight {
341 // Proof Size summary in bytes:
342 // Measured: `0`
343 // Estimated: `0`
344 // Minimum execution time: 714_000 picoseconds.
345 Weight::from_parts(772_000, 0)
346 }
347 pub(crate) fn unpaid_execution() -> Weight {
348 // Proof Size summary in bytes:
349 // Measured: `0`
350 // Estimated: `0`
351 // Minimum execution time: 739_000 picoseconds.
352 Weight::from_parts(817_000, 0)
353 }
354 pub(crate) fn alias_origin() -> Weight {
355 // Proof Size summary in bytes:
356 // Measured: `0`
357 // Estimated: `0`
358 // Minimum execution time: 782_000 picoseconds.
359 Weight::from_parts(832_000, 0)
360 }
361}