3 ms·
I'm not sure why this is downvoted so hard because it's true. BEAM has massive advantages over MRI Ruby/Cython for concurrency and parallelism but not really mu
by jashmatthews 9y ago
I'm not sure why this is downvoted so hard because it's true. BEAM has massive advantages over MRI Ruby/Cython for concurrency and parallelism but not really much in sheer throughput.
For example, Sinatra + Sequel on MRI has a 50% lead in throughput over Phoenix + Elixir on BEAM here: https://www.techempower.com/benchmarks/#section=data-r15&hw=ph&test=fortune&l=hos0zj&f=zijxtr-zik0zj-zik0zj-zik0zj-zhxjwf-zijunz-zik0zj-cn3 https://www.techempower.com/benchmarks/#section=data-r15&hw=...
Bytecode VMs all have the same fundamental problem with instruction dispatch overhead, regardless of what language or paradigm they're supporting, which is why JIT is so important even though it's so much additional complexity.
JRuby is now 2-3x faster in general as the JVM improved support for hosting dynamic languages, and it's in heavy production use at places like TalkDesk, so in that sense it is the "faster Ruby".
There's also Topaz, which is Ruby built using the underlying framework of PyPy, but performance is disappointing AFAIK.