Today I heard about the GraalVM release 1.0 and as we use OpenJDK8 with and without Shenondoah GC already in production I thought it was time to make a simple speed comparison.
I executed some performance tests with 1GB RAM:
./graphhopper.sh measurement berlin-latest.osm.pbf
For the latest release 0.10.1 and got the following differences for the latest explosion of possibilities as a production JVM:
Every run was executed 3 times and the average number was used, where the default settings of the measurement action was used. All running on a plugged-in T460 linux laptop.
The import was too different probably because of the disc cache or too short running time. Have not listed it here.
So JDK10 is roughly 10% faster than JDK8. And the JVM with Shenandoah is 10% slower. So not really surprising and all in small boundaries.
Of course under load and production settings with much larger heaps this will be more interesting and look completely different and one should introduce a maximum observed pause time or something to see the value of Shenandoah, ZGC or Graal. Graal is recommended already for production load but I couldn’t find a binary release of 1.0. Although VMs with Shenandoah and ZGC are currently not marked as production ready several users (including us) reported that they use Shenandoah under production load. Here are some real values of Shenandoah compared to GC1 from 2017.
Here is a FOSDEM 2018 talk about ZGC (or video) and here is a technical intro video into Graal and here Shenandoah.
Update: Graal EE resulted in the following numbers:
route (ms) : 19
route CH (ms) : 1.39
route LM4 (ms) : 1.7
prepare CH (s) : 8-9
Normal routing is much slower compared to Graal CE or OpenJDK8.