Execute benchmark targets if configured.

Section: Tests and benches

Run benchmarks

bash
bash
cargo bench
Explanation

Benchmark support is available through Cargo benchmark targets.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Tests and benches
Run the test suite
Build and run tests for the local package.
OpenIn sheetbashsame section
Run a matching subset of tests
Filter tests by substring.
OpenIn sheetbashsame section
Show println output in tests
Pass test harness flags after `--`.
OpenIn sheetbashsame section
Run tests serially
Force one test thread.
OpenIn sheetbashsame section
Type-check without producing binaries
Validate code quickly without final artifacts.
OpenIn sheetbash1 tag match
Format source code
Run rustfmt across the package.
OpenIn sheetbash1 tag match