r/java • u/woj-tek • Sep 30 '26
OpenJDK vs. GraalVM vs. Eclipse Temurin vs. Semeru Java Performance
https://www.phoronix.com/review/openjdk-graalvm-temurin-semeru/
65
Upvotes
r/java • u/woj-tek • Sep 30 '26
9
u/woj-tek Sep 30 '26
I'm kinda surprised that in some benchmarks (eg. Java SciMark2) Java 25 got better results than Java 27…
13
u/elmuerte Oct 01 '26
The results look rather dubious. Why would there be quite often some significant difference between OpenJDK 25.0.2 and Temurin 25.0.4.1. Temurin should basically just be compiled distributions of vanilla OpenJDK.
14
u/AnyPhotograph7804 Sep 30 '26
Thank you. Unfortunately, they did not document, which JVM parameters they used.
3
u/agentoutlier Oct 01 '26
Recommendation from an old dev:
You should take all benchmarks that are not run on your platform (hardware) and your workload as mostly just noise and that you may need to tune from the defaults.
Now more than ever it is incredibly easy to just pump out benchmarks. I know many developers do not like AI for various reasons but this is one area they are actually pretty good at it. That is setting up the benchmarks. You still need to inspect how they set it up but at least it avoids tedium and you can automate the triggering of it on each CI build. Every now and then have a frontier model have a look.
But YOU still need to interpret the results and run profiling. The agents are pretty bad at guessing why things are slow... actually so are humans.
6
u/bobbie434343 Sep 30 '26 edited Sep 30 '26
Are these benchmarks worth anything in term of methodology and results ? Benchmarking stuff properly is hard.
4
u/fykup Sep 30 '26
I’m still trying to decide whether GraalVM is actually worth using as a general replacement for OpenJDK when hosting JVM applications.
What makes the discussion difficult is that a lot of the feedback I’ve encountered comes from people who already strongly favor GraalVM: “just use GraalVM,” while sometimes overlooking workloads or performance characteristics where it doesn’t necessarily come out ahead.
And memory isn’t my only concern. Startup time, throughput, warm-up, compatibility, operational simplicity, and behavior under sustained load can all matter depending on the application.
That’s also why in my own experiments I usually stick to mainstream OpenJDK configurations. I want the results to represent what people commonly deploy, rather than choosing a more specialized runtime because it happens to optimize one particular dimension.
It’s great to see GraalVM continuing to improve, and benchmarks like these make it more interesting. But for general JVM hosting, I’d still default to mainstream OpenJDK until I see a consistently compelling practical advantage across the broader set of tradeoffs. For now, I see GraalVM as a specialized option rather than the obvious default.
2
u/gilactic Sep 30 '26
It would be interesting if they had also tested the Azul JVM (the one that you have to pay for; the free one should be the same as OpenJDK here.)
1
u/stefanos-ak Oct 01 '26
some weird results, also a bit unfair to Semeru, which runs with literally half the non-heap memory. Depends what your goals, requirements and needs are.
1
u/jdizzle4 Oct 01 '26
the amount of ads on this blog was incredibly distracting
1
u/Upper-Relation-2672 29d ago
If you are going to use polyglot context, it is better to use GraalVM JDK, it is optimized
0
u/Electrical_Being_813 Oct 01 '26
It makes semeru look worse than it is.