Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@
// SPDX-License-Identifier: Apache-2.0

// Benchmarking statement store performance
//
// ## 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
// ```
Comment on lines +6 to +27
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.


use anyhow::anyhow;
use codec::{Decode, Encode};
Expand Down
Loading