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.
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.rbruby --yjit
Enables YJIT, the built-in JIT compiler.
ruby --yjit {harness}/harness.rb {src}/main.rbEvery release (default build)
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.
The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.
Release highlights
- Ruby 4.0 2025-12-25Ruby 4.0 release · ZJIT compiler introduced
- Ruby 3.4 2024-12-25Prism is the default parser · Modular GC support
- Ruby 3.3 2023-12-25YJIT performance improvements · Prism parser introduced
- Ruby 3.2 2022-12-25
- Ruby 3.1 2021-12-25
- Ruby 3.0 2020-12-25
- Ruby 2.7 2019-12-25
- Ruby 2.6 2018-12-25
- Ruby 2.5 2017-12-25
- Ruby 2.4 2016-12-23
Badge
Show this language's overall rank in your README or website:
[](https://stijnris.github.io/language-bench/languages/ruby/)<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>