diff --git a/benchmark/src/main/java/moobench/benchmark/BenchmarkMain.java b/benchmark/src/main/java/moobench/benchmark/BenchmarkMain.java index e1c5a86002f9a306757eef98717ff55cec277735..a0d7b4dc982ba61a23b710239c5eadcf6d897d9b 100644 --- a/benchmark/src/main/java/moobench/benchmark/BenchmarkMain.java +++ b/benchmark/src/main/java/moobench/benchmark/BenchmarkMain.java @@ -148,6 +148,7 @@ public final class BenchmarkMain { commander.usage(); } System.out.println(ex.toString()); // NOPMD (Stacktrace) + ex.printStackTrace(); System.exit(-1); } } diff --git a/frameworks/SPASSmeter/benchmark.sh b/frameworks/SPASSmeter/benchmark.sh index d7fdb643a7498aa381604e65be7cee03f9a7450c..ffe5fa9b726b179b39231d978ed45d85c413c892 100755 --- a/frameworks/SPASSmeter/benchmark.sh +++ b/frameworks/SPASSmeter/benchmark.sh @@ -15,7 +15,7 @@ TOTALCALLS=2000000 ## 2000000 METHODTIME=0 ## 500000 #MOREPARAMS="--quickstart" -MOREPARAMS="--application mooBench.monitoredApplication.MonitoredClassSimple ${MOREPARAMS}" +MOREPARAMS="--application moobench.application.MonitoredClassSimple ${MOREPARAMS}" TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." @@ -31,7 +31,7 @@ touch ${BASEDIR}spassmeter.log RAWFN="${RESULTSDIR}raw" JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" +JAVAARGS="${JAVAARGS} " JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" #JAVAARGS="${JAVAARGS} -XX:+PrintInlining" @@ -73,10 +73,10 @@ for ((i=1;i<=${NUM_LOOPS};i+=1)); do #sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ + --total-calls ${TOTALCALLS} \ + --method-time ${METHODTIME} \ + --total-threads ${THREADS} \ + --recursion-depth ${j} \ ${MOREPARAMS} #kill %sar [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log @@ -92,10 +92,10 @@ for ((i=1;i<=${NUM_LOOPS};i+=1)); do #sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & ${JAVABIN}java ${JAVAARGS_LTW} ${JAR} \ --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ + --total-calls ${TOTALCALLS} \ + --method-time ${METHODTIME} \ + --total-threads ${THREADS} \ + --recursion-depth ${j} \ ${MOREPARAMS} #kill %sar [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log @@ -111,10 +111,10 @@ for ((i=1;i<=${NUM_LOOPS};i+=1)); do #sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & ${JAVABIN}java ${JAVAARGS_LTW_ASM} ${JAR} \ --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ + --total-calls ${TOTALCALLS} \ + --method-time ${METHODTIME} \ + --total-threads ${THREADS} \ + --recursion-depth ${j} \ ${MOREPARAMS} #kill %sar [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log