Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Linux
Desktop
one year ago
Test name Executions per second
Object.hasOwnProperty 5473032.0 Ops/sec
Object in 4671675.5 Ops/sec
Array.indexOf 1068224.2 Ops/sec
direct 4440650.5 Ops/sec
Array includes 1124559.4 Ops/sec
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 2880246.0 Ops/sec
Reflect.has() 2188013.0 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

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

  • Reflect.has()


;