HTML Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
object.assign
42.6M/s
spread
34.3M/s
lodash assign
24.9M/s

Fastest: object.assign (1.7x faster)

View exact numbers
  • object.assign: 42,614,280 ops/sec
  • spread: 34,349,336 ops/sec
  • lodash assign: 24,931,724 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 assign
    object.assign
    spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Windows
View result in a separate tab
object.assign
55.0M/s
spread
46.5M/s
lodash assign
30.0M/s
View exact numbers
Test name Executions per second
object.assign 54,990,540 Ops/sec
spread 46,496,144 Ops/sec
lodash assign 30,003,946 Ops/sec