Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Mac OS X 10.15
Desktop
9 months ago
Test name Executions per second
Lodash cloneDeep 578533.1 Ops/sec
Json clone 472342.7 Ops/sec
Ramda clone 746758.5 Ops/sec
hand rolled 1210075.6 Ops/sec
spread 7333974.0 Ops/sec
obj.assign 14073038.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign


;