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

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

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

     
    array.some(function(item, index) {
      array[i];
    });
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: 8 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:48.0) Gecko/20100101 Firefox/48.0
Firefox 48 on Mac OS X 10.10
View result in a separate tab
Test name Executions per second
for 1551012.5 Ops/sec
foreach 3986104.5 Ops/sec
some 3928042.0 Ops/sec