HTML Preparation code:
Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
object.assign
41.4M/s
spread
37.4M/s
lodash merge
2.1M/s

Fastest: object.assign (20.1x faster)

View exact numbers
  • object.assign: 41,407,752 ops/sec
  • spread: 37,410,100 ops/sec
  • lodash merge: 2,059,794 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
    lodash merge
    object.assign
    spread

    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/135.0.0.0 Safari/537.36
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
object.assign
23.2M/s
spread
18.8M/s
lodash merge
1.2M/s
View exact numbers
Test name Executions per second
object.assign 23,179,496 Ops/sec
spread 18,784,240 Ops/sec
lodash merge 1,223,748 Ops/sec