Test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
For of with entries
for (const [index, value] of ["a", "b", "c", "d", "e"].entries()) {
  console.log(index, value);
}
ready
forEach
["a", "b", "c", "d", "e"].forEach((value, index) => {
  console.log(index, value);
});
ready

Revisions

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