Merge pull request #212 from TheBlueMatt/2019-01-travis-nightly-bench

Run cargo bench on rustc nightly in travis
This commit is contained in:
Carl Dong 2019-01-23 19:25:44 -05:00 committed by GitHub
commit b6ec6a0d62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -19,3 +19,4 @@ script:
- cargo build --verbose --features=serde-decimal - cargo build --verbose --features=serde-decimal
- cargo test --verbose --features=serde-decimal - cargo test --verbose --features=serde-decimal
- if [ "$(rustup show | grep default | grep stable)" != "" ]; then cd fuzz && cargo test --verbose && ./travis-fuzz.sh; fi - if [ "$(rustup show | grep default | grep stable)" != "" ]; then cd fuzz && cargo test --verbose && ./travis-fuzz.sh; fi
- if [ "$(rustup show | grep default | grep nightly)" != "" ]; then cargo bench --features unstable; fi

View File

@ -130,7 +130,7 @@ mod benches {
assert_eq!(hex_bytes(&data).unwrap(), data_bytes); assert_eq!(hex_bytes(&data).unwrap(), data_bytes);
b.iter(move || { b.iter(|| {
hex_bytes(&data).unwrap() hex_bytes(&data).unwrap()
}) })
} }