Script Preparation code:
Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
find by hashmap
5.1M/s
find by binary search array
2.1M/s
find by array polling
1.1M/s

Fastest: find by hashmap (4.7x faster)

View exact numbers
  • find by hashmap: 5,142,536 ops/sec
  • find by binary search array: 2,112,464 ops/sec
  • find by array polling: 1,099,931 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
    find by binary search array
    find by array polling
    find by hashmap

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Mobile/15E148 Safari/604.1
Mobile Safari 18 on iOS 18.4
View result in a separate tab
find by hashmap
224.1M/s
find by binary search array
11.7M/s
find by array polling
1.9M/s
View exact numbers
Test name Executions per second
find by hashmap 224,067,872 Ops/sec
find by binary search array 11,735,196 Ops/sec
find by array polling 1,927,881 Ops/sec