I did a jsPerf test to find out if there are differences in performance between using arguments or local variables in a function in JavaScript.
There were virtually no differences in Firefox 34. However, in Chrome 39, the compiler seems to do a lot of damage. See the following results:

Can anyone explain why this is happening?
source
share