HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign

  • Structured Clone

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Lodash cloneDeep
    Json clone
    Ramda clone
    hand rolled
    spread
    obj.assign
    Structured Clone

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1
Mobile Safari 17 on iOS 17.5.1
View result in a separate tab
Test name Executions per second
Lodash cloneDeep 2199883.2 Ops/sec
Json clone 1471718.4 Ops/sec
Ramda clone 1584661.2 Ops/sec
hand rolled 1399644.2 Ops/sec
spread 7473559.5 Ops/sec
obj.assign 4951818.0 Ops/sec
Structured Clone 769673.5 Ops/sec


;