Optimizing JRuby 10
summary
JRuby 10 ships with Ruby 3.4 compatibility and requires Java 21, and startup improves using app CDS with future gains expected from project leaden AOT caching and project crack checkpoints. Pure Ruby microbenchmarks show CRuby 3.4 ≈15 iters/s on a red‑black tree while JRuby outperforms YJIT; object allocation goes from ~10.3M/sec in CRuby (13M with Aaron’s patch) to hundreds of millions/sec on modern JVMs. Fibers move from ~49 iters/s with native threads to much faster rates using Loom virtual threads; ActiveRecord adapters remain the main Rails friction.
AI-written summary · about
chapters (11)
- 0:00Introduction and JRuby 10 release
- 3:36Ruby compatibility progress
- 6:55Rails 8 compatibility challenges
- 7:16Startup time optimizations
- 11:47Straight-line performance gains
- 14:19Fibers and virtual threads
- 15:44Object allocation optimizations
- 19:14Ruby Data class performance
- 20:20Concurrency with threads vs Ractors
- 23:55Ruby beyond Ruby with JRuby
- 26:43Future optimizations and community help








