diff --git a/Cargo.toml b/Cargo.toml index ef775c6..c611915 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,8 @@ edition = "2024" [dev-dependencies] criterion = { version = "0.7", features = ["html_reports"] } +[build] +rustflags = ["-C", "target-cpu=native"] [[bench]] name = "bench_aoc_1" @@ -16,5 +18,12 @@ harness = false [[bench]] name = "bench_aoc_3" harness = false +[[bench]] +name = "bench_aoc_4" +harness = false [dependencies] -strength_reduce = "0.2.4" \ No newline at end of file +[profile.bench] +opt-level = 3 +lto = "fat" # "Link Time Optimization" - Critical for micro-benchmarks +codegen-units = 1 # Slows compile time, but makes faster code +panic = "abort" # Removes stack unwinding checks (faster) diff --git a/src/lib.rs b/src/lib.rs index 69f930e..1f98310 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1 +1,2 @@ +#![feature(portable_simd)] pub mod aoc;