Patch: do not report percentiles that are just the maximum

Erich Schubert erich.schubert at gmail.com
Wed Jul 4 15:32:53 UTC 2018


The attached patch adds a threshold for the reported quantiles.

For example, for 10 measurements, it will report the 50% and 90% 
quantiles, but it will no longer report the 95%, 99%, 99.9%, 99.99%, 
99.999% and 99.9999% quantiles as before, which were simply equal to the 
maximum, so completely redundant information & misleading.

The logic is straightforward. getMaxPercentile() returns the maximum 
percentile supported by the data, assumed to be the location of the last 
measurement on the empirical CDF. For anything larger than this, the 
getPercentile() function will simply return the maximum.

IMHO, the thresholds should even be set more conservative...

Regards,
Erich

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


More information about the jmh-dev mailing list