changeset 971:4a845244cdfc

results: fix annoying formatting issue in JSON output.
author shade
date Wed, 20 Aug 2014 16:07:27 +0400
parents a2f6cce2c08a
children 0d74d2f85299
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, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/results/format/JSONResultFormat.java	Wed Aug 20 12:58:53 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/results/format/JSONResultFormat.java	Wed Aug 20 16:07:27 2014 +0400
@@ -110,7 +110,7 @@
                 sb.append("\"scoreConfidence\" : ").append(emit(result.getScoreConfidence())).append(",");
                 sb.append(emitPercentiles(result.getStatistics()));
                 sb.append("\"scoreUnit\" : \"").append(result.getScoreUnit()).append("\",");
-                sb.append("\"rawData\" :");
+                sb.append("\"rawData\" : ");
 
                 Collection<String> l2 = new ArrayList<String>();
                 for (BenchmarkResult benchmarkResult : runResult.getBenchmarkResults()) {
--- a/jmh-core/src/test/resources/org/openjdk/jmh/results/format/output-golden.json	Wed Aug 20 12:58:53 2014 +0400
+++ b/jmh-core/src/test/resources/org/openjdk/jmh/results/format/output-golden.json	Wed Aug 20 16:07:27 2014 +0400
@@ -87,7 +87,7 @@
                     "100.0" : 952.0
                 },
                 "scoreUnit" : "ops/ms",
-                "rawData" :[
+                "rawData" : [
                     [
                         390.0,
                         787.0
@@ -138,7 +138,7 @@
                     "100.0" : 992.0
                 },
                 "scoreUnit" : "ops/ms",
-                "rawData" :[
+                "rawData" : [
                     [
                         806.0,
                         303.0
@@ -235,7 +235,7 @@
                     "100.0" : 953.0
                 },
                 "scoreUnit" : "ops/ms",
-                "rawData" :[
+                "rawData" : [
                     [
                         953.0
                     ]
@@ -261,7 +261,7 @@
                     "100.0" : 367.0
                 },
                 "scoreUnit" : "ops/ms",
-                "rawData" :[
+                "rawData" : [
                     [
                         367.0
                     ]
@@ -343,7 +343,7 @@
                     "100.0" : 823.0
                 },
                 "scoreUnit" : "ops/ms",
-                "rawData" :[
+                "rawData" : [
                     [
                         170.0,
                         532.0,
@@ -379,7 +379,7 @@
                     "100.0" : 974.0
                 },
                 "scoreUnit" : "ops/ms",
-                "rawData" :[
+                "rawData" : [
                     [
                         574.0,
                         246.0,
@@ -480,7 +480,7 @@
                     "100.0" : 983.0
                 },
                 "scoreUnit" : "ops/ms",
-                "rawData" :[
+                "rawData" : [
                     [
                         454.0,
                         626.0,
@@ -525,7 +525,7 @@
                     "100.0" : 870.0
                 },
                 "scoreUnit" : "ops/ms",
-                "rawData" :[
+                "rawData" : [
                     [
                         114.0,
                         166.0,
@@ -616,7 +616,7 @@
                     "100.0" : 688.0
                 },
                 "scoreUnit" : "ops/ms",
-                "rawData" :[
+                "rawData" : [
                     [
                         688.0
                     ]
@@ -642,7 +642,7 @@
                     "100.0" : 237.0
                 },
                 "scoreUnit" : "ops/ms",
-                "rawData" :[
+                "rawData" : [
                     [
                         237.0
                     ]