Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
if ... in
17.3M/s
hasOwnPropery
16.5M/s
Loop
15.3M/s

Fastest: if ... in (1.1x faster)

View exact numbers
  • if ... in: 17,346,984 ops/sec
  • hasOwnPropery : 16,507,246 ops/sec
  • Loop: 15,300,247 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
    hasOwnPropery
    Loop
    if ... in
    Object.entries

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120 on Linux
View result in a separate tab
if ... in
10.6M/s
hasOwnPropery
9.2M/s
Loop
8.8M/s
Object.entries
2.4M/s
View exact numbers
Test name Executions per second
if ... in 10,628,943 Ops/sec
hasOwnPropery 9,152,810 Ops/sec
Loop 8,803,207 Ops/sec
Object.entries 2,449,282 Ops/sec