Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0
Firefox 137
Windows
Desktop
one month ago
Test name Executions per second
Object.hasOwnProperty 1831670016.0 Ops/sec
Object in 1577928832.0 Ops/sec
Array.indexOf 1143328.8 Ops/sec
direct 1657676800.0 Ops/sec
Array includes 1166968.8 Ops/sec
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 1768620800.0 Ops/sec
Reflect.has() 44088600.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()