lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r779569 - /lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReportTask.java
Date Thu, 28 May 2009 11:31:46 GMT
Author: mikemccand
Date: Thu May 28 11:31:44 2009
New Revision: 779569

URL: http://svn.apache.org/viewvc?rev=779569&view=rev
Log:
use 2 digits precision when reporting rec/s

Modified:
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReportTask.java

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReportTask.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReportTask.java?rev=779569&r1=779568&r2=779569&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReportTask.java
(original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReportTask.java
Thu May 28 11:31:44 2009
@@ -126,7 +126,7 @@
     sb.append(Format.format(stat.getNumRuns(), RUNCNT)); 
     sb.append(Format.format(stat.getCount() / stat.getNumRuns(), RECCNT));
     long elapsed = (stat.getElapsed()>0 ? stat.getElapsed() : 1); // assume at least 1ms
-    sb.append(Format.format(1,(float) (stat.getCount() * 1000.0 / elapsed), RECSEC));
+    sb.append(Format.format(2, (float) (stat.getCount() * 1000.0 / elapsed), RECSEC));
     sb.append(Format.format(2, (float) stat.getElapsed() / 1000, ELAPSED));
     sb.append(Format.format(0, (float) stat.getMaxUsedMem() / stat.getNumRuns(), USEDMEM));

     sb.append(Format.format(0, (float) stat.getMaxTotMem() / stat.getNumRuns(), TOTMEM));



Mime
View raw message