Script Preparation code:
Tests:

Historical Performance Data aggregated from 11 community runs

Desktop Results:
Chrome 11 runs
Object.hasOwnProperty
22.9M/s
Object in
20.5M/s
direct
20.0M/s
Object.prototype.hasOwnProperty.call(this.storeIndex, index)
9.0M/s
Reflect.has()
8.8M/s
Array.indexOf
1.3M/s
Array includes
1.2M/s

Fastest: Object.hasOwnProperty (18.6x faster)

View exact numbers
  • Object.hasOwnProperty: 22,937,006 ops/sec
  • Object in: 20,496,688 ops/sec
  • direct: 20,037,964 ops/sec
  • Object.prototype.hasOwnProperty.call(this.storeIndex, index): 9,005,722 ops/sec
  • Reflect.has(): 8,766,198 ops/sec
  • Array.indexOf: 1,295,460 ops/sec
  • Array includes: 1,230,290 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Object.hasOwnProperty
    Object in
    Array.indexOf
    direct
    Array includes
    Object.prototype.hasOwnProperty.call(this.storeIndex, index)
    Reflect.has()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Chrome 141 on Mac OS X 10.15.7
View result in a separate tab
Object.prototype.hasOwnProperty.call(this.storeIndex, index)
50.1M/s
Object in
44.4M/s
Reflect.has()
34.0M/s
Object.hasOwnProperty
22.9M/s
direct
20.0M/s
Array.indexOf
774K/s
Array includes
612K/s
View exact numbers
Test name Executions per second
Object.prototype.hasOwnProperty.call(this.storeIndex, index) 50,132,140 Ops/sec
Object in 44,411,640 Ops/sec
Reflect.has() 33,991,588 Ops/sec
Object.hasOwnProperty 22,937,006 Ops/sec
direct 20,037,964 Ops/sec
Array.indexOf 773,872 Ops/sec
Array includes 611,551 Ops/sec