function calls: apply, call, and arguments (v13)

Revision 13 of this benchmark created on


Setup

var Obj = function() {};
    Obj.prototype.foo = function(f) { return f.call(this); };
    Obj.prototype.bar = function(f) { return f(); };
    
    var obj = new Obj();
    
    var f0 = function() { return this; }
    var f1 = f0.bind(obj);

Test runner

Ready to run.

Testing in
TestOps/sec
call
obj.foo(f0);
ready
bind
obj.bar(f1);
ready

Revisions

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