bind vs no bind vs apply vs call

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
apply
function x() {
	return 1;
}

x.apply(this);
ready
bind
function x() {
	return 1;
}

x.bind(this)();
ready
no bind
function x() {
	return 1;
}

x();
ready
call
function x() {
	return 1;
}

x.call(this);
ready

Revisions

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