aquatic_http: add criterion benchmarks for request from path parsing

About 35% improvement by using both memchr methods
This commit is contained in:
Joakim Frostegård 2020-07-19 01:58:41 +02:00
parent 9b0956cc91
commit a8e355f22a
17 changed files with 2441 additions and 5 deletions

View file

@ -13,6 +13,11 @@ path = "src/lib/lib.rs"
name = "aquatic_http"
path = "src/bin/main.rs"
[[bench]]
name = "bench_request_from_path"
path = "benches/bench_request_from_path.rs"
harness = false
[dependencies]
anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
@ -37,5 +42,6 @@ serde = { version = "1", features = ["derive"] }
simplelog = "0.8"
[dev-dependencies]
criterion = "0.3"
quickcheck = "0.9"
quickcheck_macros = "0.9"