JDK 17 and GraalVM benchmarking #4080
-
Hello everybody, I've started recently discovering Graalvm, Micronauts, and some new other tools. I have watched many videos like this one https://www.youtube.com/watch?v=iXCVaQzXi5w&ab_channel=OracleDevelopers and did everything the same, but I didn't find any big difference in Benchmarking between Graalvm and JVM and I can't actually know what is the problem. I'm using Graalvm 21 and java 17 to make the comparison. I'm using sdkman to install and switch between different java versions. Note: I have tried the same example in Alina talk, and some other examples and I can't find the big difference in Benchmarking between both. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @ahmedeldeeb25, Thank you for asking this, I haven't run this example in a while. Just to clarify something here - in JIT mode, which we are talking about here, the GraalVM compiler actually runs in the context of a JVM. So, I ran this app again with GraalVM Community 21.3 on my machine (which is not a proper benchmarking environment, but can give some basic understanding), and here are my results:
Now disabling it:
which is about 33% speedup. |
Beta Was this translation helpful? Give feedback.
-
@ahmedeldeeb25 you're welcome:) If you are interested in performance, particularly around startup, might also check out native image: https://www.graalvm.org/native-image/ For example this app is easy to start with and it shows clear benefits: https://guides.micronaut.io/latest/micronaut-creating-first-graal-app.html Let me know if you need more help:) Alina |
Beta Was this translation helpful? Give feedback.
Hi @ahmedeldeeb25,
Thank you for asking this, I haven't run this example in a while. Just to clarify something here - in JIT mode, which we are talking about here, the GraalVM compiler actually runs in the context of a JVM. So, I ran this app again with GraalVM Community 21.3 on my machine (which is not a proper benchmarking environment, but can give some basic understanding), and here are my results:
With the GraalVM compiler: