Script Preparation code:
Tests:

Historical Performance Data aggregated from 12 community runs

Desktop Results:
Chrome 12 runs
map get
4.6M/s
Array.find
3.8M/s

Fastest: map get (1.2x faster)

View exact numbers
  • map get: 4,592,375 ops/sec
  • Array.find: 3,754,081 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.find
    map get

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
map get
50.7M/s
Array.find
21.9M/s
View exact numbers
Test name Executions per second
map get 50,715,552 Ops/sec
Array.find 21,940,790 Ops/sec