Hacker News new | ask | show | jobs
by petre 1955 days ago
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.

1 comments

Now Ruby just needs someone putting Google-level resources into optimizing the runtime (since most of Node's performance comes from v8)
I don't think anyone put google-level cash into LuaJIT but it still manages to be pretty fast.