jitwatch icon indicating copy to clipboard operation
jitwatch copied to clipboard

Add JMH in Sandbox

Open Thihup opened this issue 1 year ago • 1 comments

Would it be possible to somehow add JMH in the Sandbox window?

It would help to do microbench more correctly than using a hot loop.

Thihup avatar Oct 27 '23 11:10 Thihup

Hi @Thihup I think it's possible but I can't comment on what interactions running JMH from within JITWatch might have on the results. I suppose if it's only for sandbox-type experiments it might be OK.

For less chance of side effects, I'd recommend running JMH with -XX:+LogCompilation on the command line and then loading the resulting log file into JITWatch which is something I do often and works fine.

chriswhocodes avatar Oct 27 '23 19:10 chriswhocodes