3 ms·
for the official oracle view, see: https://www.oracle.com/technical-resources/articles/java/architect-benchmarking.html https://www.oracle.com/technical-resourc
by nqzero 5y ago
for the official oracle view, see: https://www.oracle.com/technical-resources/articles/java/architect-benchmarking.html https://www.oracle.com/technical-resources/articles/java/arc...
"JMH provides a [snip] foundation for writing and running benchmarks whose results are not erroneous due to unwanted virtual machine optimizations"
unsolicited personal opinion: they're almost always erroneous for other reasons
i'm not sure which optimizations are currently disabled
- aw1621107 5y agoHmmm. Wonderfully vague. Suppose I'd need to dig into the source to figure it out. To be fair, now that I think about it I suppose some deoptimizations make sense (e.g., preventing replacement of loops). Thanks for pointing me to that article!