mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_http: add criterion benchmarks for request from path parsing
About 35% improvement by using both memchr methods
This commit is contained in:
parent
9b0956cc91
commit
a8e355f22a
17 changed files with 2441 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue