Script Preparation code:
Tests:
  • Get from array (all hits)

  • Get from array (with misses)

  • Get from map (all hits)

  • Get from map (with misses)

  • Iterate array

  • Iterate map

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: 9 months 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
Test name Executions per second
Get from array (all hits) 710399.1 Ops/sec
Get from array (with misses) 404.2 Ops/sec
Get from map (all hits) 34145.6 Ops/sec
Get from map (with misses) 769762.8 Ops/sec
Iterate array 1720927.6 Ops/sec
Iterate map 1165826.1 Ops/sec