Script Preparation code:
Tests:
  • array.includes

  • Object.prototype.hasOwnProperty

  • object.hasOwnProperty

  • Reflect.has

  • object[field]

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    array.includes
    Object.prototype.hasOwnProperty
    object.hasOwnProperty
    Reflect.has
    object[field]

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113 on Windows
View result in a separate tab
Test name Executions per second
array.includes 1411.2 Ops/sec
Object.prototype.hasOwnProperty 65704.2 Ops/sec
object.hasOwnProperty 137055.4 Ops/sec
Reflect.has 66023.7 Ops/sec
object[field] 136134.0 Ops/sec


;