Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0
Firefox 103
Ubuntu
Desktop
2 years ago
Test name Executions per second
Object.hasOwnProperty 863737856.0 Ops/sec
Object in 958741056.0 Ops/sec
Array.indexOf 836976.8 Ops/sec
direct 1192298880.0 Ops/sec
Array includes 1144248.4 Ops/sec
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 827597632.0 Ops/sec
Reflect.has() 13709051.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()


;