build.xml 2.04 KB
Newer Older
David BAELDE's avatar
David BAELDE committed
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0"?>
<project name="xpath-benchmark" default="all" basedir="."
         xmlns:unless="ant:unless">

  <description>Extract data from benchmark results.</description>
  
  <property name="xml" value="xpathmark"/>
  <property name="project.root" value="../.."/>
  <property name="lib.dir" value="${project.root}/lib"/>

11 12 13 14 15
  <target name="all">
    <antcall target="matrix">
      <param name="fragments" value="full" />
      <param name="benchmarks" value="xquery" />
    </antcall>
16 17 18 19
    <antcall target="matrix">
      <param name="fragments" value="core-1.0" />
      <param name="benchmarks" value="xquery" />
    </antcall>
David BAELDE's avatar
David BAELDE committed
20 21 22 23 24 25 26 27
    <antcall target="totals">
      <param name="fragments" value="full" />
      <param name="benchmarks" value="xquery" />
    </antcall>
    <antcall target="totals">
      <param name="fragments" value="core-1.0" />
      <param name="benchmarks" value="xquery" />
    </antcall>
28
  </target>
David BAELDE's avatar
David BAELDE committed
29

30
  <!-- extract TeX matrix from benchmark data
31 32 33 34 35 36 37
       parameters:
         - fragments: name of fragment list
         - benchmarks: name of benchmark list
       respectively pointing to files
           ../../relaxng/fragments-${fragments}.xml
       and ./benchmarks-${benchmarks}.xml
  -->
David BAELDE's avatar
David BAELDE committed
38 39
  <target name="matrix">
    <xslt style="${project.root}/xslt/tex_matrix.xsl"
40
          in="benchmarks-${benchmarks}.xml"
David BAELDE's avatar
David BAELDE committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
          out="matrix-${benchmarks}-${fragments}.tex">
      <param
        name="xml_fragments"
        expression="../relaxng/fragments-${fragments}.xml" />
      <classpath>
        <pathelement path="${lib.dir}/saxon9he.jar"/>
      </classpath>
    </xslt>
  </target>

  <!-- same as "matrix" but for "totals" array -->
  <target name="totals">
    <xslt style="${project.root}/xslt/tex_totals.xsl"
          in="benchmarks-${benchmarks}.xml"
          out="totals-${benchmarks}-${fragments}.tex">
David BAELDE's avatar
David BAELDE committed
56 57
      <param
        name="xml_fragments"
58
        expression="../relaxng/fragments-${fragments}.xml" />
David BAELDE's avatar
David BAELDE committed
59 60 61 62 63 64 65
      <classpath>
        <pathelement path="${lib.dir}/saxon9he.jar"/>
      </classpath>
    </xslt>
  </target>

</project>