Elixir NIF performance compared to native C++

I have made a simplified version of the code.

https://github.com/chungwong/ex_nif

After considering parallel execution and some tweak to C++ compilation,

Parallel 1 in Benchee is around 2.3k IPS and Native C++ is about 2k or so, so they are similar now.

But I still feel Elixir NIF is faster.