This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(benchmark): allow running between two commits (#52)
- Loading branch information
Showing
12 changed files
with
126 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
BEFORE="${1}"; | ||
AFTER="${2}"; | ||
|
||
if [[ $# -ne 2 ]] ; then | ||
echo 'requires two arguments: before and after sha or tags' | ||
exit 1 | ||
fi | ||
|
||
if [[ -n $(git status -s) ]]; then | ||
echo 'Please commit your changes before running this script.' | ||
exit 1 | ||
fi | ||
|
||
git checkout "$BEFORE"; | ||
RUN_NAME=$BEFORE npm run benchmark:format; | ||
git checkout "$AFTER"; | ||
RUN_NAME=$AFTER npm run benchmark:format; | ||
BEFORE="$BEFORE" AFTER="$AFTER" npm run benchmark:compare; |