commands.sh

cargo bench

all

Compile and execute benchmarks.

More info →

Examples (8)

Execute all benchmarks of a package

Don't stop when a benchmark fails

cargo bench --no-fail-fast

Compile, but don't run benchmarks

cargo bench --no-run

Benchmark the specified benchmark

cargo bench --bench benchmark

Benchmark with the given profile (default: `bench`)

cargo bench --profile profile

Benchmark all example targets

cargo bench --examples

Benchmark all binary targets

Benchmark the package's library

made by @shridhargupta | data from tldr-pages