Add a benchmark for CIDR parsing

Also optimise the cidr_parts implementation
This commit is contained in:
Abhishek Chanda
2019-02-02 21:43:27 +00:00
parent aff0419a75
commit a19f24a9c6
3 changed files with 41 additions and 8 deletions

View File

@ -17,6 +17,7 @@ serde = ">=0.8.0, <2.0"
[dev-dependencies]
serde_json = "1.0"
serde_derive = ">=0.8.0, <2.0"
criterion = "0.2.9"
[badges]
travis-ci = { repository = "achanda/ipnetwork" }
@ -24,3 +25,7 @@ travis-ci = { repository = "achanda/ipnetwork" }
[features]
default = []
dev = ["clippy"]
[[bench]]
name = "parse_bench"
harness = false