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

Revision 28 of this benchmark created on


Setup

function f() {
        return this;
    }
    var that = {
        f: f
    };

Test runner

Ready to run.

Testing in
TestOps/sec
direct
that.f();
ready
apply
f.apply(that);
ready
call
f.call(that);
ready
eval
eval("that.f()");
ready

Revisions

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