Script Preparation code:
Tests:
  • Get from Object

  • Has key in Object

  • Get from Map

  • Has key in Map

  • Get from Array

  • Has key in Array OLD

  • Has key in Array NEW

  • Has key in Set

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Get from Object
    Has key in Object
    Get from Map
    Has key in Map
    Get from Array
    Has key in Array OLD
    Has key in Array NEW
    Has key in Set

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 days ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36 EdgA/130.0.0.0
Chrome Mobile 130 on Android
View result in a separate tab
Test name Executions per second
Get from Object 9773794.0 Ops/sec
Has key in Object 9729484.0 Ops/sec
Get from Map 9759094.0 Ops/sec
Has key in Map 9623406.0 Ops/sec
Get from Array 9842736.0 Ops/sec
Has key in Array OLD 8023119.5 Ops/sec
Has key in Array NEW 8107037.0 Ops/sec
Has key in Set 9610864.0 Ops/sec


;