mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 06:58:54 +00:00
Update cheatsheets
This commit is contained in:
41
cargo-bench
Normal file
41
cargo-bench
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cargo bench
|
||||
|
||||
> Compile and execute benchmarks.
|
||||
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-bench.html>.
|
||||
|
||||
- Execute all benchmarks of a package:
|
||||
|
||||
`cargo bench`
|
||||
|
||||
- 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:
|
||||
|
||||
`cargo bench --bins`
|
||||
|
||||
- Benchmark the package’s library:
|
||||
|
||||
`cargo bench --lib`
|
||||
Reference in New Issue
Block a user