Tests:

Historical Performance Data aggregated from 46 community runs

Desktop Results:
Chrome 38 runs
findindex
84.3M/s
map
49.9M/s

Fastest: findindex (1.7x faster)

View exact numbers
  • findindex: 84,270,448 ops/sec
  • map: 49,859,212 ops/sec
Firefox 8 runs
findindex
28.1M/s
map
15.2M/s

Fastest: findindex (1.8x faster)

View exact numbers
  • findindex: 28,121,516 ops/sec
  • map: 15,219,593 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
    map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Windows
View result in a separate tab
findindex
104.9M/s
map
58.9M/s
View exact numbers
Test name Executions per second
findindex 104,895,016 Ops/sec
map 58,879,608 Ops/sec