I.e. the difference in speed here is a difference in elbow grease.
I have yet to come into an optimization problem where you cannot reach the speed you can achieve in C in Nim.