Test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
.map
const t = [1,2,3,4,5,6,7,8,9,10]

const myF = () = > (
	t.map(i => i * 2)
)

const d = myF()
ready
for
const t = [1,2,3,4,5,6,7,8,9,10]

const myF = () = > {
	let i = [];
	for (let i = 0; i < t.length; i++) {
		i.push(t[i] * 2)
	}
	return i
}

const d = myF()
ready

Revisions

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