Script Preparation code:
Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 10 runs
for ... in
27.7M/s
getOwnPropertyNames
17.4M/s

Fastest: for ... in (1.6x faster)

View exact numbers
  • for ... in: 27,688,008 ops/sec
  • getOwnPropertyNames: 17,357,724 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
    getOwnPropertyNames
    for ... in

    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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Chrome 137 on Windows
View result in a separate tab
for ... in
62.8M/s
getOwnPropertyNames
46.5M/s
View exact numbers
Test name Executions per second
for ... in 62,834,376 Ops/sec
getOwnPropertyNames 46,521,324 Ops/sec