function calls: direct vs apply vs call vs bind (v39)

Revision 39 of this benchmark created on


Setup

var f = function() {
      this.dirty = true;
    };
    
    var bound = f.bind(null);
    var o ={
       f: f
    };

Test runner

Ready to run.

Testing in
TestOps/sec
direct
o.f();
ready
apply
o.f.apply(null);
ready
call
o.f.call(null);
ready
bind
bound();
ready

Revisions

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