org.apache.lucene.benchmark.byTask
Class Benchmark
java.lang.Object
org.apache.lucene.benchmark.byTask.Benchmark
public class Benchmark
- extends Object
Run the benchmark algorithm.
Usage: java Benchmark algorithm-file
- Read algorithm.
- Run the algorithm.
Things to be added/fixed in "Benchmarking by tasks":
- TODO - report into Excel and/or graphed view.
- TODO - perf comparison between Lucene releases over the years.
- TODO - perf report adequate to include in Lucene nightly build site? (so we can easily track performance changes.)
- TODO - add overall time control for repeated execution (vs. current by-count only).
- TODO - query maker that is based on index statistics.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Benchmark
public Benchmark(Reader algReader)
throws Exception
- Throws:
Exception
execute
public void execute()
throws Exception
- Throws:
Exception
main
public static void main(String[] args)
- Run the benchmark algorithm.
- Parameters:
args
- benchmark config and algorithm files
getAlgorithm
public Algorithm getAlgorithm()
- Returns:
- Returns the algorithm.
getRunData
public PerfRunData getRunData()
- Returns:
- Returns the runData.
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.