apply vs call vs bind vs eval (v29)

Revision 29 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.