JMH numeric precision of auxiliary counters only 8 digits
Erich Schubert
erich at debian.org
Wed Sep 26 14:08:58 UTC 2018
The Aux Counters - even when long counters - are only written to the
JSON with float precision, with 8 digits of precision.
For large values, this loses some precision.
Given that the aux counter API only allows integer and long, printing
the raw values as float does not make sense.
We are currently doing some memory measurements using aux counters in
@TearDown, and these need more than 8 digits...
Regards,
Erich
P.S.
I also provided a patch in July to not print useless quantiles:
http://mail.openjdk.java.net/pipermail/jmh-dev/2018-July/002755.html
but I never got an answer...
Furthermore, I send an email to report that Aux counters should be
enabled for single-shot benchmarks, it wasn't even moderated yet?
Is there any actual issue tracker (github?) for JMH?
More information about the jmh-dev
mailing list