Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
Array.indexOf
1.4M/s
Array.some
243K/s
Array.findIndex
211K/s
Array.filter
53K/s

Fastest: Array.indexOf (25.8x faster)

View exact numbers
  • Array.indexOf: 1,368,856 ops/sec
  • Array.some: 243,311 ops/sec
  • Array.findIndex: 210,852 ops/sec
  • Array.filter: 52,984 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.some
    Array.filter
    Array.indexOf
    Array.findIndex

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Chrome 141 on Linux
View result in a separate tab
Array.indexOf
3.6M/s
Array.findIndex
257K/s
Array.some
251K/s
Array.filter
56K/s
View exact numbers
Test name Executions per second
Array.indexOf 3,555,828 Ops/sec
Array.findIndex 257,420 Ops/sec
Array.some 251,108 Ops/sec
Array.filter 56,351 Ops/sec