> Unsurprisingly, Rust outperforms Elixir by 2 orders of magnitude.<p>That seems very surprising to me. Is this a common result? I've heard that the BEAM is not the best for "number crunching" code, is this one of those scenarios? Is this really just the raw performance of the languages, or a difference in algorithms? There's also no mention of the version of Elixir and the OTP. Did the JIT change anything?
I wonder if they looked into using <a href="https://github.com/asaaki/cmark.ex" rel="nofollow">https://github.com/asaaki/cmark.ex</a> which is an already made Markdown Elixir NIF written in C. No glue code needed since the package already exists.<p>Back when I was writing Elixir, it's what I used to process Markdown and it was also substantially faster than the native Elixir Markdown library (Earmark).
For someone who does not know much about NIFs, will it be a lot slower if the Rust service is coded as a command line application and then invoked using System.cmd? Is that a good alternative?