make/build-benchmark.xml

changeset 3
da1e581c933b
child 7
5a1b0714df0e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/make/build-benchmark.xml	Fri Dec 21 16:36:24 2012 -0400
     1.3 @@ -0,0 +1,348 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!--
     1.6 + Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7 + DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8 + 
     1.9 + This code is free software; you can redistribute it and/or modify it
    1.10 + under the terms of the GNU General Public License version 2 only, as
    1.11 + published by the Free Software Foundation.
    1.12 + 
    1.13 + This code is distributed in the hope that it will be useful, but WITHOUT
    1.14 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.15 + FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.16 + version 2 for more details (a copy is included in the LICENSE file that
    1.17 + accompanied this code).
    1.18 + 
    1.19 + You should have received a copy of the GNU General Public License version
    1.20 + 2 along with this work; if not, write to the Free Software Foundation,
    1.21 + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.22 + 
    1.23 + Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    1.24 + or visit www.oracle.com if you need additional information or have any
    1.25 + questions.
    1.26 +-->
    1.27 +<project name="nashorn-benchmarks" default="all" basedir="..">
    1.28 +
    1.29 +  <target name="octane-init" depends="jar">
    1.30 +    <fileset id="octane-set"
    1.31 +	     dir="${octane-test-sys-prop.test.js.roots}"
    1.32 +	     excludes="${octane-test-sys-prop.test.js.exclude.list}">
    1.33 +      <include name="**/*.js"/>
    1.34 +    </fileset>
    1.35 +    <pathconvert pathsep=" " property="octane-tests" refid="octane-set"/>
    1.36 +    <property name="extra-arg" value=""/>
    1.37 +  </target>
    1.38 +
    1.39 +  <!-- box2d -->
    1.40 +  <target name="box2d-init">
    1.41 +    <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/box2d.js"/>
    1.42 +  </target>
    1.43 +
    1.44 +  <target name="octane-box2d" depends="jar, box2d-init, octane-verbose">
    1.45 +    <antcall target="run-octane"/>
    1.46 +  </target>
    1.47 +
    1.48 +  <target name="octane-box2d-v8" depends="jar, box2d-init, octane-verbose">
    1.49 +    <antcall target="run-octane-v8"/>
    1.50 +  </target>
    1.51 +
    1.52 +  <target name="octane-box2d-rhino" depends="jar, box2d-init, octane-verbose">
    1.53 +    <antcall target="run-octane-rhino"/>
    1.54 +  </target>
    1.55 +
    1.56 +  <!-- code-load -->  
    1.57 +  <target name="code-load-init">
    1.58 +    <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/code-load.js"/>
    1.59 +  </target>
    1.60 +
    1.61 +  <target name="octane-code-load" depends="jar, code-load-init, octane-verbose">
    1.62 +    <antcall target="run-octane"/>
    1.63 +  </target>
    1.64 +
    1.65 +  <target name="octane-code-load-v8" depends="jar, code-load-init, octane-verbose">
    1.66 +    <antcall target="run-octane-v8"/>
    1.67 +  </target>
    1.68 +
    1.69 +  <target name="octane-code-load-rhino" depends="jar, code-load-init, octane-verbose">
    1.70 +    <antcall target="run-octane-rhino"/>
    1.71 +  </target>
    1.72 +
    1.73 +  <!-- crypto -->
    1.74 +  <target name="crypto-init">
    1.75 +    <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/crypto.js"/>
    1.76 +  </target>
    1.77 +
    1.78 +  <target name="octane-crypto" depends="jar, crypto-init, octane-verbose">
    1.79 +    <antcall target="run-octane"/>
    1.80 +  </target>
    1.81 +
    1.82 +  <target name="octane-crypto-v8" depends="jar, crypto-init, octane-verbose">
    1.83 +    <antcall target="run-octane-v8"/>
    1.84 +  </target>
    1.85 +
    1.86 +  <target name="octane-crypto-rhino" depends="jar, crypto-init, octane-verbose">
    1.87 +    <antcall target="run-octane-rhino"/>
    1.88 +  </target>
    1.89 +
    1.90 +  <!-- deltablue -->
    1.91 +  <target name="deltablue-init">
    1.92 +    <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/deltablue.js"/>
    1.93 +  </target>
    1.94 +
    1.95 +  <target name="octane-deltablue" depends="jar, deltablue-init, octane-verbose">
    1.96 +    <antcall target="run-octane"/>
    1.97 +  </target>
    1.98 +
    1.99 +  <target name="octane-deltablue-v8" depends="jar, deltablue-init, octane-verbose">
   1.100 +    <antcall target="run-octane-v8"/>
   1.101 +  </target>
   1.102 +
   1.103 +  <target name="octane-deltablue-rhino" depends="jar, deltablue-init, octane-verbose">
   1.104 +    <antcall target="run-octane-rhino"/>
   1.105 +  </target>
   1.106 +
   1.107 +  <!-- earley-boyer -->
   1.108 +  <target name="earley-boyer-init">
   1.109 +    <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/earley-boyer.js"/>
   1.110 +  </target>
   1.111 +
   1.112 +  <target name="octane-earley-boyer" depends="jar, earley-boyer-init, octane-verbose">
   1.113 +    <antcall target="run-octane"/>
   1.114 +  </target>
   1.115 +
   1.116 +  <target name="octane-earley-boyer-v8" depends="jar, earley-boyer-init, octane-verbose">
   1.117 +    <antcall target="run-octane-v8"/>
   1.118 +  </target>
   1.119 +
   1.120 +  <target name="octane-earley-boyer-rhino" depends="jar, earley-boyer-init, octane-verbose">
   1.121 +    <antcall target="run-octane-rhino"/>
   1.122 +  </target>
   1.123 +
   1.124 +  <!-- gbemu -->  
   1.125 +  <target name="gbemu-init">
   1.126 +    <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/gbemu.js"/>
   1.127 +  </target>
   1.128 +
   1.129 +  <target name="octane-gbemu" depends="jar, gbemu-init, octane-verbose">
   1.130 +    <antcall target="run-octane"/>
   1.131 +  </target>
   1.132 +
   1.133 +  <target name="octane-gbemu-v8" depends="jar, gbemu-init, octane-verbose">
   1.134 +    <antcall target="run-octane-v8"/>
   1.135 +  </target>
   1.136 +
   1.137 +  <target name="octane-gbemu-rhino" depends="jar, gbemu-init, octane-verbose">
   1.138 +    <antcall target="run-octane-rhino"/>
   1.139 +  </target>
   1.140 +
   1.141 +  <!-- navier-stokes -->
   1.142 +  <target name="navier-stokes-init">
   1.143 +    <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/navier-stokes.js"/>
   1.144 +  </target>
   1.145 +
   1.146 +  <target name="octane-navier-stokes" depends="jar, navier-stokes-init, octane-verbose">
   1.147 +    <antcall target="run-octane"/>
   1.148 +  </target>
   1.149 +
   1.150 +  <target name="octane-navier-stokes-v8" depends="jar, navier-stokes-init, octane-verbose">
   1.151 +    <antcall target="run-octane-v8"/>
   1.152 +  </target>
   1.153 +
   1.154 +  <target name="octane-navier-stokes-rhino" depends="jar, navier-stokes-init, octane-verbose">
   1.155 +    <antcall target="run-octane-rhino"/>
   1.156 +  </target>
   1.157 +
   1.158 +  <!-- pdfjs -->  
   1.159 +  <target name="pdfjs-init">
   1.160 +    <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/pdfjs.js"/>
   1.161 +  </target>
   1.162 +
   1.163 +  <target name="octane-pdfjs" depends="jar, pdfjs-init, octane-verbose">
   1.164 +    <antcall target="run-octane"/>
   1.165 +  </target>
   1.166 +
   1.167 +  <target name="octane-pdfjs-v8" depends="jar, pdfjs-init, octane-verbose">
   1.168 +    <antcall target="run-octane-v8"/>
   1.169 +  </target>
   1.170 +
   1.171 +  <target name="octane-pdfjs-rhino" depends="jar, pdfjs-init, octane-verbose">
   1.172 +    <antcall target="run-octane-rhino"/>
   1.173 +  </target>
   1.174 +
   1.175 +  <!-- raytrace -->
   1.176 +  <target name="raytrace-init">
   1.177 +    <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/raytrace.js"/>
   1.178 +  </target>
   1.179 +
   1.180 +  <target name="octane-raytrace" depends="jar, raytrace-init, octane-verbose">
   1.181 +    <antcall target="run-octane"/>
   1.182 +  </target>
   1.183 +
   1.184 +  <target name="octane-raytrace-v8" depends="jar, raytrace-init, octane-verbose">
   1.185 +    <antcall target="run-octane-v8"/>
   1.186 +  </target>
   1.187 +
   1.188 +  <target name="octane-raytrace-rhino" depends="jar, raytrace-init, octane-verbose">
   1.189 +    <antcall target="run-octane-rhino"/>
   1.190 +  </target>
   1.191 +
   1.192 +  <!-- regexp -->
   1.193 +  <target name="regexp-init">
   1.194 +    <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/regexp.js"/>
   1.195 +  </target>
   1.196 +
   1.197 +  <target name="octane-regexp" depends="jar, regexp-init, octane-verbose">
   1.198 +    <antcall target="run-octane"/>
   1.199 +  </target>
   1.200 +
   1.201 +  <target name="octane-regexp-octane-v8" depends="jar, regexp-init, octane-verbose">
   1.202 +    <antcall target="run-octane-v8"/>
   1.203 +  </target>
   1.204 +
   1.205 +  <target name="octane-regexp-rhino" depends="jar, regexp-init, octane-verbose">
   1.206 +    <antcall target="run-octane-rhino"/>
   1.207 +  </target>
   1.208 +
   1.209 +
   1.210 +  <!-- splay -->
   1.211 +  <target name="splay-init">
   1.212 +    <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/splay.js"/>
   1.213 +  </target>
   1.214 +
   1.215 +  <target name="octane-splay" depends="jar, splay-init, octane-verbose">
   1.216 +    <antcall target="run-octane"/>
   1.217 +  </target>
   1.218 +
   1.219 +  <target name="octane-splay-v8" depends="jar, splay-init, octane-verbose">
   1.220 +    <antcall target="run-octane-v8"/>
   1.221 +  </target>
   1.222 +
   1.223 +  <target name="octane-splay-rhino" depends="jar, splay-init, octane-verbose">
   1.224 +    <antcall target="run-octane-rhino"/>
   1.225 +  </target>
   1.226 +
   1.227 +  <target name="octane-verbose">
   1.228 +    <property name="extra-arg" value="--verbose"/>
   1.229 +  </target>
   1.230 +
   1.231 +  <!-- run octane benchmarks using Nashorn as runtime -->
   1.232 +  <target name="octane" depends="octane-init">
   1.233 +    <antcall target="run-octane"/>
   1.234 +  </target>
   1.235 +
   1.236 +  <!-- run octane benchmarks using octane as runtime -->
   1.237 +  <target name="octane-v8" depends="octane-init">
   1.238 +    <antcall target="run-octane-v8"/>
   1.239 +  </target>
   1.240 +
   1.241 +  <!-- run octane benchmarks using Rhino as runtime -->
   1.242 +  <target name="octane-rhino" depends="octane-init">
   1.243 +    <antcall target="run-octane-rhino"/>
   1.244 +  </target>
   1.245 +  
   1.246 +  <target name="run-octane">
   1.247 +    <java classname="${nashorn.shell.tool}"
   1.248 +          classpath="${run.test.classpath}"
   1.249 +          fork="true"
   1.250 +          dir=".">
   1.251 +      <jvmarg line="${boot.class.path}"/>
   1.252 +      <jvmarg line="${ext.class.path}"/>
   1.253 +      <jvmarg line="${run.test.jvmargs.octane}"/>
   1.254 +      <arg value="${octane-test-sys-prop.test.js.framework}"/>
   1.255 +      <arg value="--"/>
   1.256 +      <arg value="${octane-tests}"/>
   1.257 +      <arg value="--runtime"/>
   1.258 +      <arg value="Nashorn"/>
   1.259 +      <arg value="--verbose"/>
   1.260 +      <arg value="--iterations 8"/>
   1.261 +      <arg value="${extra-arg}"/>
   1.262 +    </java>
   1.263 +  </target>
   1.264 +
   1.265 +  <target name="run-octane-v8">
   1.266 +    <exec executable="${v8.shell}">
   1.267 +      <arg value="${octane-test-sys-prop.test.js.framework}"/>
   1.268 +      <arg value="--"/>
   1.269 +      <arg value="${octane-tests}"/>      
   1.270 +      <arg value="--runtime"/>
   1.271 +      <arg value="v8"/>
   1.272 +      <arg value="--verbose"/>
   1.273 +      <arg value="--iterations 8"/>
   1.274 +      <arg value="${extra-arg}"/>
   1.275 +    </exec>
   1.276 +  </target>
   1.277 +
   1.278 +  <target name="run-octane-rhino">
   1.279 +    <java jar="${rhino.jar}"
   1.280 +          classpath="${run.test.classpath}"
   1.281 +          fork="true"
   1.282 +          dir=".">
   1.283 +      <jvmarg line="${boot.class.path}"/>
   1.284 +      <jvmarg line="${run.test.jvmargs.octane}"/>
   1.285 +      <arg value="${octane-test-sys-prop.test.js.framework}"/>
   1.286 +      <arg value="${octane-tests}"/>
   1.287 +      <arg value="--runtime"/>
   1.288 +      <arg value="Rhino"/>
   1.289 +      <arg value="--verbose"/>
   1.290 +      <arg value="--iterations 8"/>
   1.291 +      <arg value="${extra-arg}"/>
   1.292 +    </java>
   1.293 +  </target>
   1.294 +
   1.295 +  <!-- run octane with all known runtimes for comparison -->
   1.296 +  <target name="octane-all" depends="octane, octane-v8, octane-rhino">
   1.297 +    <exec executable="${v8.shell}">
   1.298 +      <arg value="${octane-test-sys-prop.test.js.framework}"/>
   1.299 +      <arg value="${octane-tests}/"/>
   1.300 +    </exec>
   1.301 +  </target>
   1.302 +   
   1.303 +  <target name="sunspider-init" depends="jar">
   1.304 +    <fileset id="sunspider-set"
   1.305 +	     dir="${sunspider-test-sys-prop.test.js.roots}"
   1.306 +	     excludes="${sunspider-test-sys-prop.test.js.exclude.list}">
   1.307 +      <include name="**/*.js"/>
   1.308 +    </fileset>
   1.309 +    <pathconvert pathsep=" " property="sunspider-tests" refid="sunspider-set"/>
   1.310 +  </target>
   1.311 +
   1.312 +  <!-- run sunspider with Nashorn -->
   1.313 +  <target name="sunspider" depends="sunspider-init">
   1.314 +    <java classname="${nashorn.shell.tool}"
   1.315 +          classpath="${run.test.classpath}"
   1.316 +          fork="true"
   1.317 +          dir=".">
   1.318 +      <jvmarg line="${boot.class.path}"/>
   1.319 +      <jvmarg line="${ext.class.path}"/>
   1.320 +      <jvmarg line="${run.test.jvmargs}"/>
   1.321 +      <arg value="-timezone=PST"/>
   1.322 +      <arg value="--class-cache-size=50"/>
   1.323 +      <arg value="${sunspider-test-sys-prop.test.js.framework}"/>
   1.324 +      <arg value="--"/>
   1.325 +      <arg value="${sunspider-tests}/"/>
   1.326 +    </java>
   1.327 +  </target>
   1.328 +
   1.329 +  <!-- run sunspider with v8 -->
   1.330 +  <target name="sunspider-v8" depends="sunspider-init">
   1.331 +    <exec executable="${v8.shell}">
   1.332 +      <arg value="${sunspider-test-sys-prop.test.js.framework}"/>
   1.333 +      <arg value="--"/>
   1.334 +      <arg value="${sunspider-tests}/"/>
   1.335 +    </exec>
   1.336 +  </target>
   1.337 +
   1.338 +  <!-- run sunspider with Rhino -->
   1.339 +  <target name="sunspider-rhino" depends="sunspider-init">
   1.340 +    <java jar="${rhino.jar}"
   1.341 +          classpath="${run.test.classpath}"
   1.342 +          fork="true"
   1.343 +          dir=".">
   1.344 +      <jvmarg line="${boot.class.path}"/>
   1.345 +      <jvmarg line="${run.test.jvmargs}"/>
   1.346 +      <arg value="${sunspider-test-sys-prop.test.js.framework}"/>
   1.347 +      <arg value="${sunspider-tests}/"/>
   1.348 +    </java>
   1.349 +  </target>
   1.350 +
   1.351 +</project>

mercurial