Script Preparation code:
AخA
 
var array = new Array(100);
var i = 0;
Tests:
  • 1

     
    for (i; i < array.length; i++) {
      console.log(i);
    }
  • 2

     
    array.forEach(function(item, index) {
      console.log(item);
    });
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    1
    2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36
Chrome 81 on Windows 7
View result in a separate tab
Test name Executions per second
1 1544660.9 Ops/sec
2 569581.7 Ops/sec