Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Array.prototype.find
902K/s
Array.prototype.findIndex
885K/s
Array.prototype.filter
653K/s

Fastest: Array.prototype.find (1.4x faster)

View exact numbers
  • Array.prototype.find: 902,305 ops/sec
  • Array.prototype.findIndex: 884,858 ops/sec
  • Array.prototype.filter: 652,734 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
    Array.prototype.filter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Android 14; Mobile; rv:136.0) Gecko/136.0 Firefox/136.0
Firefox Mobile 136 on Android
View result in a separate tab
Array.prototype.findIndex
221K/s
Array.prototype.find
221K/s
Array.prototype.filter
207K/s
View exact numbers
Test name Executions per second
Array.prototype.findIndex 221,226 Ops/sec
Array.prototype.find 220,538 Ops/sec
Array.prototype.filter 207,423 Ops/sec