author | vinnie |
Tue, 16 Apr 2013 05:32:39 -0700 | |
changeset 16919 | 5370bde84770 |
parent 16168 | f0c208287983 |
child 17233 | 72ccf78a8216 |
permissions | -rw-r--r-- |
16147 | 1 |
#!/bin/bash |
16151 | 2 |
# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
16147 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
7 |
# published by the Free Software Foundation. |
|
8 |
# |
|
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
# accompanied this code). |
|
14 |
# |
|
15 |
# You should have received a copy of the GNU General Public License version |
|
16 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
# |
|
19 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
# or visit www.oracle.com if you need additional information or have any |
|
21 |
# questions. |
|
22 |
# |
|
23 |
||
24 |
ITERS=$1 |
|
25 |
if [ -z $ITERS ]; then |
|
26 |
ITERS=7 |
|
27 |
fi |
|
28 |
NASHORN_JAR=dist/nashorn.jar |
|
16168
f0c208287983
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
16163
diff
changeset
|
29 |
JVM_FLAGS="-XX:+UnlockDiagnosticVMOptions -Dnashorn.unstable.relink.threshold=8 -Xms2G -Xmx2G -XX:+TieredCompilation -server -jar ${NASHORN_JAR}" |
16147 | 30 |
JVM_FLAGS7="-Xbootclasspath/p:${NASHORN_JAR} ${JVM_FLAGS}" |
31 |
OCTANE_ARGS="--verbose --iterations ${ITERS}" |
|
32 |
||
16168
f0c208287983
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
16163
diff
changeset
|
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" ) |
16147 | 34 |
# TODO mandreel.js has metaspace issues |
35 |
||
36 |
if [ ! -z $JAVA7_HOME ]; then |
|
37 |
echo "running ${ITERS} iterations with java7 using JAVA_HOME=${JAVA7_HOME}..." |
|
38 |
for BENCHMARK in "${BENCHMARKS[@]}" |
|
39 |
do |
|
16168
f0c208287983
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
16163
diff
changeset
|
40 |
CMD="${JAVA7_HOME}/bin/java ${JVM_FLAGS} test/script/basic/run-octane.js -- test/script/external/octane/${BENCHMARK} ${OCTANE_ARGS}" |
16147 | 41 |
$CMD |
42 |
done |
|
43 |
else |
|
44 |
echo "no JAVA7_HOME set. skipping java7" |
|
45 |
fi |
|
46 |
||
47 |
if [ ! -z $JAVA8_HOME ]; then |
|
48 |
echo "running ${ITERS} iterations with java8 using JAVA_HOME=${JAVA8_HOME}..." |
|
49 |
for BENCHMARK in "${BENCHMARKS[@]}" |
|
50 |
do |
|
16163
71f4cff209a9
8005940: provide ant targets to get and update external test scripts
sundar
parents:
16151
diff
changeset
|
51 |
CMD="${JAVA8_HOME}/bin/java ${JVM_FLAGS} test/script/basic/run-octane.js -- test/script/external/octane/${BENCHMARK} ${OCTANE_ARGS}" |
16147 | 52 |
$CMD |
53 |
done |
|
54 |
else |
|
16168
f0c208287983
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
16163
diff
changeset
|
55 |
echo "no JAVA8_HOME set." |
16147 | 56 |
fi |
57 |
||
58 |
echo "Done" |