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

JMH with OpenJ9 #4649

Closed
apete opened this issue Feb 7, 2019 · 6 comments
Closed

JMH with OpenJ9 #4649

apete opened this issue Feb 7, 2019 · 6 comments

Comments

@apete
Copy link

apete commented Feb 7, 2019

I get these warnings:

WARNING: Not a HotSpot compiler command compatible VM ("Eclipse OpenJ9 VM-11.0.2"), compilerHints are disabled.

WARNING: This VM is not supported by JMH. The produced benchmark data can be completely wrong.

Running the benchmark seems to work, but can I trust the numbers?

I'm running benchmarks to compare HotSpot and OpenJ9.

@dsouzai
Copy link
Contributor

dsouzai commented Feb 7, 2019

I asked our test team, and they said that the JMH Framework can be used. However, the microbenchmark tests that come with the framework may be specific to Hotspot; you'd have to take a look at each one individually to see what they measure.

Another alternative framework you could use to compare HotSpot and OpenJ9 is BumbleBench https://github.com/AdoptOpenJDK/bumblebench .

@apete
Copy link
Author

apete commented Feb 7, 2019

Thanks!

In that case maybe you're interested in the results: https://ojalgo.blogspot.com/2019/02/quick-test-to-compare-hotspot-and-openj9.html

I have some existing JMH benchmarks that I've used to compare pure java linear algebra libraries. Now I'm interested in using those to compare JVM:s instead.

@dsouzai
Copy link
Contributor

dsouzai commented Feb 7, 2019

Those results are interesting, thanks @apete ; I'll try to give the benchmark a spin at some point and see if there's anything that stands out in terms of why there's so much variability on the OpenJ9 runs.

@apete
Copy link
Author

apete commented Feb 8, 2019

The variability of OpenJ9 is consistent... I've executed other benchmarks as well. Comparing the results with what I'm used to see, performance is fluctuating.

I updated that blog post with results for the latest available community edition of Graal included as well. (Unfortunately it was based on OpenJDK 8.)

I also added links to the raw benchmark results if anyone want to verify what's shown in the charts.

I'll close this issue now as my original question has been answered.

@apete apete closed this as completed Feb 8, 2019
@andrewcraik
Copy link
Contributor

Just an additional comment on JMH - if your benchmarks use the CompilerOptions to change how HotSpot compiles then those configurations won't apply to OpenJ9 which could lead to different results. The ACM version of the bench is clearly not working as well as it might given the perf. I am looking at it and will create an issue here on the OpenJ9 project where we can make notes about how to make it better.

@apete
Copy link
Author

apete commented Feb 18, 2019

FYI

I did a follow-up comparison with HotSpot, Graal CE and Graal EE. While HotSpot is a natural benchmark now. Going forward Graal EE is the one to beat.

https://ojalgo.blogspot.com/2019/02/oracles-jvms-hotspot-graal-ce-graal-ee.html

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

No branches or pull requests

3 participants