Cleaner output in TestPerformance when checksum calculation is disabled

This commit is contained in:
Sam Harwell 2014-01-16 16:11:21 -06:00
parent b3d3235614
commit dbfb230b11
1 changed files with 2 additions and 2 deletions

View File

@ -877,12 +877,12 @@ public class TestPerformance extends BaseTest {
executorService.shutdown();
executorService.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
System.out.format("%d. Total parse time for %d files (%d KB, %d tokens, checksum 0x%8X): %.0fms%n",
System.out.format("%d. Total parse time for %d files (%d KB, %d tokens%s): %.0fms%n",
currentPass + 1,
inputCount,
inputSize / 1024,
tokenCount.get(currentPass),
COMPUTE_CHECKSUM ? checksum.getValue() : 0,
COMPUTE_CHECKSUM ? String.format(", checksum 0x%8X", checksum.getValue()) : "",
(double)(System.nanoTime() - startTime) / 1000000.0);
if (sharedLexers.length > 0) {