Skip to content

Commit c441692

Browse files
[stable2506] Backport #9641 (#9651)
Backport #9641 into `stable2506` from serban300. 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: Serban Iorga <[email protected]> Co-authored-by: Serban Iorga <[email protected]>
1 parent 2caeef4 commit c441692

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

cumulus/pallets/xcmp-queue/src/benchmarking.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ mod benchmarks {
109109

110110
/// Add an XCMP message of 0 bytes to the message queue at the provided position
111111
/// on an existing page.
112-
#[benchmark]
112+
#[benchmark(pov_mode = Measured)]
113113
fn enqueue_empty_xcmp_message_at(
114114
n: Linear<0, { crate::MaxXcmpMessageLenOf::<T>::get() - 10 }>,
115115
) {
@@ -180,7 +180,7 @@ mod benchmarks {
180180
}
181181
}
182182

183-
#[benchmark]
183+
#[benchmark(pov_mode = Measured)]
184184
fn enqueue_1000_small_xcmp_messages() {
185185
#[cfg(test)]
186186
{

prdoc/pr_9641.prdoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
title: Account for PoV size when enqueing XCMP message
2+
doc:
3+
- audience: Runtime Dev
4+
description: |-
5+
Related to https://github.com/paritytech/polkadot-sdk/pull/9630 , but adjusting the benchmark
6+
7+
Using `#[benchmark(pov_mode = Measured)]` for the `enqueue_empty_xcmp_message_at` benchmark.
8+
crates:
9+
- name: cumulus-pallet-xcmp-queue
10+
bump: patch

0 commit comments

Comments
 (0)