Skip to content

Commit

Permalink
Auto merge of #4650 - main--:patch-1, r=matklad
Browse files Browse the repository at this point in the history
Document that cargo test --release uses profile.bench

It certainly makes sense but it's still surprising behavior when the docs clearly state `cargo bench` = `profile.bench`, `cargo test` = `profile.test`. Had to dive into the code to figure this out.
  • Loading branch information
bors committed Oct 22, 2017
2 parents 92a3a4e + 7dea9b2 commit 3e95c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ debug-assertions = true
codegen-units = 1
panic = 'unwind'

# The benchmarking profile, used for `cargo bench`.
# The benchmarking profile, used for `cargo bench` and `cargo test --release`.
[profile.bench]
opt-level = 3
debug = false
Expand Down

0 comments on commit 3e95c0f

Please sign in to comment.