call vs apply (v53)

Revision 53 of this benchmark created on


Setup

var target = function() {
      return arguments;
    };
    
    var myObj = null;
    var arg = "arg";
    var arg1 = "arg";
    var arg2 = "arg";
    var argArr = [arg, arg1, arg2];

Test runner

Ready to run.

Testing in
TestOps/sec
Call
target.call(myObj, arg, arg1, arg2);
ready
Apply
target.apply(myObj, argArr);
ready
Call 2
 
ready
Apply 2
 
ready
Normal
 
ready
Braces
 
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.