Script Preparation code:
Tests:

Historical Performance Data aggregated from 16 community runs

Desktop Results:
Chrome 16 runs
Array.find
6.1M/s
Array to Map and find
236K/s

Fastest: Array.find (25.8x faster)

View exact numbers
  • Array.find: 6,086,153 ops/sec
  • Array to Map and find: 236,224 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 to Map and find
    Array.find

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Chrome 140 on Windows
View result in a separate tab
Array.find
39.8M/s
Array to Map and find
570K/s
View exact numbers
Test name Executions per second
Array.find 39,848,256 Ops/sec
Array to Map and find 570,024 Ops/sec