Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Linux
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 566080.6 Ops/sec
Json clone 424359.0 Ops/sec
Ramda clone 848714.1 Ops/sec
hand rolled 511956.0 Ops/sec
spread 5216878.0 Ops/sec
obj.assign 2376574.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign


;