Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/116.0
Firefox 116
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 1418980.2 Ops/sec
Json clone 933509.9 Ops/sec
Ramda clone 1363835.8 Ops/sec
hand rolled 2506297.0 Ops/sec
spread 13925789.0 Ops/sec
obj.assign 17505894.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign


;