1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi 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
// Tanssi 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 Tanssi.  If not, see <http://www.gnu.org/licenses/>
16

            
17

            
18
//! Autogenerated weights for pallet_xcm_benchmarks::generic
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21
//! DATE: 2024-08-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/container-chain-simple-node
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_xcm_benchmarks::generic
34
// --extrinsic
35
// *
36
// --chain=dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=./benchmarking/frame-weight-runtime-template-xcm.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/simple_template_weights/pallet_xcm_benchmarks_generic.rs
46

            
47
#![cfg_attr(rustfmt, rustfmt_skip)]
48
#![allow(unused_parens)]
49
#![allow(unused_imports)]
50

            
51
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
52
use sp_std::marker::PhantomData;
53

            
54
/// Weights for pallet_xcm_benchmarks::generic using the Substrate node and recommended hardware.
55
pub struct WeightInfo<T>(PhantomData<T>);
56
impl<T: frame_system::Config> WeightInfo<T> {
57
	/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
58
	/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
59
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
60
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
61
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
62
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
63
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
64
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
65
	/// Storage: `System::Account` (r:1 w:1)
66
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
67
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
68
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
69
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
70
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
71
	pub(crate) fn report_holding() -> Weight {
72
		// Proof Size summary in bytes:
73
		//  Measured:  `176`
74
		//  Estimated: `3641`
75
		// Minimum execution time: 57_769_000 picoseconds.
76
		Weight::from_parts(59_110_000, 3641)
77
			.saturating_add(T::DbWeight::get().reads(7_u64))
78
			.saturating_add(T::DbWeight::get().writes(3_u64))
79
	}
80
7
	pub(crate) fn buy_execution() -> Weight {
81
7
		// Proof Size summary in bytes:
82
7
		//  Measured:  `0`
83
7
		//  Estimated: `0`
84
7
		// Minimum execution time: 765_000 picoseconds.
85
7
		Weight::from_parts(825_000, 0)
86
7
	}
87
	/// Storage: `PolkadotXcm::Queries` (r:1 w:0)
88
	/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
89
	pub(crate) fn query_response() -> Weight {
90
		// Proof Size summary in bytes:
91
		//  Measured:  `69`
92
		//  Estimated: `3534`
93
		// Minimum execution time: 9_276_000 picoseconds.
94
		Weight::from_parts(9_690_000, 3534)
95
			.saturating_add(T::DbWeight::get().reads(1_u64))
96
	}
97
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
98
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
99
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
100
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
101
	pub(crate) fn transact() -> Weight {
102
		// Proof Size summary in bytes:
103
		//  Measured:  `46`
104
		//  Estimated: `3997`
105
		// Minimum execution time: 15_574_000 picoseconds.
106
		Weight::from_parts(16_064_000, 3997)
107
			.saturating_add(T::DbWeight::get().reads(2_u64))
108
	}
109
	pub(crate) fn refund_surplus() -> Weight {
110
		// Proof Size summary in bytes:
111
		//  Measured:  `0`
112
		//  Estimated: `0`
113
		// Minimum execution time: 1_890_000 picoseconds.
114
		Weight::from_parts(1_975_000, 0)
115
	}
116
	pub(crate) fn set_error_handler() -> Weight {
117
		// Proof Size summary in bytes:
118
		//  Measured:  `0`
119
		//  Estimated: `0`
120
		// Minimum execution time: 836_000 picoseconds.
121
		Weight::from_parts(888_000, 0)
122
	}
123
	pub(crate) fn set_appendix() -> Weight {
124
		// Proof Size summary in bytes:
125
		//  Measured:  `0`
126
		//  Estimated: `0`
127
		// Minimum execution time: 832_000 picoseconds.
128
		Weight::from_parts(883_000, 0)
129
	}
130
	pub(crate) fn clear_error() -> Weight {
131
		// Proof Size summary in bytes:
132
		//  Measured:  `0`
133
		//  Estimated: `0`
134
		// Minimum execution time: 743_000 picoseconds.
135
		Weight::from_parts(823_000, 0)
136
	}
137
	pub(crate) fn descend_origin() -> Weight {
138
		// Proof Size summary in bytes:
139
		//  Measured:  `0`
140
		//  Estimated: `0`
141
		// Minimum execution time: 805_000 picoseconds.
142
		Weight::from_parts(883_000, 0)
143
	}
144
7
	pub(crate) fn clear_origin() -> Weight {
145
7
		// Proof Size summary in bytes:
146
7
		//  Measured:  `0`
147
7
		//  Estimated: `0`
148
7
		// Minimum execution time: 797_000 picoseconds.
149
7
		Weight::from_parts(836_000, 0)
150
7
	}
151
	/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
152
	/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
153
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
154
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
155
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
156
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
157
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
158
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
159
	/// Storage: `System::Account` (r:1 w:1)
160
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
161
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
162
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
163
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
164
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
165
	pub(crate) fn report_error() -> Weight {
166
		// Proof Size summary in bytes:
167
		//  Measured:  `176`
168
		//  Estimated: `3641`
169
		// Minimum execution time: 53_081_000 picoseconds.
170
		Weight::from_parts(54_192_000, 3641)
171
			.saturating_add(T::DbWeight::get().reads(7_u64))
172
			.saturating_add(T::DbWeight::get().writes(3_u64))
173
	}
174
	/// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1)
175
	/// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
176
	pub(crate) fn claim_asset() -> Weight {
177
		// Proof Size summary in bytes:
178
		//  Measured:  `126`
179
		//  Estimated: `3591`
180
		// Minimum execution time: 13_362_000 picoseconds.
181
		Weight::from_parts(13_691_000, 3591)
182
			.saturating_add(T::DbWeight::get().reads(1_u64))
183
			.saturating_add(T::DbWeight::get().writes(1_u64))
184
	}
185
	pub(crate) fn trap() -> Weight {
186
		// Proof Size summary in bytes:
187
		//  Measured:  `0`
188
		//  Estimated: `0`
189
		// Minimum execution time: 739_000 picoseconds.
190
		Weight::from_parts(813_000, 0)
191
	}
192
	/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:1 w:1)
