HTML Preparation code:
Tests:
  • lodash assign (shallow copy)

  • Object.Assign (in-place modify)

  • lodash merge (deep copy)

  • ES6 spread (new object)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    lodash assign (shallow copy)
    Object.Assign (in-place modify)
    lodash merge (deep copy)
    ES6 spread (new object)

    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/112.0.0.0 Safari/537.36
Chrome 112 on Windows
View result in a separate tab
Test name Executions per second
lodash assign (shallow copy) 3332342.2 Ops/sec
Object.Assign (in-place modify) 4206730.5 Ops/sec
lodash merge (deep copy) 1812334.9 Ops/sec
ES6 spread (new object) 1352337.0 Ops/sec