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

Revision 31 of this benchmark created on


Setup

function f(that){
    return that || this;
  };
  
  var bound = f.bind(this);

Test runner

Ready to run.

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

Revisions

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