Ruby Performance

Cluster discusses Ruby's speed and performance improvements in implementations like JRuby, TruffleRuby, and YJIT, including comparisons to MRI/CRuby, Python, Java, and other languages, with debates on whether Ruby is too slow for certain uses.

📉 Falling 0.4x Programming Languages
3,492
Comments
20
Years Active
5
Top Authors
#4612
Topic ID

Activity Over Time

2007
17
2008
83
2009
167
2010
139
2011
255
2012
205
2013
373
2014
166
2015
211
2016
234
2017
160
2018
187
2019
150
2020
213
2021
231
2022
173
2023
245
2024
119
2025
161
2026
3

Keywords

RAM IMHO JIT jpcamara.com M1 mri.html IR youtube.com RubyEncoder BASIC ruby mri jit performance crystal faster ms benchmarks code slower

Sample Comments

cutler Sep 26, 2020 View on HN

If that's the case why is Ruby slower?

jashmatthews Sep 12, 2019 View on HN

In Ruby land, JRuby is significantly faster than CRuby since 9.0. It has a proper IR for optimization and can inline etc.

valorzard Sep 13, 2025 View on HN

I wonder if Ruby's VM will ever become as fast as the JVM

frou_dh Jan 17, 2023 View on HN

Does this work put Ruby into a faster category than Python until if/when Python gets a JIT in its official implementation?

vinceguidry Dec 25, 2022 View on HN

You can still use Ruby if you have a need for speed. Try JRuby, TruffleRuby, or mruby depending on the application. But be sure that MRI isn't fast enough. MRI will improve faster than any of the others.

warmwaffles Dec 27, 2013 View on HN

Well there is a JRuby and Rubinius comparison. Those are different implementations of the the interpreter. Ruby will never be faster than C, but this site is aiming to show the improvements over time.

igouy Dec 6, 2024 View on HN

Not really.Work has been done to make faster Ruby language implementations.https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

pelasaco Jan 4, 2023 View on HN

did you benchmark Jruby or TruffleRuby? Did you compile c-ruby with jemalloc? Normally the "ruby is slow" argument, is based on not being involved with ruby and solving real problems with it. Some people will just LOL this argument even harder if you add development time and code maintenance costs on that equation.

ahoka Apr 25, 2017 View on HN

Don't use Ruby if performance counts. It's that simple.

rubyfan Dec 2, 2016 View on HN

Anyone have any performance comparisons against other Ruby implementations? I assume performance is the main reason someone would adopt this right?