File tree 2 files changed +11
-2
lines changed
src/main/scala/com/microWorkflow/jsonScalaPerftest
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ libraryDependencies ++= Seq (
50
50
" net.liftweb" %% " lift-json" % " 2.5-M4" ,
51
51
" net.minidev" % " json-smart" % " 1.1.1" ,
52
52
" com.rojoma" %% " rojoma-json" % " 2.2.0" ,
53
- " io.spray" %% " spray-json" % " 1.2.3 " ,
53
+ " io.spray" %% " spray-json" % " 1.2.5 " ,
54
54
" nl.grons" %% " metrics-scala" % " 2.2.0" ,
55
55
" fr.janalyse" %% " janalyse-jmx" % " 0.6.1" % " compile" ,
56
56
" net.sf.jopt-simple" % " jopt-simple" % " 4.4" ,
Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ object Main extends App {
39
39
.describedAs(" Character; default is 'c'" )
40
40
.ofType(classOf [String ])
41
41
.defaultsTo(" c" )
42
+ val chartTitleOpt = argParser
43
+ .accepts(" title" , " Chart title." )
44
+ .withRequiredArg()
45
+ .describedAs(" title" )
46
+ .ofType(classOf [String ])
47
+ .defaultsTo(" JSON Data set" )
42
48
43
49
val options = try {
44
50
argParser.parse(args : _* )
@@ -64,7 +70,10 @@ object Main extends App {
64
70
val ms = if (doMap) experiment.measureMapping(iterations) else experiment.measureParsing(iterations)
65
71
66
72
if (options.has(reportOpt) && options.valueOf[String ](reportOpt) == " b" ) {
67
- val chart = new ChartReporter (if (doMap) " JSON Parsing and Mapping" else " JSON Parsing" , ms)
73
+ val chart = new ChartReporter (options.valueOf(chartTitleOpt) +
74
+ (if (doMap) " (parsing & mapping)" else " (parsing)" )
75
+ , ms
76
+ )
68
77
chart.view
69
78
System .in.read()
70
79
} else {
You can’t perform that action at this time.
0 commit comments