Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:85.0) Gecko/20100101 Firefox/85.0
Firefox 85
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Lodash CloneDeep - Document 1 9158.9 Ops/sec
Json Clone - Document 1 28510.9 Ops/sec
recursiveDeepCopy - Document 1 21671.6 Ops/sec
recursiveDeepCopy2 - Document 1 18084.6 Ops/sec
Lodash CloneDeep - Document 2 257308.2 Ops/sec
Json Clone - Document 2 131174.6 Ops/sec
recursiveDeepCopy - Document 2 288193.6 Ops/sec
recursiveDeepCopy2 - Document 2 357197.8 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