CSV result writer saves samples as floating point number
Sebastian Ramacher
sebastian.ramacher at iaik.tugraz.at
Fri Jun 5 11:06:01 UTC 2015
[Please CC me on replies, I'm not subscribed.]
Hi
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?
Cheers
More information about the jmh-dev
mailing list