Skip to content

Commit 6750b3f

Browse files
Adding bulletin westend benchmarks (#200)
* Adding bulletin westend benchmarks * Apply suggestion from @franciscoaguirre * fix: fmt * Adding bulletin westend benchmarks updated * updating benchmark command in README * updating comments --------- Co-authored-by: Francisco Aguirre <[email protected]>
1 parent 288c090 commit 6750b3f

14 files changed

+626
-674
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,13 @@ or
245245

246246
Run on the dedicated machine from the root directory:
247247
```
248-
python3 scripts/cmd/cmd.py bench bulletin-polkadot
249-
python3 scripts/cmd/cmd.py bench bulletin-westend
248+
python3 scripts/cmd/cmd.py bench --runtime bulletin-polkadot
249+
python3 scripts/cmd/cmd.py bench --runtime bulletin-westend
250+
```
251+
252+
To run all benchmarks:
253+
```
254+
python3 scripts/cmd/cmd.py bench
250255
```
251256

252257
# Examples (JavaScript-based)
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
// Copyright (C) Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md
2+
// for a list of specific contributors.
23
// SPDX-License-Identifier: Apache-2.0
34

45
// Licensed under the Apache License, Version 2.0 (the "License");
56
// you may not use this file except in compliance with the License.
67
// You may obtain a copy of the License at
78
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9+
// http://www.apache.org/licenses/LICENSE-2.0
910
//
1011
// Unless required by applicable law or agreed to in writing, software
1112
// distributed under the License is distributed on an "AS IS" BASIS,
@@ -16,9 +17,9 @@
1617
//! Autogenerated weights for `cumulus_pallet_parachain_system`
1718
//!
1819
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19-
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20+
//! DATE: 2026-01-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
2021
//! WORST CASE MAP SIZE: `1000000`
21-
//! HOSTNAME: `050e4dc4313a`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22+
//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor`
2223
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
2324
2425
// Executed Command:
@@ -27,17 +28,14 @@
2728
// benchmark
2829
// pallet
2930
// --extrinsic=*
30-
// --runtime=target/production/wbuild/coretime-westend-runtime/coretime_westend_runtime.wasm
31+
// --runtime=target/production/wbuild/bulletin-westend-runtime/bulletin_westend_runtime.wasm
3132
// --pallet=cumulus_pallet_parachain_system
32-
// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33-
// --output=./cumulus/parachains/runtimes/coretime/coretime-westend/src/weights
33+
// --header=./scripts/cmd/file_header.txt
34+
// --output=./runtimes/bulletin-westend/src/weights
3435
// --wasm-execution=compiled
3536
// --steps=50
3637
// --repeat=20
3738
// --heap-pages=4096
38-
// --no-storage-info
39-
// --no-min-squares
40-
// --no-median-slopes
4139

4240
#![cfg_attr(rustfmt, rustfmt_skip)]
4341
#![allow(unused_parens)]
@@ -56,22 +54,24 @@ impl<T: frame_system::Config> cumulus_pallet_parachain_system::WeightInfo for We
5654
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
5755
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
5856
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
57+
/// Storage: `ParachainSystem::LastProcessedDownwardMessage` (r:0 w:1)
58+
/// Proof: `ParachainSystem::LastProcessedDownwardMessage` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
5959
/// Storage: `ParachainSystem::ProcessedDownwardMessages` (r:0 w:1)
6060
/// Proof: `ParachainSystem::ProcessedDownwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
6161
/// Storage: `MessageQueue::Pages` (r:0 w:1000)
6262
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
6363
/// The range of component `n` is `[0, 1000]`.
6464
fn enqueue_inbound_downward_messages(n: u32, ) -> Weight {
6565
// Proof Size summary in bytes:
66-
// Measured: `48`
66+
// Measured: `12`
6767
// Estimated: `3517`
68-
// Minimum execution time: 2_904_000 picoseconds.
69-
Weight::from_parts(2_963_000, 0)
68+
// Minimum execution time: 3_610_000 picoseconds.
69+
Weight::from_parts(3_740_000, 0)
7070
.saturating_add(Weight::from_parts(0, 3517))
71-
// Standard Error: 45_591
72-
.saturating_add(Weight::from_parts(352_059_814, 0).saturating_mul(n.into()))
71+
// Standard Error: 352_372
72+
.saturating_add(Weight::from_parts(204_464_717, 0).saturating_mul(n.into()))
7373
.saturating_add(T::DbWeight::get().reads(3))
74-
.saturating_add(T::DbWeight::get().writes(4))
74+
.saturating_add(T::DbWeight::get().writes(5))
7575
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
7676
}
7777
}

runtimes/bulletin-westend/src/weights/cumulus_pallet_weight_reclaim.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
// Copyright (C) Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md
2+
// for a list of specific contributors.
23
// SPDX-License-Identifier: Apache-2.0
34

45
// Licensed under the Apache License, Version 2.0 (the "License");
56
// you may not use this file except in compliance with the License.
67
// You may obtain a copy of the License at
78
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9+
// http://www.apache.org/licenses/LICENSE-2.0
910
//
1011
// Unless required by applicable law or agreed to in writing, software
1112
// distributed under the License is distributed on an "AS IS" BASIS,
@@ -16,9 +17,9 @@
1617
//! Autogenerated weights for `cumulus_pallet_weight_reclaim`
1718
//!
1819
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19-
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20+
//! DATE: 2026-01-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
2021
//! WORST CASE MAP SIZE: `1000000`
21-
//! HOSTNAME: `050e4dc4313a`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22+
//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor`
2223
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
2324
2425
// Executed Command:
@@ -27,17 +28,14 @@
2728
// benchmark
2829
// pallet
2930
// --extrinsic=*
30-
// --runtime=target/production/wbuild/coretime-westend-runtime/coretime_westend_runtime.wasm
31+
// --runtime=target/production/wbuild/bulletin-westend-runtime/bulletin_westend_runtime.wasm
3132
// --pallet=cumulus_pallet_weight_reclaim
32-
// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33-
// --output=./cumulus/parachains/runtimes/coretime/coretime-westend/src/weights
33+
// --header=./scripts/cmd/file_header.txt
34+
// --output=./runtimes/bulletin-westend/src/weights
3435
// --wasm-execution=compiled
3536
// --steps=50
3637
// --repeat=20
3738
// --heap-pages=4096
38-
// --no-storage-info
39-
// --no-min-squares
40-
// --no-median-slopes
4139

4240
#![cfg_attr(rustfmt, rustfmt_skip)]
4341
#![allow(unused_parens)]
@@ -54,8 +52,8 @@ impl<T: frame_system::Config> cumulus_pallet_weight_reclaim::WeightInfo for Weig
5452
// Proof Size summary in bytes:
5553
// Measured: `0`
5654
// Estimated: `0`
57-
// Minimum execution time: 3_773_000 picoseconds.
58-
Weight::from_parts(4_009_000, 0)
55+
// Minimum execution time: 15_230_000 picoseconds.
56+
Weight::from_parts(15_740_000, 0)
5957
.saturating_add(Weight::from_parts(0, 0))
6058
}
6159
}

0 commit comments

Comments
 (0)