Skip to news
JQJO
Latest

Ruby JITs and Ractors Advance Performance | JQJO

Ruby JITs and Ractors Advance Performance

Tap title to read story

0:00 / 1:29

Ruby is taking new approaches to performance, from JIT compilation to parallel execution.

Explore how YJIT, ZJIT, and Ractors are evolving, the engineering decisions behind them, and what these changes mean for Ruby developers.

Ruby performance is improving on two fronts: YJIT and ZJIT are changing how Ruby compiles and executes code, while Ractors make it possible to run independent workloads in parallel.

They solve different problems: JITs make Ruby code run faster, and Ractors let it run on more cores.

In short: YJIT is Ruby's production‑ready JIT today.

ZJIT, which shipped as experimental in Ruby 4.0, reached YJIT‑level response times at Shopify in October 2026 with about 19% less JIT memory.

Ractors, Ruby's model for true parallelism, get per‑Ractor garbage collection in Ruby 4.1, which removes a major source of cross‑Ractor pauses.

Ruby has two different performance challenges.

Making a program faster is not always the same as making it execute more work at once.

Consider a CPU‑intensive Ruby operation.

It might spend most of its time executing Ruby instructions, performing method calls, and allocating objects.

Improving the execution of those instructions can make the entire operation faster.

Now consider an application processing several independent workloads.

Even when a machine has multiple CPU cores available, traditional Ruby threads cannot execute Ruby code simultaneously on all those cores within the same CRuby process.

Just‑in‑time (JIT) compilation addresses the first problem.

It analyzes code while a program is running and compiles frequently executed paths into native machine instructions.

Published · Published by JQJO

Published by JQJO Editorial Desk · AI assisted

More context

Timeline

  1. On April 5 2025 YJIT receives major upgrades in Ruby 3.2, becoming production‑ready.
  2. On May 15 2025 Ruby merges new JIT compiler ZJIT, built by YJIT team.
  3. On December 25 2025 Ruby 4.0 released with experimental Ruby::Box and ZJIT support.
  4. On August 20 2026 Jetthoughts guide compares YJIT vs ZJIT performance in Ruby 4.0.

Why it matters

YJIT’s production readiness in Ruby 3.2 boosts mainstream Ruby deployments, reducing latency for high‑traffic sites. ZJIT’s 19% lower memory footprint at Shopify in 2026 signals a shift toward lighter, faster Ruby services.”,

Coverage notes

Tech desks at IBM and ScoutAPM highlight Ruby’s performance gains for enterprise monitoring. Stack Overflow and GitHub communities discuss YJIT vs ZJIT, driving developer adoption.

Primary report

TheWiggles — Ruby JITs and Ractors Advance Performance

Sources

JQJO Editorial Desk · Human reviewed · AI assisted. Report a correction.

Editorial policy and corrections · Our team

Toliver Debuts on SNL Stage

Tap title to read story

0:00 / 0:00

Justice Petition for Chef Jie Cai

Tap title to read story

0:00 / 1:17

Jahmyr Gibbs Nears Lions Record

Tap title to read story

0:00 / 1:02

JQJO

Find your next story

Search JQJO’s current coverage.