Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JMH in Sandbox #378

Open
Thihup opened this issue Oct 27, 2023 · 1 comment
Open

Add JMH in Sandbox #378

Thihup opened this issue Oct 27, 2023 · 1 comment

Comments

@Thihup
Copy link

Thihup commented Oct 27, 2023

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.

@chriswhocodes
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants