lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: Benchmarking LUCENE-584 with contrib/benchmark
Date Mon, 02 Apr 2007 23:29:43 GMT
Here is one more related question.
It looks like the o.a.l.benchmark.Driver class is supposed to be a generic driver class that
uses the Benchmarker configured in one of those conf/*.xml files.  However, I see StandardBenchmarker.class
hard-coded there:

        digester.addObjectCreate("benchmark/benchmarker", "class", StandardBenchmarker.class);
        digester.addSetNext("benchmark/benchmarker", "setBenchmarker");

Is this by design?  Is there any way for me to get the Driver aware of my MatcherBenchmarker
other than by modifying Driver directly?

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simpy --  -  Tag  -  Search  -  Share

----- Original Message ----
From: Otis Gospodnetic <>
Sent: Monday, April 2, 2007 6:35:57 PM
Subject: Benchmarking LUCENE-584 with contrib/benchmark


I'm looking at benchmarking Paul's code.
I'd like to compare either:
  HitCollector.collect(doc, score) vs. MatchCollector.collect(doc)
  or, Filter, HitCollector) vs. IndexSearcher.match(Query, MatchCollector)

...and see what the performance difference is when one skips scoring.  I can cook up my own
benchmark, but I'd rather try using contrib/benchmark, if it can be used for this purpose.
 Can it?  I browsed around contrib/benchmark looking for a place where I could plug in calls
to IndexSearcher.match(Query, MatchCollector), and found that the only search calls are in
the  StandardBenchmarker class.  From what I can tell, I can't really plug in any other calls
in there, can I?  It looks like I simply need to write my own MatcherBenchmarker and implement
my own benchmark(File, BenchmarkOptions) method.  Once that's in place, I'd have to run one
benchmark with the StandardBenchmarker and the other one with my MatcherBenchmarker and manually
compare the numbers.

Is that the right approach, or am I missing a shortcut?


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message