193
	/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
194
	/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
195
	/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
196
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
197
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
198
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
199
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
200
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
201
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
202
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
203
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
204
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
205
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
206
	pub(crate) fn subscribe_version() -> Weight {
207
		// Proof Size summary in bytes:
208
		//  Measured:  `75`
209
		//  Estimated: `3540`
210
		// Minimum execution time: 28_133_000 picoseconds.
211
		Weight::from_parts(28_848_000, 3540)
212
			.saturating_add(T::DbWeight::get().reads(7_u64))
213
			.saturating_add(T::DbWeight::get().writes(3_u64))
214
	}
215
	/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:0 w:1)
216
	/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
217
	pub(crate) fn unsubscribe_version() -> Weight {
218
		// Proof Size summary in bytes:
219
		//  Measured:  `0`
220
		//  Estimated: `0`
221
		// Minimum execution time: 3_533_000 picoseconds.
222
		Weight::from_parts(3_650_000, 0)
223
			.saturating_add(T::DbWeight::get().writes(1_u64))
224
	}
225
	pub(crate) fn burn_asset() -> Weight {
226
		// Proof Size summary in bytes:
227
		//  Measured:  `0`
228
		//  Estimated: `0`
229
		// Minimum execution time: 1_384_000 picoseconds.
230
		Weight::from_parts(1_471_000, 0)
231
	}
232
	pub(crate) fn expect_asset() -> Weight {
233
		// Proof Size summary in bytes:
234
		//  Measured:  `0`
235
		//  Estimated: `0`
236
		// Minimum execution time: 972_000 picoseconds.
237
		Weight::from_parts(1_045_000, 0)
238
	}
