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.
- 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
exec(String[] args)
Utility: execute benchmark from command linevoid
execute()
Execute this benchmarkAlgorithm
getAlgorithm()
PerfRunData
getRunData()
static void
main(String[] args)
Run the benchmark algorithm.
-
-
-
Method Detail
-
main
public static void main(String[] args)
Run the benchmark algorithm.- Parameters:
args
- benchmark config and algorithm files
-
exec
public static void exec(String[] args)
Utility: execute benchmark from command line- Parameters:
args
- single argument is expected: algorithm-file
-
getAlgorithm
public Algorithm getAlgorithm()
- Returns:
- Returns the algorithm.
-
getRunData
public PerfRunData getRunData()
- Returns:
- Returns the runData.
-
-