Script Preparation code:
Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Chrome 9 runs
Object.keys
657K/s
hasOwnProperty
223K/s

Fastest: Object.keys (3.0x faster)

View exact numbers
  • Object.keys: 657,359 ops/sec
  • hasOwnProperty: 222,571 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
    hasOwnProperty
    Object.keys

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:150.0) Gecko/20100101 Firefox/150.0
Firefox 150 on Mac OS X 10.15
View result in a separate tab
Object.keys
5.2M/s
hasOwnProperty
3.5M/s
View exact numbers
Test name Executions per second
Object.keys 5,198,490 Ops/sec
hasOwnProperty 3,461,594 Ops/sec