Also -- Java versus Java native-image
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
IIRC the native image GC is still the serial GC by default. Which would probably perform the worst out of all the available GCs.
I know on HotSpot they’re planning to make G1 the default for every situation. Even where it would previously choose the serial GC.
[0] https://benchmarksgame-team.pages.debian.net/benchmarksgame/...