Reputation: 77137
I'm curious about these jsperf results. They appear to demonstrate that a direct function call is substantially faster than the same function called with .call
or .apply
. (The difference between .call
and .apply
surprised me even more.) Could you please explain these results?
Update: Here is a jsperf that someone left that tests .apply without a second array instantiation.
Upvotes: 24
Views: 6972