Script Preparation code:
Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
typeof
26.2M/s
hasOwnProperty
23.5M/s
hasOwn
9.5M/s

Fastest: typeof (2.8x faster)

View exact numbers
  • typeof: 26,229,656 ops/sec
  • hasOwnProperty: 23,500,018 ops/sec
  • hasOwn: 9,497,843 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
    typeof
    hasOwn
    hasOwnProperty

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0
Chrome 143 on Windows
View result in a separate tab
typeof
152.6M/s
hasOwnProperty
96.3M/s
hasOwn
81.0M/s
View exact numbers
Test name Executions per second
typeof 152,626,352 Ops/sec
hasOwnProperty 96,256,208 Ops/sec
hasOwn 81,012,992 Ops/sec