The recent language comparison repo shows CRuby as the third slowest option, surpassing only R and Python. @BenjDicken visualized each language’s performance, highlighting Ruby as the third slowest language benchmarked. The repository is for creating small benchmarks comparing languages, with examples of “Loops” and “Fibonacci.” Interestingly, YJIT significantly boosted Ruby’s Fibonacci performance, making it close to node.js speed. Various optimizations were discussed, including Integer#times conversion and Array#each changes. Microbenchmarking Ruby performance on different versions yielded surprising results, with some methods running slower than expected. The impact of YJIT on different examples was also explored, hinting at possible future improvements in Ruby’s performance.
https://jpcamara.com/2024/12/01/speeding-up-ruby.html