summaryrefslogtreecommitdiff
path: root/test/benchmark/sources/parsers/build.xml
blob: 9217ba443e53afff9840fe583e722b2888e8ef89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<project name="parsers" default="run">

  <import file="../../predef.xml"/>

  <target name="init">
    <mkdir dir="${benchmark.classes.dir}/${ant.project.name}"/>
  </target>


  <!-- Compile the parsers benchmark without optimizations -->
  <target name="compile-noopt"
          description="Compile the ${ant.project.name} benchmark with no optimizations">
     <compile-benchmark files="${benchmark.sources.dir}/${ant.project.name}/parsers.scala"
                        destination="${benchmark.classes.dir}/${ant.project.name}/noopt"/>
  </target>

  <!-- Compile the parsers benchmark with optimizations -->
  <target name="compile-opt"
          description="Compile the ${ant.project.name} benchmark with opt">
     <compile-benchmark files="${benchmark.sources.dir}/${ant.project.name}/parsers.scala"
                        destination="${benchmark.classes.dir}/${ant.project.name}/opt"
			additionalArgs="-separate:no -Xinline"/>
  </target>


  <target name="run" depends="init,compile-noopt,compile-opt"
          description="Run this benchmark">
    <run-benchmark location="${benchmark.classes.dir}/${ant.project.name}/noopt"/>
    <run-benchmark location="${benchmark.classes.dir}/${ant.project.name}/opt"/>
  </target> 

  <target name="clean.benchmark"
          description="Clean the object files for ${ant.project.name} benchmark">
    <delete dir="${benchmark.classes.dir}/${ant.project.name}"/>
  </target>

</project>