arrow vs bind

Benchmark created on


Setup

function doSomething(n) {
	return { value: n }
}

Test runner

Ready to run.

Testing in
TestOps/sec
Arrow
[...Array(100000).keys()].map(n => doSomething(n))
ready
Bind
[...Array(100000).keys()].map(doSomething.bind())
ready

Revisions

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