call vs apply (v3)

Revision 3 of this benchmark created on


Setup

var ARGS = ["YES", "NO", "MAYBE", "SOMETIMES"];
    function Obj() {
          var that = "that";
    }
    Obj.prototype.target = function(test) {
       return test;
    };

Test runner

Ready to run.

Testing in
TestOps/sec
apply
Obj.prototype.target.apply(this, ARGS);  
ready
call
Obj.prototype.target.call(this, "YES", "NO", "MAYBE", "SOMETIMES");
ready

Revisions

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