Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
for-in
7/s
Object.keys
6/s

Fastest: for-in (1.2x faster)

View exact numbers
  • for-in: 7 ops/sec
  • Object.keys: 6 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
    for-in
    Object.keys

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36
Chrome Mobile 143 on Android
View result in a separate tab
for-in
1/s
Object.keys
1/s
View exact numbers
Test name Executions per second
for-in 1 Ops/sec
Object.keys 1 Ops/sec