Script Preparation code:
Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Chrome 9 runs
Object.fromEntries
218/s
Reduce (object assign)
149/s
Reduce (creating temporary objects)
56/s

Fastest: Object.fromEntries (3.9x faster)

View exact numbers
  • Object.fromEntries: 218 ops/sec
  • Reduce (object assign): 149 ops/sec
  • Reduce (creating temporary objects): 56 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.fromEntries
    Reduce (object assign)
    Reduce (creating temporary objects)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0
Firefox 138 on Linux
View result in a separate tab
Reduce (object assign)
197/s
Object.fromEntries
183/s
Reduce (creating temporary objects)
0/s
View exact numbers
Test name Executions per second
Reduce (object assign) 197 Ops/sec
Object.fromEntries 183 Ops/sec
Reduce (creating temporary objects) 0 Ops/sec