Script Preparation code:
Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 10 runs
for loop
127.8M/s
Array.prototype.findIndex
2K/s
Array.prototype.find
1K/s

Fastest: for loop (88901.8x faster)

View exact numbers
  • for loop: 127,826,120 ops/sec
  • Array.prototype.findIndex: 1,517 ops/sec
  • Array.prototype.find: 1,438 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.prototype.find
    Array.prototype.findIndex
    for loop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
Chrome 148 on Mac OS X 10.15.7
View result in a separate tab
for loop
176.8M/s
Array.prototype.findIndex
2K/s
Array.prototype.find
2K/s
View exact numbers
Test name Executions per second
for loop 176,774,464 Ops/sec
Array.prototype.findIndex 1,698 Ops/sec
Array.prototype.find 1,683 Ops/sec