4 ms·
It can be slow, or not. We wrote some serialization code in Elixir and Java, and the Elixir version was a little faster. It's good at that. On the other hand,
by bluesnowmonkey 9y ago
It can be slow, or not. We wrote some serialization code in Elixir and Java, and the Elixir version was a little faster. It's good at that.
On the other hand, I had some bit twiddling code that was 13x slower than C. I know because I rewrote that section into C as a NIF and benchmarked. The nice thing then was my overall 95% Elixir app became about as fast as a 100% C app.
- rurban 9y agoExactly, beam is a pretty slow and unoptimized VM, CPU wise. Which is not so important, as their strength is eliminating IO waits and context switches which are usually much costlier. Their GC is top notch.