Java 21 vs. Java 11 - practical comparison
Introduction This study aims to compare some metrics related to Java 11 and Java 21 applications and based on it, approximate the value of savings due to migration. In the tests I used following JDKs: - for Java 11: Coretto openjdk 11.0.19 2023-04-18 LTS - for Java 21: Oracle openjdk 21.0.1 2023-10-17 Hardware: - model: Lenovo Y50-70 - RAM: 16GB DDR3 1600MHz - CPU: Intel Core i7-4720HQ (Quad Core, 2.6GHz - 3.6GHz, 6MB Cache) - OS: Ubuntu Desktop 22.04.3 LTS Application which I've tested is available here Tested aspects Each test was done 10 times, one by one. Collected values description: - application start time – logged in application output: - application initial memory usage – RAM memory usage after application started (by PID from app logs): - application memory usage after init – RAM memory usage after sending request to application endpoint (by PID from app logs): ...