Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Map.get
35.8M/s
Array.findIndex
5K/s

Fastest: Map.get (6626.3x faster)

View exact numbers
  • Map.get: 35,756,712 ops/sec
  • Array.findIndex: 5,396 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
    Map.get
    Array.findIndex

    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/150.0.0.0 Safari/537.36 Edg/150.0.0.0
Chrome 150 on Windows
View result in a separate tab
Map.get
877.7M/s
Array.findIndex
3K/s
View exact numbers
Test name Executions per second
Map.get 877,651,520 Ops/sec
Array.findIndex 2,643 Ops/sec