Skip to content

Commit

Permalink
Allow the bench profile to compile faster
Browse files Browse the repository at this point in the history
There we don't necessarily need every last bit of optimization like
one would want in release profiles, but build performance is of the essence
for developer productivity.
  • Loading branch information
Byron committed Aug 28, 2024
1 parent 2df6020 commit c5134f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,8 @@ codegen-units = 1 # Compile crates one after another so the compiler can optimiz
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
debug = true # Enable debug symbols, for profiling

[profile.bench]
codegen-units = 256
lto = false
opt-level = 3

0 comments on commit c5134f9

Please sign in to comment.