Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0
Chrome 123
Windows
Desktop
4 months ago
Test name Executions per second
Lodash cloneDeep 990901.2 Ops/sec
Json clone 620845.6 Ops/sec
Ramda clone 1223044.4 Ops/sec
hand rolled 672219.8 Ops/sec
spread 7460495.5 Ops/sec
obj.assign 3880701.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign


;