239
	pub(crate) fn expect_origin() -> Weight {
240
		// Proof Size summary in bytes:
241
		//  Measured:  `0`
242
		//  Estimated: `0`
243
		// Minimum execution time: 818_000 picoseconds.
244
		Weight::from_parts(876_000, 0)
245
	}
246
	pub(crate) fn expect_error() -> Weight {
247
		// Proof Size summary in bytes:
248
		//  Measured:  `0`
249
		//  Estimated: `0`
250
		// Minimum execution time: 832_000 picoseconds.
251
		Weight::from_parts(888_000, 0)
252
	}
253
	pub(crate) fn expect_transact_status() -> Weight {
254
		// Proof Size summary in bytes:
255
		//  Measured:  `0`
256
		//  Estimated: `0`
257
		// Minimum execution time: 943_000 picoseconds.
258
		Weight::from_parts(986_000, 0)
259
	}
260
	/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
261
	/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
262
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
263
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
264
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
265
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
266
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
267
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
268
	/// Storage: `System::Account` (r:1 w:1)
269
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
270
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
271
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
272
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
273
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
274
	pub(crate) fn query_pallet() -> Weight {
275
		// Proof Size summary in bytes:
276
		//  Measured:  `176`
277
		//  Estimated: `3641`
278
		// Minimum execution time: 60_513_000 picoseconds.
279
		Weight::from_parts(61_741_000, 3641)
280
			.saturating_add(T::DbWeight::get().reads(7_u64))
281
			.saturating_add(T::DbWeight::get().writes(3_u64))
282
	}
283
	pub(crate) fn expect_pallet() -> Weight {
284
		// Proof Size summary in bytes:
285
		//  Measured:  `0`
286
		//  Estimated: `0`
287
		// Minimum execution time: 5_562_000 picoseconds.
288
		Weight::from_parts(5_765_000, 0)
289
	}
290
	/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
291
	/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
292
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
293
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
294
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
295
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
296
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
297
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
298
	/// Storage: `System::Account` (r:1 w:1)
299
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
300
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
301
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
302
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
303
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
304
	pub(crate) fn report_transact_status() -> Weight {
305
		// Proof Size summary in bytes:
306
		//  Measured:  `176`
307
		//  Estimated: `3641`
308
		// Minimum execution time: 53_343_000 picoseconds.
309
		Weight::from_parts(54_985_000, 3641)
310
			.saturating_add(T::DbWeight::get().reads(7_u64))
311
			.saturating_add(T::DbWeight::get().writes(3_u64))
312
	}
313
	pub(crate) fn clear_transact_status() -> Weight {
314
		// Proof Size summary in bytes:
315
		//  Measured:  `0`
316
		//  Estimated: `0`
317
		// Minimum execution time: 817_000 picoseconds.
318
		Weight::from_parts(908_000, 0)
319
	}
320
6
	pub(crate) fn set_topic() -> Weight {
321
6
		// Proof Size summary in bytes:
322
6
		//  Measured:  `0`
323
6
		//  Estimated: `0`
324
6
		// Minimum execution time: 775_000 picoseconds.
325
6
		Weight::from_parts(795_000, 0)
326
6
	}
327
	pub(crate) fn clear_topic() -> Weight {
328
		// Proof Size summary in bytes:
329
		//  Measured:  `0`
330
		//  Estimated: `0`
331
		// Minimum execution time: 779_000 picoseconds.
332
		Weight::from_parts(820_000, 0)
333
	}
334
	pub(crate) fn set_fees_mode() -> Weight {
335
		// Proof Size summary in bytes:
336
		//  Measured:  `0`
337
		//  Estimated: `0`
338
		// Minimum execution time: 747_000 picoseconds.
339
		Weight::from_parts(824_000, 0)
340
	}
341
	pub(crate) fn unpaid_execution() -> Weight {
342
		// Proof Size summary in bytes:
343
		//  Measured:  `0`
344
		//  Estimated: `0`
345
		// Minimum execution time: 836_000 picoseconds.
346
		Weight::from_parts(856_000, 0)
347
	}
348
}