From bd2c19db0b7cccb5652a152e0a2da57aebc9fb66 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 28 Aug 2024 08:36:53 +0200 Subject: [PATCH] Allow the `bench` profile to compile faster 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. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 12e39fd63..6e52d9dc7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 \ No newline at end of file