Looping code was written to be compatible with both engines. It simply does nested loops with multiplication in the body.
- Conclusion: V8 is way faster.
- Caveat: This does not paint a complete picture.
for loop took 1.616 seconds
for loop (optimised) took 1.678 seconds
.forEach loop took 1.451 seconds
.map loop took 3.345 seconds
for loop took 0.004 seconds
for loop (optimised) took 0.002 seconds
.forEach loop took 0.017 seconds
.map loop took 0.031 seconds