cargo-bench
Verified for current stable LTS
Cargo Bench Command: Benchmark Package Library
Use for benchmark package library with Cargo Bench. Exact CLI syntax to benchmark package library using Cargo Bench.
When to use this: Use for benchmark package library with Cargo Bench.
Command Syntax
cargo bench --lib cargo bench --lib Command Breakdown
--lib- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to benchmark package library using Cargo Bench.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Cargo Bench Command: Execute All Benchmarks
cargo bench Cargo Bench Command: No Fail Fast cargo bench --no-fail-fast Cargo Bench Command: Compile Without Running Benchmarks cargo bench --no-run Cargo Bench Command: Benchmark Specific Benchmark cargo bench --bench <benchmark> Cargo Bench Command: Benchmark With Profile cargo bench --profile <profile>