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

     
    for (var i = 0; i < array.length; i++) {
      array[i];
      if (i === 877) {
        result = true;
      }
    }
  • some

     
    array.some(function(i) {
      return array[i] === 877;
    });
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    for
    some

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Chrome 89 on Mac OS X 10.15.4
View result in a separate tab
Test name Executions per second
for 4676.2 Ops/sec
some 420012.0 Ops/sec