Last active
July 26, 2019 12:51
-
-
Save hgomez/4637771 to your computer and use it in GitHub Desktop.
dacapobench script
This file contains hidden or 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
| #!/bin/sh | |
| # | |
| # Purpose : launch dacapo 9.12-MR1 benchmarks | |
| # | |
| DACAPO_VERSION=9.12-MR1 | |
| DACAPO_DOWNLOAD_URL=https://sourceforge.net/projects/dacapobench/files/9.12-bach-MR1/dacapo-9.12-MR1-bach.jar | |
| DACAPO_JAR=dacapo-${DACAPO_VERSION}-bach.jar | |
| if [ ! -z "$WORKSPACE" ]; then | |
| BASE_DIR=$WORKSPACE | |
| else | |
| BASE_DIR=`dirname $0` | |
| fi | |
| if [ ! -f $BASE_DIR/dacapo-${DACAPO_VERSION}-bach.jar ]; then | |
| echo "Downloading dacapo-${DACAPO_VERSION} bench..." | |
| curl -s -L ${DACAPO_DOWNLOAD_URL} -o $BASE_DIR/${DACAPO_JAR} | |
| fi | |
| benchme() { | |
| local COUNT=$1 | |
| local BENCH=$2 | |
| rm -f dacapo-bench-$BENCH.log | |
| echo "benching dacapo-${DACAPO_VERSION} - $BENCH - $COUNT iterations at `date`" | |
| java $JAVA_OPTS -jar $BASE_DIR/${DACAPO_JAR} -n $COUNT $BENCH >>dacapo-bench-$BENCH.log 2>&1 | |
| cat dacapo-bench-$BENCH.log | grep PASSED | |
| } | |
| benchme 10 avrora | |
| benchme 2 eclipse | |
| benchme 10 fop | |
| benchme 2 h2 | |
| benchme 2 jython | |
| benchme 10 luindex | |
| benchme 10 lusearch | |
| benchme 10 pmd | |
| benchme 10 sunflow | |
| benchme 5 tomcat | |
| benchme 5 tradebeans | |
| benchme 5 tradesoap | |
| benchme 10 xalan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment