<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body>
Thanks for the honourable mention :-)<div><br></div><div>I’m not sure my posts are still up to date, but the samples in the jmh repo are excellent.</div><div>There’s a talk from Shipilev on JMH, and many of his blog posts provide larger examples of how to apply JMH to a given problem.<br><br><span style="color: rgb(132, 115, 255); font-size: 15px; -webkit-text-size-adjust: auto;">On Saturday, August 17, 2024, 1:02 AM, Bernd Eckenfels <ecki@zusammenkunft.net> wrote:</span><br><blockquote class="iosymail"><div dir="ltr">Hi Ken,<br></div><div dir="ltr"><br></div><div dir="ltr">Yes JMH has Javadoc especially on API and Annotations, here for example on @Fork<br></div><div dir="ltr"><br></div><div dir="ltr"><a href="https://javadoc.io/doc/org.openjdk.jmh/jmh-core/latest/org/openjdk/jmh/annotations/Fork.html" target="_blank">https://javadoc.io/doc/org.openjdk.jmh/jmh-core/latest/org/openjdk/jmh/annotations/Fork.html</a><br></div><div dir="ltr"><br></div><div dir="ltr">There is however not an official render of the doc, so I always run the maven goal myself on jmh-core.<br></div><div dir="ltr"><br></div><div dir="ltr">Warmups are per Fork fork each test, there can also be Warmup Forks or batche warmups.<br></div><div dir="ltr"><br></div><div dir="ltr">When running rough tests with larger execution times warmups sometimes overshoot and sometimes using too little warmups also can be an issue, so for the impatient tuning them down helps (more shorter says more about variance). For measures that count I also calculate the number of calls for the iterations to makes sure it gets into hot code terretory (jmh does not warn you) <br></div><div dir="ltr"><br></div><div dir="ltr">I learned most about JMH from the official samples they have explaining comments and from Alexeis and Nitsans posts <br></div><div dir="ltr"><a href="http://psy-lob-saw.blogspot.com/p/jmh-related-posts.html" target="_blank">http://psy-lob-saw.blogspot.com/p/jmh-related-posts.html</a><br></div><div dir="ltr"><br></div><div dir="ltr">jmh.stack.period controls the stack sampling profiler, not sure if it’s worth spending time on it, period in ms!<br></div><div dir="ltr"><br></div><div dir="ltr"><a href="https://github.com/openjdk/jmh/blob/fedf7639176ea2b3e521950777808701e2c5cc1a/jmh-core/src/main/java/org/openjdk/jmh/profile/StackProfiler.java#L81" target="_blank">https://github.com/openjdk/jmh/blob/fedf7639176ea2b3e521950777808701e2c5cc1a/jmh-core/src/main/java/org/openjdk/jmh/profile/StackProfiler.java#L81</a><br></div><div dir="ltr"><br></div><div dir="ltr">Gruss<br></div><div dir="ltr">Bernd<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Kenneth Fogel wrote on 16. Aug 2024 20:45 (GMT +02:00):<br></div><div dir="ltr"><br></div><div dir="ltr">> (I may have used the wrong email address earlier today so sending this<br></div><div dir="ltr">> again)<br></div><div dir="ltr"><br></div><div dir="ltr">I think there is no user mailing list but I we keep the banter lo we might fly under the radar :)<br></div><div dir="ltr"><br></div><div dir="ltr">> If there is a better mailing list to ask my questions about the JMH then<br></div><div dir="ltr">> please let me know.<br></div><div dir="ltr">,,,,, <br></div><div dir="ltr">> The first most obvious question is if there are JavaDocs.<br></div><div dir="ltr">,,,<br></div><div dir="ltr">> When is a new JVM spun up for testing? Does it happen for every fork,<br></div><div dir="ltr">,,,<br></div><div dir="ltr">> What does this option mean:<br></div><div dir="ltr">> .jvmArgsAppend("-Djmh.stack.period=1") mean<br></div><div dir="ltr"><br></div><div dir="ltr">Gruß<br></div><div dir="ltr">Bernd<br></div><div dir="ltr">— <br></div><div dir="ltr"><a href="https://bernd.eckenfels.net" target="_blank">https://bernd.eckenfels.net</a><br></div><blockquote></blockquote></blockquote></div>
</body></html>