The World of Java Optimisation By Holly Cummins

Creators:: Tradeoffs, Bad Science, and Polar Bears
Title:: The World of Java Optimisation By Holly Cummins
Date:: 2023-10-05
Source:: https://youtu.be/PvZaDo_I21g

Slides: https://hollycummins.com/tradeoffs-bad-science-and-polar-bears-the-world-of-java-optimisation-devoxx-be/

Performance

performance can be:

trade-offs:

Frameworks & Runtimes

HotSpot vs. OpenJ9

Tradeoffs, Bad Science, and Polar Bears – The World of Java Optimisation By Holly Cummins-20240203141957512.webp

Primary source: https://github.com/eclipse/openj9-website/blob/master/benchmark/daytrader7.md

→ OpenJ9 has a faster startup time and smaller memory footprint than HotSpot, however HotSpot has a higher throughput

GraalVM vs. OpenJDK

trading-off flexibility and throughput against startup speed and footprint

→ use GraalVM for ephemeral services or serverless
→ use OpenJDK for long running applications

Quarkus (OpenJDK) vs. Spring

trade-offs:

How to optimize?

Tools

Carbon

cost: leading indicator for carbon
performance: leading indicator for carbon

Tradeoffs, Bad Science, and Polar Bears – The World of Java Optimisation By Holly Cummins-20240203204633871.webp

Tradeoffs, Bad Science, and Polar Bears – The World of Java Optimisation By Holly Cummins-20240203204649472.webp

Tradeoffs, Bad Science, and Polar Bears – The World of Java Optimisation By Holly Cummins-20240203204731779.webp

Quarkus cuts carbon by ~2-3x
→ native consumes more carbon than JVM