Run details:
Mozilla/5.0 (Linux; Android 11; IN2020) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.88 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
Object.hasOwnProperty 3303903.5 Ops/sec
Object in 3001429.5 Ops/sec
Array.indexOf 683779.6 Ops/sec
direct 3090414.8 Ops/sec
Array includes 678675.5 Ops/sec
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 1991047.5 Ops/sec
Reflect.has() 1683363.9 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

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

  • Reflect.has()


;