Raw data output

Petr Stefan ptr.stef at gmail.com
Fri Jul 15 12:35:41 UTC 2016


Hi Aleksey,

I've updated my patch according to your comments. Thanks.

Cheers,
Petr



Dne 14.7.2016 v 12:13 Aleksey Shipilev napsal(a):
> Hi Petr,
>
> On 07/13/2016 05:13 PM, Petr Stefan wrote:
>> - Print sample time mode differently than other modes. It's a little
>> inconsistent, but probably not too much. Sample time mode will be
>> printed in compact way, others will be printed with current format.
>> For this, we'd need to split "rawData" key into two new keys like
>> "rawDataSimple" and "rawDataCombined" and say that actual data are in
>> one of this key, but not both (in which one depends on benchmarking
>> mode).
> I like this one. "rawData" and "rawDataHistogram" would seem to explain
> the intent better. Users would definitely need to have more steps for
> processing raw data, but raw data is not supposed to be convenient, it
> is supposed to be complete.
>
>> Another question - is it useful to have rawData values divided into
>> multiple BenchmarkResult section? I'm talking about
>>
>> "rawData" : [
>>      [
>>          942.0,
>>          384.0
>>      ],
>>      [
>>          351.0,
>>          781.0
>>      ],
>>   ...
>> It would be more compact and disk space saving. Maybe it is useful for
>> something, but I don't see it now. However, preserve this formatting is
>> quite easy.
> I think we added this to add finer granularity to raw data:
>
>    [
>      [
>        run1-iteration1-data,
>        run1-iteration2-data
>      ],
>      [
>        run2-iteration1-data,
>        run2-iteration2-data
>      ]
>    ]
>
> This might help to analyze data progression from iteration to iteration
> and from run to run. We should keep this intact.
>
>
>>>    *) We would need to be able to trim/disable raw_data printing in JSON
>>> output. The common way in JMH is to use system properties. Something
>>> like boolean "jmh.json.rawData" would be fine.
>> Default will be off?
> Default will be on. This is a safeguard switch in case JMH is
> accidentally generating gigabytes of data, chocking the output.
>
> Thanks,
> -Aleksey
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Better_raw_data_in_JSON_output.patch
Type: text/x-patch
Size: 21753 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/jmh-dev/attachments/20160715/b297f3fd/Better_raw_data_in_JSON_output.patch>


More information about the jmh-dev mailing list