You need to compile with both `-d:release` (removes stacktraces and uses -O3) and `-d:danger`.
Using `-d:danger` only is like compiling C with no optimization. I'll have a look later. In my experience Nim is as fast as C, especially for low-level stuff.