Run details:
Mozilla/5.0 (Linux; Android 12; SM-G996N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
Object.hasOwnProperty 1660160.9 Ops/sec
Object in 1593799.5 Ops/sec
Array.indexOf 306680.0 Ops/sec
direct 1088461.8 Ops/sec
Array includes 271870.5 Ops/sec
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 747571.8 Ops/sec
Reflect.has() 718146.7 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

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

  • Reflect.has()


;