test

Benchmark created on


Setup

const array = [];
for(let index = 0; index < 10000; index++){
	array.push(Math.random())
}
data = array.entries()

Test runner

Ready to run.

Testing in
TestOps/sec
foreach
array.forEach((value,index) => index+value)
ready
for of
let index = 0
for (const value of data) {
  index+value
  index++
}
ready

Revisions

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