for loop map

Benchmark created on


Setup

const arr = [];
for (int i = 0; i < 10000000; i++){ 
	arr.push(i)
}

Test runner

Ready to run.

Testing in
TestOps/sec
for
for (int i = 0; i < 10000000; i++){ 
	a[i]++;
}
ready
map
arr.map((e) => e++);
ready

Revisions

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