changeset 326:c2af91629c91

Purge useless "Threads" and "Time" from the TextReport.
author shade
date Tue, 24 Dec 2013 22:32:16 +0400
parents ec690a8057ee
children f227bf756864
files jmh-core/src/main/java/org/openjdk/jmh/output/format/TextReportFormat.java
diffstat 1 files changed, 6 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/output/format/TextReportFormat.java	Sun Dec 22 23:16:30 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/output/format/TextReportFormat.java	Tue Dec 24 22:32:16 2013 +0400
@@ -175,22 +175,16 @@
         }
         nameLen += 2;
 
-        out.printf("%-" + nameLen + "s %6s %3s %9s %4s %12s %12s %8s%n",
-                "Benchmark", "Mode", "Thr", "Count", "Sec",
-                "Mean", "Mean error", "Units");
+        out.printf("%-" + nameLen + "s %6s %9s %12s %12s %8s%n",
+                "Benchmark", "Mode", "Samples", "Mean", "Mean error", "Units");
         for (BenchmarkRecord key : runResults.keySet()) {
             RunResult res = runResults.get(key);
-
-            int threads = res.getParams().getThreads();
-            TimeValue runTime = res.getParams().getMeasurement().getTime();
-
             {
                 Statistics stats = res.getPrimaryResult().getStatistics();
-                out.printf("%-" + nameLen + "s %6s %3d %9d %4d %12.3f %12.3f %8s%n",
+                out.printf("%-" + nameLen + "s %6s %9d %12.3f %12.3f %8s%n",
                         benchPrefixes.get(key.getUsername()),
                         key.getMode().shortLabel(),
-                        threads, stats.getN(),
-                        runTime.convertTo(TimeUnit.SECONDS),
+                        stats.getN(),
                         stats.getMean(), stats.getMeanErrorAt(0.999),
                         res.getScoreUnit());
             }
@@ -198,11 +192,10 @@
             for (String label : res.getSecondaryResults().keySet()) {
                 Statistics stats = res.getSecondaryResults().get(label).getStatistics();
 
-                out.printf("%-" + nameLen + "s %6s %3d %9d %4d %12.3f %12.3f %8s%n",
+                out.printf("%-" + nameLen + "s %6s %9d %12.3f %12.3f %8s%n",
                         benchPrefixes.get(key.getUsername() + ":" + label),
                         key.getMode().shortLabel(),
-                        threads, stats.getN(),
-                        runTime.convertTo(TimeUnit.SECONDS),
+                        stats.getN(),
                         stats.getMean(), stats.getMeanErrorAt(0.999),
                         res.getScoreUnit());
             }