annotate bin/verbose_octane.sh @ 708:4706897b4dec

8029467: Widening of booleans causes bad results Reviewed-by: jlaskey, lagergren
author attila
date Mon, 09 Dec 2013 10:52:05 +0100
parents 3a209cbd1d8f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
1 #!/bin/bash
6
5a1b0714df0e 8005663: Update copyright year to 2013
jlaskey
parents: 2
diff changeset
2 # Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
2
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
4 #
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
7 # published by the Free Software Foundation.
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
8 #
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
13 # accompanied this code).
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
14 #
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
18 #
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
20 # or visit www.oracle.com if you need additional information or have any
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
21 # questions.
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
22 #
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
23
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
24 ITERS=$1
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
25 if [ -z $ITERS ]; then
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
26 ITERS=7
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
27 fi
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
28 NASHORN_JAR=dist/nashorn.jar
210
3a209cbd1d8f 8010701: Immutable nodes - final iteration
lagergren
parents: 23
diff changeset
29 JVM_FLAGS="-Djava.ext.dirs=`dirname $0`/../dist:$JAVA_HOME/jre/lib/ext -XX:+UnlockDiagnosticVMOptions -Dnashorn.unstable.relink.threshold=8 -Xms2G -Xmx2G -XX:+TieredCompilation -server -jar ${NASHORN_JAR}"
2
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
30 JVM_FLAGS7="-Xbootclasspath/p:${NASHORN_JAR} ${JVM_FLAGS}"
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
31 OCTANE_ARGS="--verbose --iterations ${ITERS}"
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
32
23
2a4769fcd13f 8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents: 18
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" )
2
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
34 # TODO mandreel.js has metaspace issues
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
35
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
36 if [ ! -z $JAVA7_HOME ]; then
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
37 echo "running ${ITERS} iterations with java7 using JAVA_HOME=${JAVA7_HOME}..."
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
38 for BENCHMARK in "${BENCHMARKS[@]}"
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
39 do
23
2a4769fcd13f 8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents: 18
diff changeset
40 CMD="${JAVA7_HOME}/bin/java ${JVM_FLAGS} test/script/basic/run-octane.js -- test/script/external/octane/${BENCHMARK} ${OCTANE_ARGS}"
2
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
41 $CMD
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
42 done
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
43 else
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
44 echo "no JAVA7_HOME set. skipping java7"
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
45 fi
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
46
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
47 if [ ! -z $JAVA8_HOME ]; then
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
48 echo "running ${ITERS} iterations with java8 using JAVA_HOME=${JAVA8_HOME}..."
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
49 for BENCHMARK in "${BENCHMARKS[@]}"
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
50 do
18
4cd65798ec70 8005940: provide ant targets to get and update external test scripts
sundar
parents: 6
diff changeset
51 CMD="${JAVA8_HOME}/bin/java ${JVM_FLAGS} test/script/basic/run-octane.js -- test/script/external/octane/${BENCHMARK} ${OCTANE_ARGS}"
2
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
52 $CMD
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
53 done
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
54 else
23
2a4769fcd13f 8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents: 18
diff changeset
55 echo "no JAVA8_HOME set."
2
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
56 fi
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
57
da1e581c933b 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
58 echo "Done"