Skip to content

Commit d9b1353

Browse files
[stable2412] Backport paritytech#6919 (paritytech#6948)
Backport paritytech#6919 into `stable2412` from bkontur. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Branislav Kontur <[email protected]>
1 parent d78cf8f commit d9b1353

File tree

11 files changed

+1113
-970
lines changed

11 files changed

+1113
-970
lines changed

cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_xcm.rs

Lines changed: 100 additions & 87 deletions
Large diffs are not rendered by default.

cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_xcm.rs

Lines changed: 101 additions & 86 deletions
Large diffs are not rendered by default.

cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/pallet_xcm.rs

Lines changed: 89 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,27 @@
1717
//! Autogenerated weights for `pallet_xcm`
1818
//!
1919
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20-
//! DATE: 2024-02-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20+
//! DATE: 2024-12-18, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
2121
//! WORST CASE MAP SIZE: `1000000`
22-
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22+
//! HOSTNAME: `902e7ad7764b`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
2323
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("bridge-hub-rococo-dev")`, DB CACHE: 1024
2424
2525
// Executed Command:
2626
// target/production/polkadot-parachain
2727
// benchmark
2828
// pallet
29-
// --steps=50
30-
// --repeat=20
3129
// --extrinsic=*
30+
// --chain=bridge-hub-rococo-dev
31+
// --pallet=pallet_xcm
32+
// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33+
// --output=./cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights
3234
// --wasm-execution=compiled
35+
// --steps=50
36+
// --repeat=20
3337
// --heap-pages=4096
34-
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
35-
// --pallet=pallet_xcm
36-
// --chain=bridge-hub-rococo-dev
37-
// --header=./cumulus/file_header.txt
38-
// --output=./cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/
38+
// --no-storage-info
39+
// --no-min-squares
40+
// --no-median-slopes
3941

4042
#![cfg_attr(rustfmt, rustfmt_skip)]
4143
#![allow(unused_parens)]
@@ -64,14 +66,16 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
6466
// Proof Size summary in bytes:
6567
// Measured: `38`
6668
// Estimated: `3503`
67-
// Minimum execution time: 18_513_000 picoseconds.
68-
Weight::from_parts(19_156_000, 0)
69+
// Minimum execution time: 25_273_000 picoseconds.
70+
Weight::from_parts(25_810_000, 0)
6971
.saturating_add(Weight::from_parts(0, 3503))
7072
.saturating_add(T::DbWeight::get().reads(6))
7173
.saturating_add(T::DbWeight::get().writes(2))
7274
}
7375
/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
7476
/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
77+
/// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0)
78+
/// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
7579
/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
7680
/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
7781
/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
@@ -90,10 +94,10 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
9094
// Proof Size summary in bytes:
9195
// Measured: `70`
9296
// Estimated: `3593`
93-
// Minimum execution time: 88_096_000 picoseconds.
94-
Weight::from_parts(89_732_000, 0)
97+
// Minimum execution time: 112_156_000 picoseconds.
98+
Weight::from_parts(115_999_000, 0)
9599
.saturating_add(Weight::from_parts(0, 3593))
96-
.saturating_add(T::DbWeight::get().reads(8))
100+
.saturating_add(T::DbWeight::get().reads(9))
97101
.saturating_add(T::DbWeight::get().writes(3))
98102
}
99103
/// Storage: `Benchmark::Override` (r:0 w:0)
@@ -108,6 +112,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
108112
}
109113
/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
110114
/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
115+
/// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0)
116+
/// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
111117
/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
112118
/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
113119
/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
@@ -126,30 +132,31 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
126132
// Proof Size summary in bytes:
127133
// Measured: `70`
128134
// Estimated: `3593`
129-
// Minimum execution time: 88_239_000 picoseconds.
130-
Weight::from_parts(89_729_000, 0)
135+
// Minimum execution time: 110_987_000 picoseconds.
136+
Weight::from_parts(114_735_000, 0)
131137
.saturating_add(Weight::from_parts(0, 3593))
132-
.saturating_add(T::DbWeight::get().reads(8))
138+
.saturating_add(T::DbWeight::get().reads(9))
133139
.saturating_add(T::DbWeight::get().writes(3))
134140
}
135-
/// Storage: `Benchmark::Override` (r:0 w:0)
136-
/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
141+
/// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0)
142+
/// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
137143
fn execute() -> Weight {
138144
// Proof Size summary in bytes:
139-
// Measured: `0`
140-
// Estimated: `0`
141-
// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
142-
Weight::from_parts(18_446_744_073_709_551_000, 0)
143-
.saturating_add(Weight::from_parts(0, 0))
145+
// Measured: `32`
146+
// Estimated: `1517`
147+
// Minimum execution time: 12_068_000 picoseconds.
148+
Weight::from_parts(12_565_000, 0)
149+
.saturating_add(Weight::from_parts(0, 1517))
150+
.saturating_add(T::DbWeight::get().reads(1))
144151
}
145152
/// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1)
146153
/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
147154
fn force_xcm_version() -> Weight {
148155
// Proof Size summary in bytes:
149156
// Measured: `0`
150157
// Estimated: `0`
151-
// Minimum execution time: 5_955_000 picoseconds.
152-
Weight::from_parts(6_266_000, 0)
158+
// Minimum execution time: 7_155_000 picoseconds.
159+
Weight::from_parts(7_606_000, 0)
153160
.saturating_add(Weight::from_parts(0, 0))
154161
.saturating_add(T::DbWeight::get().writes(1))
155162
}
@@ -159,8 +166,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
159166
// Proof Size summary in bytes:
160167
// Measured: `0`
161168
// Estimated: `0`
162-
// Minimum execution time: 1_868_000 picoseconds.
163-
Weight::from_parts(1_961_000, 0)
169+
// Minimum execution time: 2_325_000 picoseconds.
170+
Weight::from_parts(2_442_000, 0)
164171
.saturating_add(Weight::from_parts(0, 0))
165172
.saturating_add(T::DbWeight::get().writes(1))
166173
}
@@ -186,8 +193,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
186193
// Proof Size summary in bytes:
187194
// Measured: `38`
188195
// Estimated: `3503`
189-
// Minimum execution time: 24_388_000 picoseconds.
190-
Weight::from_parts(25_072_000, 0)
196+
// Minimum execution time: 31_747_000 picoseconds.
197+
Weight::from_parts(33_122_000, 0)
191198
.saturating_add(Weight::from_parts(0, 3503))
192199
.saturating_add(T::DbWeight::get().reads(8))
193200
.saturating_add(T::DbWeight::get().writes(5))
@@ -212,8 +219,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
212219
// Proof Size summary in bytes:
213220
// Measured: `255`
214221
// Estimated: `3720`
215-
// Minimum execution time: 26_762_000 picoseconds.
216-
Weight::from_parts(27_631_000, 0)
222+
// Minimum execution time: 36_396_000 picoseconds.
223+
Weight::from_parts(37_638_000, 0)
217224
.saturating_add(Weight::from_parts(0, 3720))
218225
.saturating_add(T::DbWeight::get().reads(7))
219226
.saturating_add(T::DbWeight::get().writes(4))
@@ -224,45 +231,45 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
224231
// Proof Size summary in bytes:
225232
// Measured: `0`
226233
// Estimated: `0`
227-
// Minimum execution time: 1_856_000 picoseconds.
228-
Weight::from_parts(2_033_000, 0)
234+
// Minimum execution time: 2_470_000 picoseconds.
235+
Weight::from_parts(2_594_000, 0)
229236
.saturating_add(Weight::from_parts(0, 0))
230237
.saturating_add(T::DbWeight::get().writes(1))
231238
}
232-
/// Storage: `PolkadotXcm::SupportedVersion` (r:5 w:2)
239+
/// Storage: `PolkadotXcm::SupportedVersion` (r:6 w:2)
233240
/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
234241
fn migrate_supported_version() -> Weight {
235242
// Proof Size summary in bytes:
236243
// Measured: `89`
237-
// Estimated: `13454`
238-
// Minimum execution time: 17_718_000 picoseconds.
239-
Weight::from_parts(18_208_000, 0)
240-
.saturating_add(Weight::from_parts(0, 13454))
241-
.saturating_add(T::DbWeight::get().reads(5))
244+
// Estimated: `15929`
245+
// Minimum execution time: 22_530_000 picoseconds.
246+
Weight::from_parts(22_987_000, 0)
247+
.saturating_add(Weight::from_parts(0, 15929))
248+
.saturating_add(T::DbWeight::get().reads(6))
242249
.saturating_add(T::DbWeight::get().writes(2))
243250
}
244-
/// Storage: `PolkadotXcm::VersionNotifiers` (r:5 w:2)
251+
/// Storage: `PolkadotXcm::VersionNotifiers` (r:6 w:2)
245252
/// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)
246253
fn migrate_version_notifiers() -> Weight {
247254
// Proof Size summary in bytes:
248255
// Measured: `93`
249-
// Estimated: `13458`
250-
// Minimum execution time: 17_597_000 picoseconds.
251-
Weight::from_parts(18_090_000, 0)
252-
.saturating_add(Weight::from_parts(0, 13458))
253-
.saturating_add(T::DbWeight::get().reads(5))
256+
// Estimated: `15933`
257+
// Minimum execution time: 23_016_000 picoseconds.
258+
Weight::from_parts(23_461_000, 0)
259+
.saturating_add(Weight::from_parts(0, 15933))
260+
.saturating_add(T::DbWeight::get().reads(6))
254261
.saturating_add(T::DbWeight::get().writes(2))
255262
}
256-
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:6 w:0)
263+
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:7 w:0)
257264
/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
258265
fn already_notified_target() -> Weight {
259266
// Proof Size summary in bytes:
260267
// Measured: `106`
261-
// Estimated: `15946`
262-
// Minimum execution time: 19_533_000 picoseconds.
263-
Weight::from_parts(20_164_000, 0)
264-
.saturating_add(Weight::from_parts(0, 15946))
265-
.saturating_add(T::DbWeight::get().reads(6))
268+
// Estimated: `18421`
269+
// Minimum execution time: 26_216_000 picoseconds.
270+
Weight::from_parts(26_832_000, 0)
271+
.saturating_add(Weight::from_parts(0, 18421))
272+
.saturating_add(T::DbWeight::get().reads(7))
266273
}
267274
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1)
268275
/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -282,36 +289,36 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
282289
// Proof Size summary in bytes:
283290
// Measured: `106`
284291
// Estimated: `6046`
285-
// Minimum execution time: 24_958_000 picoseconds.
286-
Weight::from_parts(25_628_000, 0)
292+
// Minimum execution time: 31_060_000 picoseconds.
293+
Weight::from_parts(32_513_000, 0)
287294
.saturating_add(Weight::from_parts(0, 6046))
288295
.saturating_add(T::DbWeight::get().reads(8))
289296
.saturating_add(T::DbWeight::get().writes(3))
290297
}
291-
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:0)
298+
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:0)
292299
/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
293300
fn notify_target_migration_fail() -> Weight {
294301
// Proof Size summary in bytes:
295-
// Measured: `136`
296-
// Estimated: `11026`
297-
// Minimum execution time: 12_209_000 picoseconds.
298-
Weight::from_parts(12_612_000, 0)
299-
.saturating_add(Weight::from_parts(0, 11026))
300-
.saturating_add(T::DbWeight::get().reads(4))
302+
// Measured: `109`
303+
// Estimated: `13474`
304+
// Minimum execution time: 17_334_000 picoseconds.
305+
Weight::from_parts(17_747_000, 0)
306+
.saturating_add(Weight::from_parts(0, 13474))
307+
.saturating_add(T::DbWeight::get().reads(5))
301308
}
302-
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2)
309+
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:6 w:2)
303310
/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
304311
fn migrate_version_notify_targets() -> Weight {
305312
// Proof Size summary in bytes:
306313
// Measured: `100`
307-
// Estimated: `13465`
308-
// Minimum execution time: 17_844_000 picoseconds.
309-
Weight::from_parts(18_266_000, 0)
310-
.saturating_add(Weight::from_parts(0, 13465))
311-
.saturating_add(T::DbWeight::get().reads(5))
314+
// Estimated: `15940`
315+
// Minimum execution time: 22_535_000 picoseconds.
316+
Weight::from_parts(23_386_000, 0)
317+
.saturating_add(Weight::from_parts(0, 15940))
318+
.saturating_add(T::DbWeight::get().reads(6))
312319
.saturating_add(T::DbWeight::get().writes(2))
313320
}
314-
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2)
321+
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:6 w:2)
315322
/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
316323
/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
317324
/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
@@ -328,11 +335,11 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
328335
fn migrate_and_notify_old_targets() -> Weight {
329336
// Proof Size summary in bytes:
330337
// Measured: `106`
331-
// Estimated: `13471`
332-
// Minimum execution time: 34_131_000 picoseconds.
333-
Weight::from_parts(34_766_000, 0)
334-
.saturating_add(Weight::from_parts(0, 13471))
335-
.saturating_add(T::DbWeight::get().reads(11))
338+
// Estimated: `15946`
339+
// Minimum execution time: 43_437_000 picoseconds.
340+
Weight::from_parts(44_588_000, 0)
341+
.saturating_add(Weight::from_parts(0, 15946))
342+
.saturating_add(T::DbWeight::get().reads(12))
336343
.saturating_add(T::DbWeight::get().writes(4))
337344
}
338345
/// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
@@ -343,8 +350,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
343350
// Proof Size summary in bytes:
344351
// Measured: `32`
345352
// Estimated: `1517`
346-
// Minimum execution time: 3_525_000 picoseconds.
347-
Weight::from_parts(3_724_000, 0)
353+
// Minimum execution time: 4_941_000 picoseconds.
354+
Weight::from_parts(5_088_000, 0)
348355
.saturating_add(Weight::from_parts(0, 1517))
349356
.saturating_add(T::DbWeight::get().reads(1))
350357
.saturating_add(T::DbWeight::get().writes(2))
@@ -355,22 +362,24 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
355362
// Proof Size summary in bytes:
356363
// Measured: `7669`
357364
// Estimated: `11134`
358-
// Minimum execution time: 24_975_000 picoseconds.
359-
Weight::from_parts(25_517_000, 0)
365+
// Minimum execution time: 29_996_000 picoseconds.
366+
Weight::from_parts(30_700_000, 0)
360367
.saturating_add(Weight::from_parts(0, 11134))
361368
.saturating_add(T::DbWeight::get().reads(1))
362369
.saturating_add(T::DbWeight::get().writes(1))
363370
}
371+
/// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0)
372+
/// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
364373
/// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1)
365374
/// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
366375
fn claim_assets() -> Weight {
367376
// Proof Size summary in bytes:
368377
// Measured: `90`
369378
// Estimated: `3555`
370-
// Minimum execution time: 33_761_000 picoseconds.
371-
Weight::from_parts(34_674_000, 0)
379+
// Minimum execution time: 41_828_000 picoseconds.
380+
Weight::from_parts(43_026_000, 0)
372381
.saturating_add(Weight::from_parts(0, 3555))
373-
.saturating_add(T::DbWeight::get().reads(1))
382+
.saturating_add(T::DbWeight::get().reads(2))
374383
.saturating_add(T::DbWeight::get().writes(1))
375384
}
376385
}

0 commit comments

Comments
 (0)