Run details:
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
Android
Mobile
12 days ago
Test name Executions per second
Object.hasOwnProperty 1743774.6 Ops/sec
Object in 1630779.9 Ops/sec
Array.indexOf 348089.6 Ops/sec
direct 1592087.5 Ops/sec
Array includes 346461.9 Ops/sec
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 1255802.9 Ops/sec
Reflect.has() 1049207.2 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

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

  • Reflect.has()


;