Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Firefox 5 runs
Object.entries without array
398K/s
Object.entries
366K/s
Object.keys
169K/s
Object.keys with extra array
80K/s

Fastest: Object.entries without array (5.0x faster)

View exact numbers
  • Object.entries without array: 397,545 ops/sec
  • Object.entries: 365,726 ops/sec
  • Object.keys: 168,511 ops/sec
  • Object.keys with extra array: 79,546 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
    Object.entries
    Object.keys
    Object.keys with extra array
    Object.entries without array

    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/139.0.0.0 Safari/537.36 Edg/139.0.0.0
Chrome 139 on Windows
View result in a separate tab
Object.keys
240K/s
Object.keys with extra array
219K/s
Object.entries without array
76K/s
Object.entries
73K/s
View exact numbers
Test name Executions per second
Object.keys 239,605 Ops/sec
Object.keys with extra array 219,313 Ops/sec
Object.entries without array 76,009 Ops/sec
Object.entries 72,876 Ops/sec