We've been lied to: JavaScript is fast
In the past when I have written basic benchmarking code like the first example, the compiler will typically optimize all the code away.<p>I am curious why this did not happen or what optimization flags were passed in.<p>If it was prevented optimization through flags, is this a fair test?