I find this benchmark a bit disorganized, but it seems that the "hand-written" Julia function is as slow as the "hand-written" C function.
The C function is of course naive. I'm pretty sure that a hand-unrolled loop would be faster.
The C function is of course naive. I'm pretty sure that a hand-unrolled loop would be faster.