News for hackers. Stuff that matters.
Re:Do you know how much your computer can do in a second? by CydeWeys on Sunday October 25, 2015 @09:36AM (#10446831)
Presumably they passed flags to gcc (or whichever compiler they used) to disable these optimizations, otherwise, you're right, they wouldn't make much sense if the code wasn't actually being run as presented.
Re:Do you know how much your computer can do in a second? by kbenson on Sunday October 25, 2015 @04:44PM (#10448332)
Interestingly, there's quite a bit that's needed to ensure you bypass some compiler optimizations. Here's an ey-opening (for me) talk[1] on benchmarking C++ and compilers which touched on it.

1: https://www.youtube.com/watch?v=nXaxk27zwlk