If I do the following:
var abs = Math.abs;
Shoudn't abs(-10)
be faster than Math.abs(-10)
? Because abs is called directly.
This is what called my attention:
Math.abs vs custom abs function
Update:
The same test performed in the Internet Explorer 11 shows a completely different result:
I'd speculate that this is due to some optimizations on built-in functions in Chrome's V8 Engine.
A test created by nnnnnn that clarifies what I am trying to say: Property shortcut