language-bench

Ruby

The reference CRuby (MRI) interpreter: bytecode VM with a global VM lock and a generational, incremental garbage collector. Optional YJIT compiler.

www.ruby-lang.org ↗
Overall speed rank
-
no data yet
Latest release
4.0
10 tracked releases since 2016
Strongest on
-
Weakest on
-

Performance by problem

Newest release (4.0), default build (ruby). The index is how many times slower this language is than the fastest entry on that problem (1.00× = fastest); rank is among all languages.

No benchmark sessions have been recorded yet.

The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.

Build settings

ruby default

Default interpreter, JIT off.

ruby {harness}/harness.rb {src}/main.rb

ruby --yjit

Enables YJIT, the built-in JIT compiler.

ruby --yjit {harness}/harness.rb {src}/main.rb

Every release (default build)

No benchmark sessions have been recorded yet.

The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.

Speed across releases

Did Ruby get faster? Every tracked release plotted at its release date, one line per build setting. Shows time, memory or binary size over all problems by default.

No benchmark sessions have been recorded yet.

The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.

Release highlights

  1. Ruby 4.0 2025-12-25
    Ruby 4.0 release · ZJIT compiler introduced
  2. Ruby 3.4 2024-12-25
    Prism is the default parser · Modular GC support
  3. Ruby 3.3 2023-12-25
    YJIT performance improvements · Prism parser introduced
  4. Ruby 3.2 2022-12-25
  5. Ruby 3.1 2021-12-25
  6. Ruby 3.0 2020-12-25
  7. Ruby 2.7 2019-12-25
  8. Ruby 2.6 2018-12-25
  9. Ruby 2.5 2017-12-25
  10. Ruby 2.4 2016-12-23

Badge

Show this language's overall rank in your README or website:

PreviewRuby rank on language-bench
Markdown[![Ruby on language-bench](https://stijnris.github.io/language-bench/badges/ruby.svg)](https://stijnris.github.io/language-bench/languages/ruby/)
HTML<a href="https://stijnris.github.io/language-bench/languages/ruby/"><img src="https://stijnris.github.io/language-bench/badges/ruby.svg" alt="Ruby on language-bench"></a>