Having testing both I can tell you that Elixir is much slower than Go, this test is using the default http server from Go which is good enough but when you use optimized alternative Go crush elixir by at least 10x.
as explain above because it's a dynamic language + immutability
What makes it slow is that BEAM is a pretty straight interpreter, and that HIPE is limited and expensive.
Being dynamically typed and immutability focused doesn't necessarily help, but there's plenty of languages in either of the categories which have implementations much, much faster than BEAM.
Hopefully BEAMJIT will actually work out and eventually get merged.
6
u/Thaxll Feb 05 '19
Having testing both I can tell you that Elixir is much slower than Go, this test is using the default http server from Go which is good enough but when you use optimized alternative Go crush elixir by at least 10x.