Our Spring Boot showcase application https://github.com/porscheinformatik/angular-spring-heroes starts ~ 10% faster on Java 17 compared to Java 11 (compiled with target 11).
- Java 8/11 uses ~ 550MiB
- Java 17 uses ~ 260MiB
(all run with Docker and a memory limit of 1GiB)[1] https://docs.spring.io/spring-native/docs/current/reference/...
[1] https://docs.spring.io/spring-native/docs/current/reference/...
TLDR: using the same GC (*), it's 4% to 16% faster (depending on the GC).
But be warned that if you don't set a GC, Java 8 uses Parallel GC (high throughput, so faster) by default and Java 11 uses G1 GC (low latency, so less hickups) by default.