Re:Why Wasn't Ruby 3 Faster?
by bdcravens on Thursday February 11, 2021 @12:18AM
(#26098491)
The same also applies to Javascript.
[ Parent
| on HN ]
Yup, only the Node runtime is very fast, pretty much 2x-3x times faster than Python 3.6 and Perl 5.26 and 4-5x faster than Ruby 2.4 for non I/O operations (loop, push to array, set hash keys). Only Lua and Luajit beats it. Raku/Perl6 was still slower than Ruby last time I checked. My tests were crunching primes and the Raku foreach loop had worse performance than the loop statement (ugly C-style loop). For number crunching Raku is slower probably because of the rational math.
Anyway, I like Ruby more than any of those languages, so hopefully speed in 3.0 is at least on par with Python and Perl now.
Now Ruby just needs someone putting Google-level resources into optimizing the runtime (since most of Node's performance comes from v8)