CSV result writer saves samples as floating point number
Aleksey Shipilev
aleksey.shipilev at oracle.com
Mon Jun 8 07:48:14 UTC 2015
On 06/05/2015 02:06 PM, Sebastian Ramacher wrote:
> Result's getSampleCount returns a long, but if the result is exported as
> CSV the sample count is written as floating point number. I suppose this
> is due to org.openjdk.jmh.results.format.XSVResultFormat's emit methods
> which is available for ints and doubles. So for the sample count
> emit(double) is called instead of the integer variant. Could emit(int)
> please be changed to emit(long) so that the result is exported as integer?
Thanks, fixed:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901443
http://hg.openjdk.java.net/code-tools/jmh/rev/6609eea91d87
-Aleksey
More information about the jmh-dev
mailing list