Skip to content

Commit 17a0354

Browse files
committed
Avoid multiple codegen units in benchmarks
1 parent cb8e2af commit 17a0354

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ license = "MIT"
1414

1515
[dev-dependencies]
1616
recycler="0.1.4"
17+
18+
[profile.bench]
19+
# Multiple codegen units speed up compilation, but make compilation output less
20+
# deteministic and generally decrease codegen quality through worse inlining.
21+
# Let's turn it off for benchmarking.
22+
codegen-units = 1

0 commit comments

Comments
 (0)