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: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132 on Windows
View result in a separate tab
Test name Executions per second
Get from array (all hits) 1087596.0 Ops/sec
Get from array (with misses) 564110.1 Ops/sec
Get from map (all hits) 1289439.9 Ops/sec
Get from map (with misses) 610678.6 Ops/sec
Iterate array 2568607.2 Ops/sec
Iterate map 654443.0 Ops/sec