I was only able to find three points this time:
- Mean precision: You still accumulate
meanDurationas along. Dividing later truncates precision. Switching todoublethroughout would avoid loss. - Standard deviation formula: You’re using population SD (
nin denominator). If you want sample SD, IMO, you should use(n - 1). Right now, results may understate variability for small samples. - Formatting consistency:
toString()mixes formatted longs with raw doubles. Consider formatting all values withNumberFormatorDecimalFormatfor uniformity.
You might as well put MINIMUM_ITERATIONS high enough to get reasonnablereasonable results. That is all I was able to spot.