JMH feature request: Formal and raw output formats

Claes Redestad claes.redestad at oracle.com
Thu Oct 24 08:50:40 PDT 2013


Off-list:

  - trailing comma in "raw": [ ..., 10.53545, ] breaks jackson

/Claes

On 10/24/2013 05:16 PM, Claes Redestad wrote:
> On 10/24/2013 03:52 PM, Aleksey Shipilev wrote:
>> On 10/23/2013 11:18 PM, Aleksey Shipilev wrote:
>>> On 10/22/2013 06:27 PM, Claes Redestad wrote:
>>>> It'd be a great help if it was possible to getting jmh results in a
>>>> machine-readable format, such as json or xml.
>>> Sounds good, how about we commit this infrastructure first:
>>> http://cr.openjdk.java.net/~shade/jmh/resultformats-1.webrev/
>>>
>>> ...and then work on both JSON and XML outputs?
>> Ok, I pushed this one plus the basic JSON parser:
>> http://hg.openjdk.java.net/code-tools/jmh/file/tip/jmh-core/src/main/java/org/openjdk/jmh/output/results/JSONResultFormat.java
>>
>> Please try it out and see if something is missing, or should be
>> modified. Once we reach the consensus over the format, I will straighten
>> it up with the tests.
>>
>> -Aleksey.
> Thanks!
>
> Built and generated some output using the latest code, ported over the 
> code from our old parser using jackson to parse the JSON, some issues:
> - stdev would be helpful
>  - output from different forks are accumulated in the raw list; should 
> be split somehow?
> - use double-quotes? (Exception in thread "main" 
> org.codehaus.jackson.JsonParseException: Unexpected character (''' 
> (code 39)): was expecting double-quote to start field name)
>
> /Claes



More information about the jmh-dev mailing list