Skip to content

Commit

Permalink
Merge #396
Browse files Browse the repository at this point in the history
396: Use criterion for benchmarking r=jswrenn a=orium

Not only is it a better benchmark tool, it also avoids depending on nightly rustc.

Co-authored-by: Diogo Sousa <diogogsousa@gmail.com>
  • Loading branch information
bors[bot] and orium committed Jan 15, 2020
2 parents 43bbade + d1497bc commit cb362f6
Show file tree
Hide file tree
Showing 14 changed files with 820 additions and 642 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Expand Up @@ -2,12 +2,10 @@ language: rust
sudo: false
matrix:
include:
- rust: 1.24.0
- rust: 1.32.0
- rust: stable
- rust: beta
- rust: nightly
env:
- BENCH=1
branches:
only:
- master
Expand All @@ -19,4 +17,4 @@ script:
cargo build --verbose --no-default-features &&
cargo build --verbose --features "$FEATURES" &&
cargo test --verbose --features "$FEATURES" &&
([ "$BENCH" != 1 ] || cargo bench --verbose --features "$FEATURES")
cargo bench --verbose --features "$FEATURES"
29 changes: 27 additions & 2 deletions Cargo.toml
Expand Up @@ -24,10 +24,11 @@ test = false
either = { version = "1.0", default-features = false }

[dev-dependencies]
rand = "0.6"
rand = "0.7"
criterion = "0.3"

[dev-dependencies.quickcheck]
version = "0.7"
version = "0.9"
default-features = false

[dev-dependencies.permutohedron]
Expand All @@ -39,3 +40,27 @@ use_std = []

[profile]
bench = { debug = true }

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

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

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

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

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

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

0 comments on commit cb362f6

Please sign in to comment.