mirror of https://github.com/apache/lucene.git
use 2 digits precision when reporting rec/s
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@779569 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8401e60861
commit
f953c8883e
|
@ -126,7 +126,7 @@ public abstract class ReportTask extends PerfTask {
|
|||
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));
|
||||
|
|
Loading…
Reference in New Issue