Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Get from array (all hits)
    Get from array (with misses)
    Get from map (all hits)
    Get from map (with misses)
    Iterate array
    Iterate map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Mobile Safari/537.36
Chrome Mobile 138 on Android
View result in a separate tab
Iterate array
1.7M/s
Iterate map
1.2M/s
Get from map (with misses)
770K/s
Get from array (all hits)
710K/s
Get from map (all hits)
34K/s
Get from array (with misses)
404/s
View exact numbers
Test name Executions per second
Iterate array 1,720,928 Ops/sec
Iterate map 1,165,826 Ops/sec
Get from map (with misses) 769,763 Ops/sec
Get from array (all hits) 710,399 Ops/sec
Get from map (all hits) 34,146 Ops/sec
Get from array (with misses) 404 Ops/sec