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

     
    for (var i = 0; i < array.length; i++) {
      array;
    }
  • foreach

     
    array.forEach(function(item, index) {
      array;
    });
  • some

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

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    for
    foreach
    some

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0
Firefox 72 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
for 2148271.5 Ops/sec
foreach 9247703.0 Ops/sec
some 8558061.0 Ops/sec