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-frontier-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/frontier_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(116), added: 2591, 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:  `166`
74
		//  Estimated: `3631`
75
		// Minimum execution time: 57_093_000 picoseconds.
76
		Weight::from_parts(58_378_000, 3631)
77
			.saturating_add(T::DbWeight::get().reads(7_u64))
78
			.saturating_add(T::DbWeight::get().writes(3_u64))
79
	}
80
6
	pub(crate) fn buy_execution() -> Weight {
81
6
		// Proof Size summary in bytes:
82
6
		//  Measured:  `0`
83
6
		//  Estimated: `0`
84
6
		// Minimum execution time: 840_000 picoseconds.
85
6
		Weight::from_parts(886_000, 0)
86
6
	}
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: 8_640_000 picoseconds.
94
		Weight::from_parts(8_834_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_089_000 picoseconds.
106
		Weight::from_parts(15_433_000, 3997)
107
			.saturating_add(T::DbWeight::get().reads(2_u64))
108
	}
109
1
	pub(crate) fn refund_surplus() -> Weight {
110
1
		// Proof Size summary in bytes:
111
1
		//  Measured:  `0`
112
1
		//  Estimated: `0`
113
1
		// Minimum execution time: 1_963_000 picoseconds.
114
1
		Weight::from_parts(2_075_000, 0)
115
1
	}
116
	pub(crate) fn set_error_handler() -> Weight {
117
		// Proof Size summary in bytes:
118
		//  Measured:  `0`
119
		//  Estimated: `0`
120
		// Minimum execution time: 827_000 picoseconds.
121
		Weight::from_parts(887_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: 846_000 picoseconds.
128
		Weight::from_parts(910_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: 823_000 picoseconds.
135
		Weight::from_parts(874_000, 0)
136
	}
137
2
	pub(crate) fn descend_origin() -> Weight {
138
2
		// Proof Size summary in bytes:
139
2
		//  Measured:  `0`
140
2
		//  Estimated: `0`
141
2
		// Minimum execution time: 888_000 picoseconds.
142
2
		Weight::from_parts(915_000, 0)
143
2
	}
144
4
	pub(crate) fn clear_origin() -> Weight {
145
4
		// Proof Size summary in bytes:
146
4
		//  Measured:  `0`
147
4
		//  Estimated: `0`
148
4
		// Minimum execution time: 839_000 picoseconds.
149
4
		Weight::from_parts(905_000, 0)
150
4
	}
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(116), added: 2591, 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:  `166`
168
		//  Estimated: `3631`
169
		// Minimum execution time: 51_960_000 picoseconds.
170
		Weight::from_parts(53_315_000, 3631)
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: 12_548_000 picoseconds.
181
		Weight::from_parts(12_863_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: 851_000 picoseconds.
190
		Weight::from_parts(897_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: 26_777_000 picoseconds.
211
		Weight::from_parts(27_454_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_556_000 picoseconds.
222
		Weight::from_parts(3_657_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_460_000 picoseconds.
230
		Weight::from_parts(1_520_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: 974_000 picoseconds.
237
		Weight::from_parts(1_066_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: 834_000 picoseconds.
244
		Weight::from_parts(880_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: 839_000 picoseconds.
251
		Weight::from_parts(912_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: 981_000 picoseconds.
258
		Weight::from_parts(1_062_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(116), added: 2591, 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:  `166`
277
		//  Estimated: `3631`
278
		// Minimum execution time: 60_802_000 picoseconds.
279
		Weight::from_parts(61_736_000, 3631)
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: 6_480_000 picoseconds.
288
		Weight::from_parts(6_728_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(116), added: 2591, 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:  `166`
307
		//  Estimated: `3631`
308
		// Minimum execution time: 52_326_000 picoseconds.
309
		Weight::from_parts(53_320_000, 3631)
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: 915_000 picoseconds.
318
		Weight::from_parts(989_000, 0)
319
	}
320
5
	pub(crate) fn set_topic() -> Weight {
321
5
		// Proof Size summary in bytes:
322
5
		//  Measured:  `0`
323
5
		//  Estimated: `0`
324
5
		// Minimum execution time: 823_000 picoseconds.
325
5
		Weight::from_parts(882_000, 0)
326
5
	}
327
	pub(crate) fn clear_topic() -> Weight {
328
		// Proof Size summary in bytes:
329
		//  Measured:  `0`
330
		//  Estimated: `0`
331
		// Minimum execution time: 841_000 picoseconds.
332
		Weight::from_parts(871_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: 783_000 picoseconds.
339
		Weight::from_parts(873_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: 835_000 picoseconds.
346
		Weight::from_parts(899_000, 0)
347
	}
348
}