Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Array.prototype.findIndex
120K/s
Array.prototype.find
1K/s

Fastest: Array.prototype.findIndex (120.0x faster)

View exact numbers
  • Array.prototype.findIndex: 120,354 ops/sec
  • Array.prototype.find: 1,003 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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128 on Windows
View result in a separate tab
Array.prototype.findIndex
15K/s
Array.prototype.find
3K/s
View exact numbers
Test name Executions per second
Array.prototype.findIndex 15,285 Ops/sec
Array.prototype.find 3,179 Ops/sec