rococo_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-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `d3a9aad6f7a3`, 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/rococo-runtime/rococo_runtime.wasm
32// --pallet=pallet_xcm_benchmarks::generic
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/rococo/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:1 w:1)
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: `346`
70 // Estimated: `3811`
71 // Minimum execution time: 75_713_000 picoseconds.
72 Weight::from_parts(78_677_000, 3811)
73 .saturating_add(T::DbWeight::get().reads(6))
74 .saturating_add(T::DbWeight::get().writes(3))
75 }
76 pub(crate) fn buy_execution() -> Weight {
77 // Proof Size summary in bytes:
78 // Measured: `0`
79 // Estimated: `0`
80 // Minimum execution time: 722_000 picoseconds.
81 Weight::from_parts(778_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_357_000 picoseconds.
88 Weight::from_parts(3_532_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: 774_000 picoseconds.
95 Weight::from_parts(813_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_069_000 picoseconds.
104 Weight::from_parts(6_386_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_635_000 picoseconds.
112 Weight::from_parts(8_175_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_329_000 picoseconds.
119 Weight::from_parts(1_408_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: 732_000 picoseconds.
126 Weight::from_parts(787_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: 718_000 picoseconds.
133 Weight::from_parts(780_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: 719_000 picoseconds.
140 Weight::from_parts(754_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: 740_000 picoseconds.
147 Weight::from_parts(837_000, 0)
148 }
149 pub(crate) fn execute_with_origin() -> Weight {
150 // Proof Size summary in bytes:
151 // Measured: `0`
152 // Estimated: `0`
153 // Minimum execution time: 791_000 picoseconds.
154 Weight::from_parts(865_000, 0)
155 }
156 pub(crate) fn clear_origin() -> Weight {
157 // Proof Size summary in bytes:
158 // Measured: `0`
159 // Estimated: `0`
160 // Minimum execution time: 706_000 picoseconds.
161 Weight::from_parts(777_000, 0)
162 }
163 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
164 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
165 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
166 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
167 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
168 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
169 /// Storage: `Paras::Heads` (r:1 w:0)
170 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
171 /// Storage: `System::Account` (r:1 w:1)
172 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
173 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
174 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
175 pub(crate) fn report_error() -> Weight {
176 // Proof Size summary in bytes:
177 // Measured: `346`
178 // Estimated: `3811`
179 // Minimum execution time: 72_746_000 picoseconds.
180 Weight::from_parts(76_021_000, 3811)
181 .saturating_add(T::DbWeight::get().reads(6))
182 .saturating_add(T::DbWeight::get().writes(3))
183 }
184 /// Storage: `XcmPallet::AssetTraps` (r:1 w:1)
185 /// Proof: `XcmPallet::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
186 pub(crate) fn claim_asset() -> Weight {
187 // Proof Size summary in bytes:
188 // Measured: `23`
189 // Estimated: `3488`
190 // Minimum execution time: 9_752_000 picoseconds.
191 Weight::from_parts(10_165_000, 3488)
192 .saturating_add(T::DbWeight::get().reads(1))
193 .saturating_add(T::DbWeight::get().writes(1))
194 }
195 pub(crate) fn trap() -> Weight {
196 // Proof Size summary in bytes:
197 // Measured: `0`
198 // Estimated: `0`
199 // Minimum execution time: 671_000 picoseconds.
200 Weight::from_parts(758_000, 0)
201 }
202 /// Storage: `XcmPallet::VersionNotifyTargets` (r:1 w:1)
203 /// Proof: `XcmPallet::VersionNotifyTargets` (`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 pub(crate) fn subscribe_version() -> Weight {
215 // Proof Size summary in bytes:
216 // Measured: `245`
217 // Estimated: `3710`
218 // Minimum execution time: 38_093_000 picoseconds.
219 Weight::from_parts(39_825_000, 3710)
220 .saturating_add(T::DbWeight::get().reads(6))
221 .saturating_add(T::DbWeight::get().writes(3))
222 }
223 /// Storage: `XcmPallet::VersionNotifyTargets` (r:0 w:1)
224 /// Proof: `XcmPallet::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
225 pub(crate) fn unsubscribe_version() -> Weight {
226 // Proof Size summary in bytes:
227 // Measured: `0`
228 // Estimated: `0`
229 // Minimum execution time: 3_159_000 picoseconds.
230 Weight::from_parts(3_456_000, 0)
231 .saturating_add(T::DbWeight::get().writes(1))
232 }
233 pub(crate) fn burn_asset() -> Weight {
234 // Proof Size summary in bytes:
235 // Measured: `0`
236 // Estimated: `0`
237 // Minimum execution time: 1_097_000 picoseconds.
238 Weight::from_parts(1_201_000, 0)
239 }
240 pub(crate) fn expect_asset() -> Weight {
241 // Proof Size summary in bytes:
242 // Measured: `0`
243 // Estimated: `0`
244 // Minimum execution time: 842_000 picoseconds.
245 Weight::from_parts(909_000, 0)
246 }
247 pub(crate) fn expect_origin() -> Weight {
248 // Proof Size summary in bytes:
249 // Measured: `0`
250 // Estimated: `0`
251 // Minimum execution time: 694_000 picoseconds.
252 Weight::from_parts(765_000, 0)
253 }
254 pub(crate) fn expect_error() -> Weight {
255 // Proof Size summary in bytes:
256 // Measured: `0`
257 // Estimated: `0`
258 // Minimum execution time: 707_000 picoseconds.
259 Weight::from_parts(744_000, 0)
260 }
261 pub(crate) fn expect_transact_status() -> Weight {
262 // Proof Size summary in bytes:
263 // Measured: `0`
264 // Estimated: `0`
265 // Minimum execution time: 880_000 picoseconds.
266 Weight::from_parts(976_000, 0)
267 }
268 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
269 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
270 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
271 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
272 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
273 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
274 /// Storage: `Paras::Heads` (r:1 w:0)
275 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
276 /// Storage: `System::Account` (r:1 w:1)
277 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
278 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
279 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
280 pub(crate) fn query_pallet() -> Weight {
281 // Proof Size summary in bytes:
282 // Measured: `346`
283 // Estimated: `3811`
284 // Minimum execution time: 85_577_000 picoseconds.
285 Weight::from_parts(87_984_000, 3811)
286 .saturating_add(T::DbWeight::get().reads(6))
287 .saturating_add(T::DbWeight::get().writes(3))
288 }
289 pub(crate) fn expect_pallet() -> Weight {
290 // Proof Size summary in bytes:
291 // Measured: `0`
292 // Estimated: `0`
293 // Minimum execution time: 9_176_000 picoseconds.
294 Weight::from_parts(9_545_000, 0)
295 }
296 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
297 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
298 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
299 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
300 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
301 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
302 /// Storage: `Paras::Heads` (r:1 w:0)
303 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
304 /// Storage: `System::Account` (r:1 w:1)
305 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
306 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
307 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
308 pub(crate) fn report_transact_status() -> Weight {
309 // Proof Size summary in bytes:
310 // Measured: `346`
311 // Estimated: `3811`
312 // Minimum execution time: 74_596_000 picoseconds.
313 Weight::from_parts(76_130_000, 3811)
314 .saturating_add(T::DbWeight::get().reads(6))
315 .saturating_add(T::DbWeight::get().writes(3))
316 }
317 pub(crate) fn clear_transact_status() -> Weight {
318 // Proof Size summary in bytes:
319 // Measured: `0`
320 // Estimated: `0`
321 // Minimum execution time: 759_000 picoseconds.
322 Weight::from_parts(821_000, 0)
323 }
324 pub(crate) fn set_topic() -> Weight {
325 // Proof Size summary in bytes:
326 // Measured: `0`
327 // Estimated: `0`
328 // Minimum execution time: 712_000 picoseconds.
329 Weight::from_parts(747_000, 0)
330 }
331 pub(crate) fn clear_topic() -> Weight {
332 // Proof Size summary in bytes:
333 // Measured: `0`
334 // Estimated: `0`
335 // Minimum execution time: 694_000 picoseconds.
336 Weight::from_parts(743_000, 0)
337 }
338 pub(crate) fn set_fees_mode() -> Weight {
339 // Proof Size summary in bytes:
340 // Measured: `0`
341 // Estimated: `0`
342 // Minimum execution time: 682_000 picoseconds.
343 Weight::from_parts(764_000, 0)
344 }
345 pub(crate) fn unpaid_execution() -> Weight {
346 // Proof Size summary in bytes:
347 // Measured: `0`
348 // Estimated: `0`
349 // Minimum execution time: 766_000 picoseconds.
350 Weight::from_parts(807_000, 0)
351 }
352}