Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
obj.hasOwnProperty
12.3M/s
Object.hasOwn
6.8M/s
Object.prototype.hasOwnProperty
6.6M/s

Fastest: obj.hasOwnProperty (1.9x faster)

View exact numbers
  • obj.hasOwnProperty: 12,306,361 ops/sec
  • Object.hasOwn: 6,750,620 ops/sec
  • Object.prototype.hasOwnProperty: 6,594,518 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.prototype.hasOwnProperty
    obj.hasOwnProperty
    Object.hasOwn

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0
Firefox 137 on Windows
View result in a separate tab
Object.prototype.hasOwnProperty
999.7M/s
Object.hasOwn
993.1M/s
obj.hasOwnProperty
874.0M/s
View exact numbers
Test name Executions per second
Object.prototype.hasOwnProperty 999,721,984 Ops/sec
Object.hasOwn 993,050,048 Ops/sec
obj.hasOwnProperty 874,041,472 Ops/sec