Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36
Chrome Mobile 116
Android
Mobile
one year ago
Test name Executions per second
Object.hasOwnProperty 1534682.9 Ops/sec
Object in 1146214.9 Ops/sec
Array.indexOf 251183.3 Ops/sec
direct 1192255.0 Ops/sec
Array includes 250017.2 Ops/sec
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 823794.2 Ops/sec
Reflect.has() 771859.6 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

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

  • Reflect.has()


;