Script Preparation code:
Tests:

Historical Performance Data aggregated from 33 community runs

Desktop Results:
Chrome 28 runs
includes
883K/s
findIndex
866K/s
map and indexOf
14K/s

Fastest: includes (62.9x faster)

View exact numbers
  • includes: 882,804 ops/sec
  • findIndex: 865,986 ops/sec
  • map and indexOf: 14,043 ops/sec
Firefox 5 runs
includes
164K/s
findIndex
163K/s
map and indexOf
8K/s

Fastest: includes (20.3x faster)

View exact numbers
  • includes: 163,808 ops/sec
  • findIndex: 163,006 ops/sec
  • map and indexOf: 8,066 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
    findIndex
    includes
    map and indexOf

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36
Chrome Mobile 141 on Android
View result in a separate tab
findIndex
333K/s
includes
332K/s
map and indexOf
5K/s
View exact numbers
Test name Executions per second
findIndex 332,710 Ops/sec
includes 331,996 Ops/sec
map and indexOf 5,179 Ops/sec