map arrow vs function

Benchmark created on


Setup

arr = new Array(1000).fill(null)

Test runner

Ready to run.

Testing in
TestOps/sec
arrow
arr.map((a,i) => i)
ready
func
arr.map(function (a,i) {
	return i
})
ready

Revisions

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