HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
for of Object.keys
3.6M/s
Object.fromEntries with keys
2.7M/s
Object.fromEntries with entries
2.7M/s
Object.fromEntries with entries - destruction entry
2.7M/s

Fastest: for of Object.keys (1.4x faster)

View exact numbers
  • for of Object.keys: 3,633,075 ops/sec
  • Object.fromEntries with keys: 2,694,603 ops/sec
  • Object.fromEntries with entries: 2,669,328 ops/sec
  • Object.fromEntries with entries - destruction entry: 2,665,898 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 of Object.keys
    Object.fromEntries with keys
    Object.fromEntries with entries
    Object.fromEntries with entries - destruction entry

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Mac OS X 10.15.7
View result in a separate tab
for of Object.keys
3.3M/s
Object.fromEntries with keys
2.7M/s
Object.fromEntries with entries
2.7M/s
Object.fromEntries with entries - destruction entry
2.6M/s
View exact numbers
Test name Executions per second
for of Object.keys 3,264,554 Ops/sec
Object.fromEntries with keys 2,694,603 Ops/sec
Object.fromEntries with entries 2,668,345 Ops/sec
Object.fromEntries with entries - destruction entry 2,622,282 Ops/sec