changeset 1315:6b825c9b1c94

7901649: Add warmup/measurement batch sizes to JSON output
author shade
date Thu, 31 Mar 2016 14:06:43 +0300
parents 7cff26ccc4d3
children bedb56cf476f
files jmh-core/src/main/java/org/openjdk/jmh/results/format/JSONResultFormat.java jmh-core/src/test/resources/org/openjdk/jmh/results/format/output-golden.json
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/results/format/JSONResultFormat.java	Tue Mar 29 15:06:40 2016 +0300
+++ b/jmh-core/src/main/java/org/openjdk/jmh/results/format/JSONResultFormat.java	Thu Mar 31 14:06:43 2016 +0300
@@ -70,8 +70,10 @@
             pw.println("\"forks\" : " + params.getForks() + ",");
             pw.println("\"warmupIterations\" : " + params.getWarmup().getCount() + ",");
             pw.println("\"warmupTime\" : \"" + params.getWarmup().getTime() + "\",");
+            pw.println("\"warmupBatchSize\" : " + params.getWarmup().getBatchSize() + ",");
             pw.println("\"measurementIterations\" : " + params.getMeasurement().getCount() + ",");
             pw.println("\"measurementTime\" : \"" + params.getMeasurement().getTime() + "\",");
+            pw.println("\"measurementBatchSize\" : " + params.getMeasurement().getBatchSize() + ",");
 
             if (!params.getParamsKeys().isEmpty()) {
                 pw.println("\"params\" : {");
--- a/jmh-core/src/test/resources/org/openjdk/jmh/results/format/output-golden.json	Tue Mar 29 15:06:40 2016 +0300
+++ b/jmh-core/src/test/resources/org/openjdk/jmh/results/format/output-golden.json	Thu Mar 31 14:06:43 2016 +0300
@@ -6,8 +6,10 @@
         "forks" : 828,
         "warmupIterations" : 84,
         "warmupTime" : "375 s",
+        "warmupBatchSize" : 1,
         "measurementIterations" : 802,
         "measurementTime" : "501 s",
+        "measurementBatchSize" : 1,
         "params" : {
             "param0" : "value0",
             "param1" : "value1",
@@ -221,8 +223,10 @@
         "forks" : 364,
         "warmupIterations" : 544,
         "warmupTime" : "409 s",
+        "warmupBatchSize" : 1,
         "measurementIterations" : 55,
         "measurementTime" : "398 s",
+        "measurementBatchSize" : 1,
         "params" : {
             "param0" : "value0",
             "param1" : "value1",
@@ -319,8 +323,10 @@
         "forks" : 677,
         "warmupIterations" : 384,
         "warmupTime" : "105 s",
+        "warmupBatchSize" : 1,
         "measurementIterations" : 461,
         "measurementTime" : "96 s",
+        "measurementBatchSize" : 1,
         "params" : {
             "param0" : "value0",
             "param1" : "value1",
@@ -479,8 +485,10 @@
         "forks" : 581,
         "warmupIterations" : 628,
         "warmupTime" : "207 s",
+        "warmupBatchSize" : 1,
         "measurementIterations" : 857,
         "measurementTime" : "438 s",
+        "measurementBatchSize" : 1,
         "params" : {
             "param0" : "value0",
             "param1" : "value1",
@@ -671,8 +679,10 @@
         "forks" : 670,
         "warmupIterations" : 997,
         "warmupTime" : "651 s",
+        "warmupBatchSize" : 1,
         "measurementIterations" : 16,
         "measurementTime" : "763 s",
+        "measurementBatchSize" : 1,
         "params" : {
             "param0" : "value0",
             "param1" : "value1",