Please note that this is more reflection on my part, but still:
What I suspect is that the difference (by the way, Windows / OSX) in the overall runtime of your small test program has nothing to do with the code generated by the corresponding compiler.
From my experience working with console output on Windows, I strongly suspect that the bottleneck here is dragging personal data from your program to the Windows console and cmd.exe is displayed.
It just might be that the console / shell / bash on OSX accepts program output much faster than the Windows console.
What you can try is to redirect the output of this program to a file (using the redirection at startup in the CLI test.exe > output.txt ) and see if you can measure any difference this way.
source share