Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Mac OS X 10.15
Desktop
9 months ago
Test name Executions per second
Lodash cloneDeep 1540572.2 Ops/sec
Json clone 1442825.4 Ops/sec
Ramda clone 2119700.5 Ops/sec
hand rolled 3025000.0 Ops/sec
spread 18224286.0 Ops/sec
obj.assign 41777468.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign


;