move the benchmarks to another crate so we can download the datasets automatically without adding overhead to the build of milli

This commit is contained in:
tamo
2021-05-25 17:09:14 +02:00
committed by Tamo
parent 3c84075d2d
commit 06c414a753
10 changed files with 154 additions and 55 deletions

29
benchmarks/Cargo.toml Normal file
View File

@ -0,0 +1,29 @@
[package]
name = "benchmarks"
version = "0.1.0"
edition = "2018"
publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
milli = { path = "../milli" }
[dev-dependencies]
heed = "*" # we want to use the version milli uses
criterion = "0.3.4"
[build-dependencies]
anyhow = "1.0"
bytes = "1.0"
flate2 = "1.0.20"
convert_case = "0.4"
reqwest = { version = "0.11.3", features = ["blocking", "rustls-tls"], default-features = false }
[[bench]]
name = "songs"
harness = false
[[bench]]
name = "wiki"
harness = false