Skip to content

Commit

Permalink
Avoid multiple codegen units in benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienG2 committed Sep 26, 2019
1 parent 4422e42 commit 74f148c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ license = "MIT"

[dev-dependencies]
recycler="0.1.4"

[profile.bench]
# Multiple codegen units speed up compilation, but make compilation output less
# deteministic and generally decrease codegen quality through worse inlining.
# Let's turn it off for benchmarking.
codegen-units = 1

0 comments on commit 74f148c

Please sign in to comment.