make/build-benchmark.xml

Wed, 27 Apr 2016 01:36:41 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:36:41 +0800
changeset 0
b1a7da25b547
child 952
6d5471a497fb
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/nashorn/
changeset: 1034:4b9cc65dd24d
tag: jdk8u25-b17

     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3  Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
     4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     6  This code is free software; you can redistribute it and/or modify it
     7  under the terms of the GNU General Public License version 2 only, as
     8  published by the Free Software Foundation.
    10  This code is distributed in the hope that it will be useful, but WITHOUT
    11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    12  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    13  version 2 for more details (a copy is included in the LICENSE file that
    14  accompanied this code).
    16  You should have received a copy of the GNU General Public License version
    17  2 along with this work; if not, write to the Free Software Foundation,
    18  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    21  or visit www.oracle.com if you need additional information or have any
    22  questions.
    23 -->
    24 <project name="nashorn-benchmarks" default="all" basedir="..">
    26   <target name="octane-init" depends="jar">
    27     <property name="octane-tests" value="box2d code-load crypto deltablue earley-boyer gbemu navier-stokes pdfjs raytrace regexp richards splay"/>
    28   </target>
    30   <!-- ignore benchmarks where rhino crashes -->
    31   <target name="octane-init-rhino" depends="jar">
    32     <property name="octane-tests" value="box2d code-load crypto deltablue earley-boyer gbemu navier-stokes raytrace regexp richards splay"/>
    33   </target>
    35   <!-- box2d -->
    36   <target name="octane-box2d" depends="jar">
    37     <antcall target="run-octane">
    38       <param name="octane-tests" value="box2d"/>
    39     </antcall>
    40   </target>
    42   <target name="octane-box2d-v8" depends="jar">
    43     <antcall target="run-octane-v8">
    44       <param name="octane-tests" value="box2d"/>
    45     </antcall>
    46   </target>
    48   <target name="octane-box2d-rhino" depends="jar">
    49     <antcall target="run-octane-rhino">
    50       <param name="octane-tests" value="box2d"/>
    51     </antcall>
    52   </target>
    55   <!-- code-load -->  
    56   <target name="octane-code-load" depends="jar">
    57     <antcall target="run-octane">
    58       <param name="octane-tests" value="code-load"/>
    59     </antcall>
    60   </target>
    62   <target name="octane-code-load-v8" depends="jar">
    63     <antcall target="run-octane-v8">
    64       <param name="octane-tests" value="code-load"/>
    65     </antcall>
    66   </target>
    68   <target name="octane-code-load-rhino" depends="jar">
    69     <antcall target="run-octane-rhino">
    70       <param name="octane-tests" value="code-load"/>
    71     </antcall>
    72   </target>
    75   <!-- crypto -->
    76   <target name="octane-crypto" depends="jar">
    77     <antcall target="run-octane">
    78       <param name="octane-tests" value="crypto"/>
    79     </antcall>
    80   </target>
    82   <target name="octane-crypto-v8" depends="jar">
    83     <antcall target="run-octane-v8">
    84       <param name="octane-tests" value="crypto"/>
    85     </antcall>
    86   </target>
    88   <target name="octane-crypto-rhino" depends="jar">
    89     <antcall target="run-octane-rhino">
    90       <param name="octane-tests" value="crypto"/>
    91     </antcall>
    92   </target>
    95   <!-- deltablue -->
    96   <target name="octane-deltablue" depends="jar">
    97     <antcall target="run-octane">
    98       <param name="octane-tests" value="deltablue"/>
    99     </antcall>
   100   </target>
   102   <target name="octane-deltablue-v8" depends="jar">
   103     <antcall target="run-octane-v8">
   104       <param name="octane-tests" value="deltablue"/>
   105     </antcall>
   106   </target>
   108   <target name="octane-deltablue-rhino" depends="jar">
   109     <antcall target="run-octane-rhino">
   110       <param name="octane-tests" value="deltablue"/>
   111     </antcall>
   112   </target>
   115   <!-- earley-boyer -->
   116   <target name="octane-earley-boyer" depends="jar">
   117     <antcall target="run-octane">
   118       <param name="octane-tests" value="earley-boyer"/>
   119     </antcall>
   120   </target>
   122   <target name="octane-earley-boyer-v8" depends="jar">
   123     <antcall target="run-octane-v8">
   124       <param name="octane-tests" value="earley-boyer"/>
   125     </antcall>
   126   </target>
   128   <target name="octane-earley-boyer-rhino" depends="jar">
   129     <antcall target="run-octane-rhino">
   130       <param name="octane-tests" value="earley-boyer"/>
   131     </antcall>
   132   </target>
   135   <!-- gbemu -->  
   136   <target name="octane-gbemu" depends="jar">
   137     <antcall target="run-octane">
   138       <param name="octane-tests" value="gbemu"/>
   139     </antcall>
   140   </target>
   142   <target name="octane-gbemu-v8" depends="jar">
   143     <antcall target="run-octane-v8">
   144       <param name="octane-tests" value="gbemu"/>
   145     </antcall>
   146   </target>
   148   <target name="octane-gbemu-rhino" depends="jar">
   149     <antcall target="run-octane-rhino">
   150       <param name="octane-tests" value="gbemu"/>
   151     </antcall>
   152   </target>
   155   <!-- mandreel -->  
   156   <target name="octane-mandreel" depends="jar">
   157     <antcall target="run-octane">
   158       <param name="octane-tests" value="mandreel"/>
   159     </antcall>
   160   </target>
   162   <target name="octane-mandreel-v8" depends="jar">
   163     <antcall target="run-octane-v8">
   164       <param name="octane-tests" value="mandreel"/>
   165     </antcall>
   166   </target>
   168   <target name="octane-mandreel-rhino" depends="jar">
   169     <antcall target="run-octane-rhino">
   170       <param name="octane-tests" value="mandreel"/>
   171     </antcall>
   172   </target>
   175   <!-- navier-stokes -->
   176   <target name="octane-navier-stokes" depends="jar">
   177     <antcall target="run-octane">
   178       <param name="octane-tests" value="navier-stokes"/>
   179     </antcall>
   180   </target>
   182   <target name="octane-navier-stokes-v8" depends="jar">
   183     <antcall target="run-octane-v8">
   184       <param name="octane-tests" value="navier-stokes"/>
   185     </antcall>
   186   </target>
   188   <target name="octane-navier-stokes-rhino" depends="jar">
   189     <antcall target="run-octane-rhino">
   190       <param name="octane-tests" value="navier-stokes"/>
   191     </antcall>
   192   </target>
   195   <!-- pdfjs -->  
   196   <target name="octane-pdfjs" depends="jar">
   197     <antcall target="run-octane">
   198       <param name="octane-tests" value="pdfjs"/>
   199     </antcall>
   200   </target>
   202   <target name="octane-pdfjs-v8" depends="jar">
   203     <antcall target="run-octane-v8">
   204       <param name="octane-tests" value="pdfjs"/>
   205     </antcall>
   206   </target>
   208   <target name="octane-pdfjs-rhino" depends="jar">
   209     <antcall target="run-octane-rhino">
   210       <param name="octane-tests" value="pdfjs"/>
   211     </antcall>
   212   </target>
   215   <!-- raytrace -->
   216   <target name="octane-raytrace" depends="jar">
   217     <antcall target="run-octane">
   218       <param name="octane-tests" value="raytrace"/>
   219     </antcall>
   220   </target>
   222   <target name="octane-raytrace-v8" depends="jar">
   223     <antcall target="run-octane-v8">
   224       <param name="octane-tests" value="raytrace"/>
   225     </antcall>
   226   </target>
   228   <target name="octane-raytrace-rhino" depends="jar">
   229     <antcall target="run-octane-rhino">
   230       <param name="octane-tests" value="raytrace"/>
   231     </antcall>
   232   </target>
   235   <!-- regexp -->
   236   <target name="octane-regexp" depends="jar">
   237     <antcall target="run-octane">
   238       <param name="octane-tests" value="regexp"/>
   239     </antcall>
   240   </target>
   242   <target name="octane-regexp-v8" depends="jar">
   243     <antcall target="run-octane-v8">
   244       <param name="octane-tests" value="regexp"/>
   245     </antcall>
   246   </target>
   248   <target name="octane-regexp-rhino" depends="jar">
   249     <antcall target="run-octane-rhino">
   250       <param name="octane-tests" value="regexp"/>
   251     </antcall>
   252   </target>
   255   <!-- richards -->
   256   <target name="octane-richards" depends="jar">
   257     <antcall target="run-octane">
   258       <param name="octane-tests" value="richards"/>
   259     </antcall>
   260   </target>
   262   <target name="octane-richards-v8" depends="jar">
   263     <antcall target="run-octane-v8">
   264       <param name="octane-tests" value="richards"/>
   265     </antcall>
   266   </target>
   268   <target name="octane-richards-rhino" depends="jar">
   269     <antcall target="run-octane-rhino">
   270       <param name="octane-tests" value="richards"/>
   271     </antcall>
   272   </target>
   275   <!-- splay -->
   276   <target name="octane-splay" depends="jar">
   277     <antcall target="run-octane">
   278       <param name="octane-tests" value="splay"/>
   279     </antcall>
   280   </target>
   282   <target name="octane-splay-v8" depends="jar">
   283     <antcall target="run-octane-v8">
   284       <param name="octane-tests" value="splay"/>
   285     </antcall>
   286   </target>
   288   <target name="octane-splay-rhino" depends="jar">
   289     <antcall target="run-octane-rhino">
   290       <param name="octane-tests" value="splay"/>
   291     </antcall>
   292   </target>
   294   <!-- splay -->
   295   <target name="octane-typescript" depends="jar">
   296     <antcall target="run-octane">
   297       <param name="octane-tests" value="typescript"/>
   298     </antcall>
   299   </target>
   301   <target name="octane-typescript-v8" depends="jar">
   302     <antcall target="run-octane-v8">
   303       <param name="octane-typescript" value="typescript"/>
   304     </antcall>
   305   </target>
   307   <target name="octane-typescript-rhino" depends="jar">
   308     <antcall target="run-octane-rhino">
   309       <param name="octane-tests" value="typescript"/>
   310     </antcall>
   311   </target>
   313   <!-- zlib -->
   314   <target name="octane-zlib" depends="jar">
   315     <antcall target="run-octane">
   316       <param name="octane-tests" value="zlib"/>
   317     </antcall>
   318   </target>
   320   <target name="octane-zlib-v8" depends="jar">
   321     <antcall target="run-octane-v8">
   322       <param name="octane-typescript" value="zlib"/>
   323     </antcall>
   324   </target>
   326   <target name="octane-zlib-rhino" depends="jar">
   327     <antcall target="run-octane-rhino">
   328       <param name="octane-tests" value="zlib"/>
   329     </antcall>
   330   </target>
   332   <!-- run octane benchmarks in a single process  -->
   333   <target name="octane-single-process" depends="octane-init">
   334     <antcall target="run-octane"/>
   335   </target>
   337   <!-- zlib excluded due to missing implementation of 'read' -->
   338   <target name="octane-separate-process" depends=
   339      "octane-box2d, octane-code-load, octane-crypto, 
   340       octane-deltablue, octane-earley-boyer, octane-gbemu,
   341       octane-mandreel, octane-navier-stokes, octane-pdfjs, 
   342       octane-raytrace, octane-regexp, octane-richards, 
   343       octane-splay, octane-typescript"/>
   345   <target name="--single-process" unless="${octane-test-sys-prop.separate.process}">
   346     <antcall target="octane-single-process"/>
   347   </target>
   348   <target name="--separate-process" if="${octane-test-sys-prop.separate.process}">
   349     <antcall target="octane-separate-process"/>
   350   </target>
   352   <!-- run 'octane' in single or separate processes based on config -->
   353   <target name="octane" depends="init, --single-process, --separate-process"/>
   355   <!-- run octane benchmarks using octane as runtime -->
   356   <target name="octane-v8" depends="octane-init">
   357     <antcall target="run-octane-v8"/>
   358   </target>
   360   <!-- run octane benchmarks using Rhino as runtime -->
   361   <target name="octane-rhino" depends="octane-init-rhino">
   362     <antcall target="run-octane-rhino"/>
   363   </target>
   365   <target name="run-octane">
   366     <java classname="${nashorn.shell.tool}"
   367           classpath="${run.test.classpath}"
   368           fork="true"
   369           dir=".">
   370       <jvmarg line="${ext.class.path}"/>
   371       <jvmarg line="${run.test.jvmargs.octane} -Xms${run.test.xms} -Xmx${run.test.xmx}"/>
   372       <arg value="${octane-test-sys-prop.test.js.framework}"/>
   373       <arg value="--"/>
   374       <arg value="${octane-tests}"/>
   375       <arg value="--runtime"/>
   376       <arg value="Nashorn"/>
   377       <arg value="--verbose"/>
   378       <arg value="--iterations 8"/>
   379     </java>
   380   </target>
   382   <target name="run-octane-v8">
   383     <exec executable="${v8.shell}">
   384       <arg value="${octane-test-sys-prop.test.js.framework}"/>
   385       <arg value="--"/>
   386       <arg value="${octane-tests}"/>      
   387       <arg value="--runtime"/>
   388       <arg value="v8"/>
   389       <arg value="--verbose"/>
   390       <arg value="--iterations 8"/>
   391     </exec>
   392   </target>
   394   <target name="run-octane-rhino">
   395     <java jar="${rhino.jar}"
   396           classpath="${run.test.classpath}"
   397           fork="true"
   398           dir=".">
   399       <jvmarg line="${run.test.jvmargs.octane} -Xms${run.test.xms} -Xmx${run.test.xmx}"/>
   400       <arg value="${octane-test-sys-prop.test.js.framework}"/>
   401       <arg value="${octane-tests}"/>
   402       <arg value="--runtime"/>
   403       <arg value="Rhino"/>
   404       <arg value="--verbose"/>
   405       <arg value="--iterations 8"/>
   406     </java>
   407   </target>
   409   <!-- run octane with all known runtimes for comparison -->
   410   <target name="octane-all" depends="octane, octane-v8, octane-rhino">
   411     <exec executable="${v8.shell}">
   412       <arg value="${octane-test-sys-prop.test.js.framework}"/>
   413       <arg value="${octane-tests}/"/>
   414     </exec>
   415   </target>
   417   <target name="sunspider-init" depends="jar">
   418     <fileset id="sunspider-set"
   419 	     dir="${sunspider-test-sys-prop.test.js.roots}"
   420 	     excludes="${sunspider-test-sys-prop.test.js.exclude.list}">
   421       <include name="**/*.js"/>
   422     </fileset>
   423     <pathconvert pathsep=" " property="sunspider-tests" refid="sunspider-set"/>
   424   </target>
   426   <!-- run sunspider with Nashorn -->
   427   <target name="sunspider" depends="sunspider-init">
   428     <java classname="${nashorn.shell.tool}"
   429           classpath="${run.test.classpath}"
   430           fork="true"
   431           dir=".">
   432       <jvmarg line="${ext.class.path}"/>
   433       <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx}"/>
   434       <arg value="-timezone=PST"/>
   435       <arg value="--class-cache-size=50"/>
   436       <arg value="${sunspider-test-sys-prop.test.js.framework}"/>
   437       <arg value="--"/>
   438       <arg value="${sunspider-tests}/"/>
   439     </java>
   440   </target>
   442   <!-- run sunspider with v8 -->
   443   <target name="sunspider-v8" depends="sunspider-init">
   444     <exec executable="${v8.shell}">
   445       <arg value="${sunspider-test-sys-prop.test.js.framework}"/>
   446       <arg value="--"/>
   447       <arg value="${sunspider-tests}/"/>
   448     </exec>
   449   </target>
   451   <!-- run sunspider with Rhino -->
   452   <target name="sunspider-rhino" depends="sunspider-init">
   453     <java jar="${rhino.jar}"
   454           classpath="${run.test.classpath}"
   455           fork="true"
   456           dir=".">
   457       <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx}"/>
   458       <arg value="${sunspider-test-sys-prop.test.js.framework}"/>
   459       <arg value="${sunspider-tests}/"/>
   460     </java>
   461   </target>
   463 </project>

mercurial