bind vs none

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
no bind
let result = 0;
function x() {
	return ++result;
}

x();

console.log(result)

ready
with bind
let result = 0;
function x() {
	return ++result;
}

const y = x.bind(this);

y()

console.log(result)

ready

Revisions

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