forked from rust-bakery/nom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this moves the jemallocator and criterion dependencies to that crate, which will prevent further issues with MSRV in dependencies, and removes 75 dependencies from test builds
- Loading branch information
Showing
10 changed files
with
56 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[package] | ||
name = "benchmarks" | ||
version = "0.1.0" | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
criterion = "0.3.5" | ||
jemallocator = "0.3.2" | ||
nom = { path = "../" } | ||
|
||
[lib] | ||
bench = false | ||
|
||
[[bench]] | ||
name = "arithmetic" | ||
path = "benches/arithmetic.rs" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "number" | ||
path = "benches/number.rs" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "http" | ||
path = "benches/http.rs" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "ini" | ||
path = "benches/ini.rs" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "ini_str" | ||
path = "benches/ini_str.rs" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "json" | ||
path = "benches/json.rs" | ||
harness = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Benchmarks for nom parsers |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#[cfg(test)] | ||
mod tests { | ||
#[test] | ||
fn it_works() { | ||
let result = 2 + 2; | ||
assert_eq!(result, 4); | ||
} | ||
} |