Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) EdgiOS/119.0.2151.96 Version/17.0 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.1
Mobile
one year ago
Test name Executions per second
Object.hasOwnProperty 8168070.0 Ops/sec
Object in 8043128.0 Ops/sec
Array.indexOf 664790.4 Ops/sec
direct 7986789.0 Ops/sec
Array includes 98610.5 Ops/sec
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 5494832.5 Ops/sec
Reflect.has() 4630603.5 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

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

  • Reflect.has()


;