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.
Activity Over Time
Top Contributors
Keywords
Sample Comments
If that's the case why is Ruby slower?
In Ruby land, JRuby is significantly faster than CRuby since 9.0. It has a proper IR for optimization and can inline etc.
I wonder if Ruby's VM will ever become as fast as the JVM
Does this work put Ruby into a faster category than Python until if/when Python gets a JIT in its official implementation?
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.
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.
Not really.Work has been done to make faster Ruby language implementations.https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
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.
Don't use Ruby if performance counts. It's that simple.
Anyone have any performance comparisons against other Ruby implementations? I assume performance is the main reason someone would adopt this right?