lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <>
Subject [jira] Commented: (LUCENE-675) Lucene benchmark: objective performance test for Lucene
Date Fri, 22 Sep 2006 18:56:24 GMT
    [ ] 
Dawid Weiss commented on LUCENE-675:

First -- I think it's a good initiative. Grant, when you're thinking about the infrastructure,
it would be pretty neat to have a way of logging performance in a way so that one could draw
charts from them. You know, for the visual folks :)

Anyway, my other idea is that benchmarking Lucene can be performed on two levels: one is the
user level, where the entire operation counts (such as indexing, searching etc). Another aspect
is measurement of atomic parts _within_ the big operation so that you know how much of the
whole thing each subpart takes. I wrote an interesting piece of code once that allows measuring
times for named operation (per-thread) in a recursive way. Looks something like this:

try {
  .. code (with recursion etc)  ...
  try { 

  } finally {
} finally {

in the output you get something like this:

indexing: 5 seconds;
   ->subpart: : 2 seconds;
   -> ...

Of course everything comes at a price and the above logging costs some CPU cycles (my implementation
stored a nesting stack in ThreadLocals).

One can always put that code in 'if' clauses attached to final variables and enable logging
only for benchmarking targets (the compiler will get rid of logging statements then).

If folks are interested I can dig out that performance logger and maybe adopt it to what Grant
comes up with.

> Lucene benchmark: objective performance test for Lucene
> -------------------------------------------------------
>                 Key: LUCENE-675
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Andrzej Bialecki 
>         Assigned To: Grant Ingersoll
>         Attachments:
> We need an objective way to measure the performance of Lucene, both indexing and querying,
on a known corpus. This issue is intended to collect comments and patches implementing a suite
of such benchmarking tests.
> Regarding the corpus: one of the widely used and freely available corpora is the original
Reuters collection, available from
or I
propose to use this corpus as a base for benchmarks. The benchmarking suite could automatically
retrieve it from known locations, and cache it locally.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


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

View raw message