The ZJIT team is using Perfetto to visualize and analyze performance issues in Ruby's just-in-time compiler, particularly focusing on side-exits where code falls back to the interpreter. They share statistics from the Lobsters benchmark showing high rates of type and shape guard failures as primary exit reasons. This tooling helps identify optimization opportunities to keep code running in compiled form more consistently.
Background
Just-in-time compilers like ZJIT aim to improve runtime performance by compiling code during execution, but performance drops when falling back to interpreter mode. Perfetto is a platform for performance instrumentation and trace analysis.
- Source
- Lobsters
- Published
- Apr 24, 2026 at 05:47 AM
- Score
- 6.0 / 10