AOT or JIT: Faster Startup or Faster Code
summary
Compares AOT vs JIT with concrete numbers and tools: GraalVM native image claims ~50× faster startup and ~5× smaller footprint; analysis finds >50% of JIT gains come from speculative optimizations, so pure AOT loses those wins. Describes Azul’s approach: Azul Prime ReadyNow! captures profiles (classes, inits, profiling data, mis-speculations) to restart at ~98% peak and uses compile stashing to cut compile time ~80% and CPU load ~60%. Presents CRaC checkpoint/restore demo shrinking Spring Boot cold-start ~4s → 38ms.
AI-written summary · about
chapters (18)
- 0:00Intro
- 1:26JVM Performance Challenges
- 4:35Microservice-Based Application
- 7:36Microservice Performance Challenges
- 11:10Java Compilers: Ahead of Time (AOT)
- 17:07Compilers: Justin Time (JIT)
- 19:02Speculative Optimisations
- 25:07Graal VM For Java Applications
- 26:55Open JDK Project Leyden
- 28:30The Azul Prime JVM
- 30:11ReadyNow! Solution
- 32:47ReadyNow! Effect
- 34:20Falcon Pipeline
- 35:10Deterministic Compiler
- 35:53Add Compile Stashing
- 36:29Compile Stashing Effect
- 37:45Co-ordinated Restore at Checkpoint (CRC)
- 41:34Faster Startup or Faster Code
