Skip to content

Conversation

@AndreiEres
Copy link
Contributor

Adds instruction on how to run the benchmarks locally

@AndreiEres AndreiEres added R0-no-crate-publish-required The change does not require any crates to be re-published. T11-documentation This PR/Issue is related to documentation. T12-benchmarks This PR/Issue is related to benchmarking and weights. labels Dec 5, 2025
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/19961468248
Failed job name: test-linux-stable

Comment on lines +6 to +27
// ## Running Benchmarks Locally
//
// 1. Build the binaries
// ```
// cargo build --release --locked --features fast-runtime \
// --bin polkadot \
// --bin polkadot-prepare-worker \
// --bin polkadot-execute-worker \
// --bin polkadot-parachain
// ```
//
// 2. Add the compiled binaries to your PATH
// ```
// export PATH="$PATH:$(pwd)/target/release"
// ```
//
// 3. Run the desired benchmark
// Pass the benchmark test name as an argument.
// ```
// ZOMBIE_PROVIDER=native cargo test -p cumulus-zombienet-sdk-tests --features zombie-ci \
// zombie_ci::statement_store_bench::statement_store_one_node_bench -- --exact --nocapture
// ```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a run.sh that does all of this. However, I would propose to extend this to run the benchmarks separately and also put the benchmarks behind a special feature. This makes it easier to just run the tests locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

R0-no-crate-publish-required The change does not require any crates to be re-published. T11-documentation This PR/Issue is related to documentation. T12-benchmarks This PR/Issue is related to benchmarking and weights.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants