Skip to content

Commit cb362f6

Browse files
bors[bot]orium
andauthored
Merge #396
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 <[email protected]>
2 parents 43bbade + d1497bc commit cb362f6

14 files changed

+820
-642
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ language: rust
22
sudo: false
33
matrix:
44
include:
5-
- rust: 1.24.0
5+
- rust: 1.32.0
66
- rust: stable
77
- rust: beta
88
- rust: nightly
9-
env:
10-
- BENCH=1
119
branches:
1210
only:
1311
- master
@@ -19,4 +17,4 @@ script:
1917
cargo build --verbose --no-default-features &&
2018
cargo build --verbose --features "$FEATURES" &&
2119
cargo test --verbose --features "$FEATURES" &&
22-
([ "$BENCH" != 1 ] || cargo bench --verbose --features "$FEATURES")
20+
cargo bench --verbose --features "$FEATURES"

Cargo.toml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ test = false
2424
either = { version = "1.0", default-features = false }
2525

2626
[dev-dependencies]
27-
rand = "0.6"
27+
rand = "0.7"
28+
criterion = "0.3"
2829

2930
[dev-dependencies.quickcheck]
30-
version = "0.7"
31+
version = "0.9"
3132
default-features = false
3233

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

4041
[profile]
4142
bench = { debug = true }
43+
44+
[[bench]]
45+
name = "tuple_combinations"
46+
harness = false
47+
48+
[[bench]]
49+
name = "tuples"
50+
harness = false
51+
52+
[[bench]]
53+
name = "fold_specialization"
54+
harness = false
55+
56+
[[bench]]
57+
name = "combinations_with_replacement"
58+
harness = false
59+
60+
[[bench]]
61+
name = "tree_fold1"
62+
harness = false
63+
64+
[[bench]]
65+
name = "bench1"
66+
harness = false

0 commit comments

Comments
 (0)