1 Billion nested loop iterations




Methodology

Ran each three times and used the lowest timing for each. Timings taken on an M3 Macbook pro with 16 gb RAM using the /usr/bin/time command. Input value of 40 given to each.


Code

You can find all of the code and the compile / run / cleanup scripts at the GitHub repository.