2022: bench: criterion 0.4

This commit is contained in:
Antoine Martin 2022-12-06 00:01:28 +01:00
parent 2ca6bce781
commit ed66012752
4 changed files with 136 additions and 33 deletions

View file

@ -10,9 +10,16 @@ edition = "2021"
aoc = { path = "../aoc" }
anyhow = "1.0"
[dev-dependencies]
criterion = { version = "0.4", default-features = false, features = [ "rayon" ] }
[lib]
path = "src/lib.rs"
[[bin]]
name = "aoc2022"
path = "src/main.rs"
[[bench]]
name = "aoc2022_bench"
harness = false

View file

@ -1,17 +0,0 @@
[package]
name = "aoc2022_bench"
version = "0.1.0"
authors = ["Antoine Martin <antoine@alarsyo.net>"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
aoc2022 = { path = "../" }
[dev-dependencies]
criterion = "0.3"
[[bench]]
name = "aoc2022_bench"
harness = false