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
2 years ago
Test name Executions per second
Object.hasOwnProperty 929196736.0 Ops/sec
Object in 791056704.0 Ops/sec
Array.indexOf 838284.2 Ops/sec
direct 1244837760.0 Ops/sec
Array includes 1124445.6 Ops/sec
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 925735040.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()


;