-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the implementations folder since it is not maintained (#87)
- Loading branch information
Showing
60 changed files
with
289 additions
and
981 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
*.html | ||
.Rhistory | ||
.idea | ||
.vscode | ||
.eclipse-ws | ||
benchmarks.jar | ||
benchmark.data | ||
|
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
#!/bin/bash | ||
set -e | ||
SCRIPT_PATH=`dirname $0` | ||
pushd $SCRIPT_PATH | ||
set -e # make script fail on first error | ||
SCRIPT_PATH="$(dirname "$0")" | ||
source "$SCRIPT_PATH/../script.inc" | ||
|
||
if [[ "$1" = "style" ]] | ||
then | ||
exit 0 | ||
fi | ||
|
||
INFO Build Crystal Benchmarks | ||
pushd "$SCRIPT_PATH" | ||
crystal build --release --no-debug harness.cr |
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,13 @@ | ||
#!/bin/bash | ||
set -e # make script fail on first error | ||
SCRIPT_PATH="$(dirname "$0")" | ||
source "$SCRIPT_PATH/../script.inc" | ||
pushd "$SCRIPT_PATH" | ||
|
||
if [[ "$1" = "style" ]] | ||
then | ||
ant checkstyle-jar && ant checkstyle | ||
else | ||
INFO Build Java Benchmarks | ||
ant jar | ||
fi |
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,14 @@ | ||
#!/bin/bash | ||
set -e # make script fail on first error | ||
SCRIPT_PATH="$(dirname "$0")" | ||
source "$SCRIPT_PATH/../script.inc" | ||
|
||
INFO Build Node.js Benchmarks | ||
if [[ "$1" = "style" ]] | ||
then | ||
INFO Check style of JavaScript benchmarks | ||
pushd "$SCRIPT_PATH" | ||
npx eslint . | ||
else | ||
exit 0 | ||
fi |
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,13 @@ | ||
#!/bin/bash | ||
set -e # make script fail on first error | ||
SCRIPT_PATH="$(dirname "$0")" | ||
source $SCRIPT_PATH/../script.inc | ||
|
||
if [[ "$1" = "style" ]] | ||
then | ||
INFO Check style of Lua benchmarks | ||
pushd "$SCRIPT_PATH" | ||
luacheck ./*.lua | ||
else | ||
exit 0 | ||
fi |
10 changes: 5 additions & 5 deletions
10
implementations/build-python.sh → benchmarks/Python/build.sh
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#!/bin/bash | ||
set -e # make script fail on first error | ||
SCRIPT_PATH=`dirname $0` | ||
source $SCRIPT_PATH/script.inc | ||
SCRIPT_PATH="$(dirname "$0")" | ||
source "$SCRIPT_PATH/../script.inc" | ||
|
||
if [ "$1" = "style" ] | ||
if [[ "$1" = "style" ]] | ||
then | ||
INFO Check style of Python benchmarks | ||
pushd $SCRIPT_PATH/../benchmarks/Python | ||
pushd "$SCRIPT_PATH" | ||
if [[ "$2" != "skip-black-for-python" ]]; then | ||
python -m black --check --diff . | ||
fi | ||
python -m pylint *.py som | ||
python -m pylint ./*.py som | ||
else | ||
exit 0 | ||
fi |
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,11 @@ | ||
#!/bin/bash | ||
set -e # make script fail on first error | ||
SCRIPT_PATH="$(dirname "$0")" | ||
source "$SCRIPT_PATH/../script.inc" | ||
|
||
if [[ "$1" = "style" ]] | ||
then | ||
exit 0 | ||
else | ||
exit 0 | ||
fi |
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,11 @@ | ||
#!/bin/bash | ||
set -e # make script fail on first error | ||
SCRIPT_PATH="$(dirname "$0")" | ||
source "$SCRIPT_PATH/../script.inc" | ||
|
||
if [[ "$1" = "style" ]] | ||
then | ||
exit 0 | ||
else | ||
exit 0 | ||
fi |
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,31 @@ | ||
#!/bin/bash | ||
set -e # make script fail on first error | ||
SCRIPT_PATH="$(dirname "$0")" | ||
source "$SCRIPT_PATH/../script.inc" | ||
|
||
if [[ "$1" = "style" ]] | ||
then | ||
exit 0 | ||
elif [[ "$1" == "squeak" ]] | ||
then | ||
pushd "$SCRIPT_PATH" | ||
if [[ ! -f "Squeak.image" ]] | ||
then | ||
ERR "Squeak.image is needed but not found." | ||
ERR "Please copy a Squeak.image, Squeak.changes and the corresponding *.sources file to this directory." | ||
exit 1 | ||
fi | ||
~/.asdf/installs/awfy/squeak-6.0-22148/bin/squeak -headless Squeak.image build-image-squeak.st | ||
elif [[ "$1" == "pharo" ]] | ||
then | ||
pushd "$SCRIPT_PATH" | ||
if [[ ! -f "Pharo.image" ]] | ||
then | ||
ERR "Pharo.image is needed but not found." | ||
ERR "Please copy a Pharo.image, Pharo.changes and the corresponding *.sources file to this directory." | ||
exit 1 | ||
fi | ||
~/.asdf/installs/awfy/pharo-120/bin/pharo Pharo.image build-image.st | ||
else | ||
exit 0 | ||
fi |
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,53 @@ | ||
#!/bin/bash | ||
|
||
# make SCRIPT_PATH absolute | ||
pushd "$(dirname "$0")" > /dev/null || exit 1 | ||
export SCRIPT_PATH="$(pwd)" | ||
popd > /dev/null || exit 1 | ||
|
||
# set up color commands | ||
if [ -t 1 ] && [ -t 2 ] && [ \( "$(type -t tput)" = "file" \) ]; then | ||
_colors=$(tput colors) | ||
if [ "$_colors" -ge 256 ]; then | ||
INFO () { tput setaf 33; /bin/echo "$@"; tput sgr0; } | ||
OK () { tput setaf 28; /bin/echo "$@"; tput sgr0; } | ||
WARN () { tput setaf 226; /bin/echo "$@"; tput sgr0; } | ||
ERR () { tput setaf 196; /bin/echo "$@"; tput sgr0; } | ||
else | ||
INFO () { tput setaf 4; /bin/echo "$@"; tput sgr0; } | ||
OK () { tput setaf 2; /bin/echo "$@"; tput sgr0; } | ||
WARN () { tput setaf 3; /bin/echo "$@"; tput sgr0; } | ||
ERR () { tput setaf 1; /bin/echo "$@"; tput sgr0; } | ||
fi | ||
else | ||
INFO () { /bin/echo "$@"; } | ||
OK () { /bin/echo "$@"; } | ||
WARN () { /bin/echo "$@"; } | ||
ERR () { /bin/echo "$@"; } | ||
fi | ||
|
||
function load_git_repo() { | ||
INFO Cloning "$1" into "$2" | ||
if [[ -z "$3" ]] | ||
then | ||
git clone --depth=1 "$1" "$2" | ||
else | ||
INFO Using Branch "$3" | ||
git clone --branch="$3" --depth=1 "$1" "$2" | ||
fi | ||
} | ||
|
||
function load_submodule() { | ||
ERR Submodules are not longer used. Please replace the use of "$1" with load_git_repo for the relevant repo and branch. | ||
} | ||
|
||
function check_for() { | ||
if [ ! -x "$(which "$1")" ] | ||
then | ||
ERR "$1 binary not found. $2" | ||
if [ "non-fatal" != "$3" ] | ||
then | ||
exit 1 | ||
fi | ||
fi | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.