C version
This is slightly cheeky. I thought it would be useful to have a non-GC'd language as a "control", to verify that the pauses we are seeing are indeed due to language runtimes, and not just the peculiarities of the OS, clocks, etc.
On my machine, this C version has max pauses of around 1.5ms!