3 ms·
When Rails came out, Ruby was the slowest language by far because its interpreter literally just walked an AST. No intermediate byte code, no VM, it just eval'd
by sdegutis 7y ago
When Rails came out, Ruby was the slowest language by far because its interpreter literally just walked an AST. No intermediate byte code, no VM, it just eval'd an AST. This reputation stuck longer though, although yeah I imagine Ruby is still slower than Python and Node even now despite having a VM.
- tibbon 7y agoWhen the JIT really gets rolling mainstream, it could help quite a bit. Performance (3x over v2) is a primary goal of Ruby 3. https://developers.redhat.com/blog/2018/03/22/ruby-3x3-performance-goal/ https://developers.redhat.com/blog/2018/03/22/ruby-3x3-perfo...
- alceta 7y agoCurrent stable version Ruby 2.6.2 with --jit is actually faster than Python 3 according to this: https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/ruby.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- igouy 7y agoAnd actually slower also.