Skip to content

Commit

Permalink
Use Criterion for benchmarks.
Browse files Browse the repository at this point in the history
Criterion can be run on stable rust and provides much more reliable
analysis. It also provides a comvenient method for comparing benchmarks
between different baselines using --save-baseline and --baseline.
  • Loading branch information
ggriffiniii committed Nov 20, 2018
1 parent afe39ed commit c26a1af
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 270 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ keywords = ["base64", "utf8", "encode", "decode"]
categories = ["encoding"]
license = "MIT/Apache-2.0"

[[bench]]
name = "benchmarks"
harness = false

[dependencies]
byteorder = "1.2.6"

[dev-dependencies]
criterion = "0.2"
rand = "0.5.5"

[profile.bench]
Expand Down

0 comments on commit c26a1af

Please sign in to comment.