Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

  • Object.prototype.hasOwnProperty.call(this.storeIndex, index)

  • Reflect.has()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Object.hasOwnProperty
    Object in
    Array.indexOf
    direct
    Array includes
    Object.prototype.hasOwnProperty.call(this.storeIndex, index)
    Reflect.has()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 days ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
Chrome Mobile 130 on Android
View result in a separate tab
Test name Executions per second
Object.hasOwnProperty 1714514.4 Ops/sec
Object in 1642566.2 Ops/sec
Array.indexOf 344698.9 Ops/sec
direct 1620392.1 Ops/sec
Array includes 346269.6 Ops/sec
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 1254369.0 Ops/sec
Reflect.has() 1043250.8 Ops/sec


;