News for hackers. Stuff that matters.
Re:Always return on events is faster, but why? by callum85 on Friday October 18, 2013 @06:30AM (#6570645)
Both functions return "undefined". They should be identical after JIT compilation.

The only thing I can imagine taking longer would be the compilation step itself... but I had always assumed jsPerf didn't work like this, i.e. I thought it would wrap the test code in a 'for' loop and then eval the whole loop, rather than doing the eval call inside the loop.

There are no comments on this comment yet.