2007-04-17 03:11:04 -04:00
|
|
|
<?xml version="1.0"?>
|
2007-06-09 02:09:46 -04:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
2007-04-17 03:11:04 -04:00
|
|
|
<project name="benchmark" default="default">
|
|
|
|
|
|
|
|
<description>
|
|
|
|
Lucene Benchmarking Contributions
|
|
|
|
</description>
|
|
|
|
|
|
|
|
<import file="../contrib-build.xml"/>
|
|
|
|
<property name="working.dir" value="work"/>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="check-files">
|
|
|
|
|
|
|
|
<available file="temp/news20.tar.gz" property="news20.exists"/>
|
|
|
|
|
|
|
|
<available file="${working.dir}/20_newsgroup" property="news20.expanded"/>
|
|
|
|
|
|
|
|
<available file="temp/reuters21578.tar.gz" property="reuters.exists"/>
|
|
|
|
<available file="${working.dir}/reuters" property="reuters.expanded"/>
|
|
|
|
<available file="${working.dir}/reuters-out" property="reuters.extracted"/>
|
|
|
|
<available file="temp/20news-18828.tar.gz" property="20news-18828.exists"/>
|
|
|
|
<available file="${working.dir}/20news-18828" property="20news-18828.expanded"/>
|
|
|
|
<available file="${working.dir}/mini_newsgroups" property="mini.expanded"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="get-news-20" unless="20news-18828.exists">
|
|
|
|
<get src="http://www-2.cs.cmu.edu/afs/cs.cmu.edu/project/theo-20/www/data/news20.tar.gz"
|
|
|
|
dest="temp/news20.tar.gz"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
<target name="get-reuters" unless="reuters.exists">
|
|
|
|
|
|
|
|
<get src="http://www.daviddlewis.com/resources/testcollections/reuters21578/reuters21578.tar.gz"
|
|
|
|
dest="temp/reuters21578.tar.gz"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="expand-news-20" unless="news20.expanded">
|
|
|
|
<gunzip src="temp/news20.tar.gz" dest="temp"/>
|
|
|
|
<untar src="temp/news20.tar" dest="${working.dir}"/>
|
|
|
|
</target>
|
|
|
|
<target name="expand-reuters" unless="reuters.expanded">
|
|
|
|
<gunzip src="temp/reuters21578.tar.gz" dest="temp"/>
|
|
|
|
<mkdir dir="${working.dir}/reuters"/>
|
|
|
|
<untar src="temp/reuters21578.tar" dest="${working.dir}/reuters"/>
|
|
|
|
<delete >
|
|
|
|
<fileset dir="${working.dir}/reuters">
|
|
|
|
<include name="*.txt"/>
|
|
|
|
</fileset>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
<target name="extract-reuters" depends="check-files" unless="reuters.extracted">
|
|
|
|
<mkdir dir="${working.dir}/reuters-out"/>
|
|
|
|
<java classname="org.apache.lucene.benchmark.utils.ExtractReuters" maxmemory="1024M" fork="true">
|
|
|
|
<classpath refid="run.classpath"/>
|
|
|
|
<arg line="${working.dir}/reuters ${working.dir}/reuters-out"/>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
<target name="get-20news-18828" unless="20news-18828.exists">
|
|
|
|
<get src="http://people.csail.mit.edu/u/j/jrennie/public_html/20Newsgroups/20news-18828.tar.gz"
|
|
|
|
dest="temp/20news-18828.tar.gz"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
<target name="expand-20news-18828" unless="20news-18828.expanded">
|
|
|
|
<gunzip src="temp/20news-18828.tar.gz" dest="temp"/>
|
|
|
|
<untar src="temp/20news-18828.tar" dest="${working.dir}"/>
|
|
|
|
</target>
|
|
|
|
<target name="get-mini-news" unless="mini.exists">
|
|
|
|
<get src="http://kdd.ics.uci.edu/databases/20newsgroups/mini_newsgroups.tar.gz"
|
|
|
|
dest="temp/mini_newsgroups.tar.gz"/>
|
|
|
|
</target>
|
|
|
|
<target name="expand-mini-news" unless="mini.expanded">
|
|
|
|
<gunzip src="temp/mini_newsgroups.tar.gz" dest="temp"/>
|
|
|
|
<untar src="temp/mini_newsgroups.tar" dest="${working.dir}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="get-files" depends="check-files">
|
|
|
|
<mkdir dir="temp"/>
|
|
|
|
<antcall target="get-reuters"/>
|
|
|
|
<antcall target="expand-reuters"/>
|
|
|
|
<antcall target="extract-reuters"/>
|
|
|
|
</target>
|
|
|
|
<property name="digester.jar" value="commons-digester-1.7.jar"/>
|
|
|
|
<property name="collections.jar" value="commons-collections-3.1.jar"/>
|
|
|
|
<property name="logging.jar" value="commons-logging-1.0.4.jar"/>
|
|
|
|
<property name="bean-utils.jar" value="commons-beanutils-1.7.0.jar"/>
|
|
|
|
|
|
|
|
<path id="classpath">
|
|
|
|
<pathelement path="${common.dir}/build/classes/java"/>
|
|
|
|
<pathelement path="${common.dir}/build/classes/demo"/>
|
|
|
|
<pathelement path="${basedir}/lib/${digester.jar}"/>
|
|
|
|
<pathelement path="${basedir}/lib/${collections.jar}"/>
|
|
|
|
<pathelement path="${basedir}/lib/${logging.jar}"/>
|
|
|
|
<pathelement path="${basedir}/lib/${bean-utils.jar}"/>
|
|
|
|
</path>
|
|
|
|
<path id="run.classpath">
|
|
|
|
<path refid="classpath"/>
|
|
|
|
<pathelement location="${build.dir}/classes/java"/>
|
|
|
|
<pathelement location="${benchmark.ext.classpath}"/>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<target name="run-standard" depends="compile,check-files,get-files" description="Run the standard baseline">
|
|
|
|
<echo>Working Directory: ${working.dir}</echo>
|
|
|
|
<java classname="org.apache.lucene.benchmark.Driver" maxmemory="1024M" fork="true">
|
|
|
|
<classpath refid="run.classpath"/>
|
|
|
|
<arg line="${working.dir} ${basedir}/conf/standard-config.xml"/>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
<target name="run-micro-standard" depends="compile,check-files,get-files" description="Run the standard baseline">
|
|
|
|
<echo>Working Directory: ${working.dir}</echo>
|
|
|
|
<java classname="org.apache.lucene.benchmark.Driver" maxmemory="1024M" fork="true">
|
|
|
|
<classpath refid="run.classpath"/>
|
|
|
|
<arg line="${working.dir} ${basedir}/conf/micro-standard-config.xml"/>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<property name="task.alg" value="${basedir}/conf/micro-standard.alg"/>
|
|
|
|
<property name="task.mem" value="140M"/>
|
|
|
|
|
|
|
|
<target name="run-task" depends="compile,check-files,get-files" description="Run compound penalty perf test">
|
|
|
|
<echo>Working Directory: ${working.dir}</echo>
|
|
|
|
<java classname="org.apache.lucene.benchmark.byTask.Benchmark" maxmemory="${task.mem}" fork="true">
|
|
|
|
<classpath refid="run.classpath"/>
|
|
|
|
<arg line="${task.alg}"/>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile-demo">
|
|
|
|
<subant target="compile-demo">
|
|
|
|
<fileset dir="${common.dir}" includes="build.xml"/>
|
|
|
|
</subant>
|
|
|
|
</target>
|
|
|
|
|
2007-06-11 15:29:41 -04:00
|
|
|
<target name="init" depends="contrib-build.init,compile-demo,check-files"/>
|
2007-04-17 03:11:04 -04:00
|
|
|
|
|
|
|
</project>
|