There's a fantastic, massively upvoted StackOverflow post that can also provide some insight here. This may be a little more accessible, since it's such a significant runtime difference with very simple source code.
http://stackoverflow.com/questions/11227809/why-is-it-faster...
Thanks so much for sharing this, great read !
For those, like me, that want to play with what this stackoverflow talks about, here's a fiddle of it: https://jsfiddle.net/tbinetruy/Latkmk2q/1/ (code takes 2s to run and loads firebug for console logs).
Re:Operation Costs in CPU Clock Cycles
by woliveirajr on Friday November 11, 2016 @05:18PM
(#12934996)
The question is very interesting and good phrased, and the answer is better than many classes that many students had about processors and so on.
Edit: never mind, it was not a Intel guy. And i actually had the thing bookmarked (and it still worked).
https://www.infoq.com/presentations/click-crash-course-moder...