mirror of
https://github.com/dnlbauer/xdrfile.git
synced 2026-09-10 14:15:31 +00:00
21 lines
566 B
Bash
Executable File
21 lines
566 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Clone the repository
|
|
REMOTE_URL="$(git config --get remote.origin.url)";
|
|
cd ${TRAVIS_BUILD_DIR}/.. && \
|
|
git clone ${REMOTE_URL} "${TRAVIS_REPO_SLUG}-bench" && \
|
|
cd "${TRAVIS_REPO_SLUG}-bench" && \
|
|
|
|
# Bench master
|
|
git checkout master && \
|
|
cargo bench -- --noplot --save-baseline before && \
|
|
|
|
# Bench current branch
|
|
git checkout ${TRAVIS_COMMIT} && \
|
|
cargo bench -- --noplot --save-baseline after && \
|
|
|
|
# Install https://github.com/BurntSushi/critcmp
|
|
cargo install critcmp --force && \
|
|
|
|
# Compare the two generated benches
|
|
critcmp before after; |