lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "BenchmarkingSolr" by ShawnHeisey
Date Mon, 12 Apr 2010 15:54:59 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "BenchmarkingSolr" page has been changed by ShawnHeisey.
The comment on this change is: Commented out one of the "rm -rf" lines..
http://wiki.apache.org/solr/BenchmarkingSolr?action=diff&rev1=1&rev2=2

--------------------------------------------------

  
  == Perl script (originally by ShawnHeisey) ==
  
- It's not very polished.  Requires the Time::Hi``Res, Statistics::Descriptive, IO::Handle,
and LWP::Simple Perl modules.  As written, it will not work on Windows.  If you wish to include
the time required to write the query results to disk, there are some lines commented, just
uncomment them.  Although it does provide an average request time, I believe the median, 95th
percentile, and 99th percentile values it outputs are more useful.
+ It's not very polished.  Requires the Time::Hi``Res, Statistics::Descriptive, IO::Handle,
and LWP::Simple Perl modules.  As written, it will not work on Windows.  If you wish to include
the time required to write the query results to disk, there are some lines commented, just
uncomment them.  Although it does provide an average request time, I believe the median, 95th
percentile, and 99th percentile values it outputs are more useful.  The "if length $outputDir"
tests on the rm lines are intentional to avoid erasing the entire filesystem if that variable
somehow gets unset.
  
  {{{
  #!ignoreme
@@ -108, +108 @@

  }
  
  system "rm -f $outputDir/* 2> /dev/null" if length $outputDir;
- system "rm -f $outputDir/result/* 2> /dev/null" if length $outputDir;
+ #system "rm -f $outputDir/result/* 2> /dev/null" if length $outputDir;
  
  printf " Req/s: %1.03f (%1.03f sec, requests %d/%d)\n"
    , $stat->count() / (time() - $veryStart)

Mime
View raw message