Add criterion benchmarking

zoom zoom
This commit is contained in:
2025-12-02 22:04:05 -05:00
parent 952a851b41
commit e490bc99f5
6 changed files with 496 additions and 4 deletions

View File

@@ -10,8 +10,21 @@ tracing-error = "0.2"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
[dev-dependencies]
test-log = {version = "0.2", default-features = false, features = ["trace"]}
criterion = "0.5.1"
test-log = { version = "0.2", default-features = false, features = ["trace"] }
# Improve perf on debug builds: https://docs.rs/color-eyre/latest/color_eyre/#improving-perf-on-debug-builds
[profile.dev.package.backtrace]
opt-level = 3
[lib]
name = "aoc"
path = "src/lib.rs"
[[bin]]
name = "aoc_bin"
path = "src/main.rs"
[[bench]]
name = "aoc"
harness = false