Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Object.hasOwnProperty 929196700.0 Ops/sec
Object in 791056700.0 Ops/sec
Array.indexOf 838284.3 Ops/sec
direct 1244838000.0 Ops/sec
Array includes 1124446.0 Ops/sec
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 925735000.0 Ops/sec
Reflect.has() 14872220.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()