nashorn/bin/verbose_octane.sh
changeset 16168 f0c208287983
parent 16163 71f4cff209a9
child 17233 72ccf78a8216
equal deleted inserted replaced
16167:d99db3541813 16168:f0c208287983
    24 ITERS=$1
    24 ITERS=$1
    25 if [ -z $ITERS ]; then 
    25 if [ -z $ITERS ]; then 
    26     ITERS=7
    26     ITERS=7
    27 fi
    27 fi
    28 NASHORN_JAR=dist/nashorn.jar
    28 NASHORN_JAR=dist/nashorn.jar
    29 JVM_FLAGS="-XX:+UnlockDiagnosticVMOptions -Dnashorn.unstable.relink.threshold=8 -Xms2G -Xmx2G -XX:-TieredCompilation -server -jar ${NASHORN_JAR}"
    29 JVM_FLAGS="-XX:+UnlockDiagnosticVMOptions -Dnashorn.unstable.relink.threshold=8 -Xms2G -Xmx2G -XX:+TieredCompilation -server -jar ${NASHORN_JAR}"
    30 JVM_FLAGS7="-Xbootclasspath/p:${NASHORN_JAR} ${JVM_FLAGS}"
    30 JVM_FLAGS7="-Xbootclasspath/p:${NASHORN_JAR} ${JVM_FLAGS}"
    31 OCTANE_ARGS="--verbose --iterations ${ITERS}"
    31 OCTANE_ARGS="--verbose --iterations ${ITERS}"
    32 
    32 
    33 BENCHMARKS=( "box2d.js" "code-load.js" "crypto.js" "deltablue.js" "earley-boyer.js" "gbemu.js" "navier-stokes.js" "raytrace.js" "regexp.js" "richards.js" "splay.js" )
    33 BENCHMARKS=( "box2d.js" "code-load.js" "crypto.js" "deltablue.js" "earley-boyer.js" "gbemu.js" "navier-stokes.js" "pdfjs.js" "raytrace.js" "regexp.js" "richards.js" "splay.js" )
    34 # TODO mandreel.js has metaspace issues
    34 # TODO mandreel.js has metaspace issues
    35 
    35 
    36 if [ ! -z $JAVA7_HOME ]; then	
    36 if [ ! -z $JAVA7_HOME ]; then	
    37     echo "running ${ITERS} iterations with java7 using JAVA_HOME=${JAVA7_HOME}..."
    37     echo "running ${ITERS} iterations with java7 using JAVA_HOME=${JAVA7_HOME}..."
    38     for BENCHMARK in "${BENCHMARKS[@]}"
    38     for BENCHMARK in "${BENCHMARKS[@]}"
    39     do 
    39     do 
    40 	CMD="${JAVA8_HOME}/bin/java ${JVM_FLAGS} test/script/basic/run-octane.js -- test/script/external/octane/${BENCHMARK} ${OCTANE_ARGS}"
    40 	CMD="${JAVA7_HOME}/bin/java ${JVM_FLAGS} test/script/basic/run-octane.js -- test/script/external/octane/${BENCHMARK} ${OCTANE_ARGS}"
    41 	$CMD
    41 	$CMD
    42     done
    42     done
    43 else
    43 else
    44     echo "no JAVA7_HOME set. skipping java7"
    44     echo "no JAVA7_HOME set. skipping java7"
    45 fi
    45 fi
    50     do 
    50     do 
    51 	CMD="${JAVA8_HOME}/bin/java ${JVM_FLAGS} test/script/basic/run-octane.js -- test/script/external/octane/${BENCHMARK} ${OCTANE_ARGS}"
    51 	CMD="${JAVA8_HOME}/bin/java ${JVM_FLAGS} test/script/basic/run-octane.js -- test/script/external/octane/${BENCHMARK} ${OCTANE_ARGS}"
    52 	$CMD
    52 	$CMD
    53     done
    53     done
    54 else 
    54 else 
    55     echo "no JAVA8_HOME set"
    55     echo "no JAVA8_HOME set."
    56 fi
    56 fi
    57 
    57 
    58 echo "Done"
    58 echo "Done"