Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.86 Safari/537.36
Chrome 89
Linux
Desktop
3 years ago
Test name Executions per second
Lodash CloneDeep - Document 1 22474.0 Ops/sec
Json Clone - Document 1 38586.9 Ops/sec
recursiveDeepCopy - Document 1 35368.5 Ops/sec
recursiveDeepCopy2 - Document 1 32948.8 Ops/sec
Lodash CloneDeep - Document 2 506215.4 Ops/sec
Json Clone - Document 2 309097.9 Ops/sec
recursiveDeepCopy - Document 2 778132.1 Ops/sec
recursiveDeepCopy2 - Document 2 268397.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash CloneDeep - Document 1

  • Json Clone - Document 1

  • recursiveDeepCopy - Document 1

  • recursiveDeepCopy2 - Document 1

  • Lodash CloneDeep - Document 2

  • Json Clone - Document 2

  • recursiveDeepCopy - Document 2

  • recursiveDeepCopy2 - Document 2