Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Ubuntu
Desktop
3 years ago
Test name Executions per second
Lodash CloneDeep - Document 1 7218.4 Ops/sec
Json Clone - Document 1 20071.7 Ops/sec
recursiveDeepCopy - Document 1 15962.8 Ops/sec
recursiveDeepCopy2 - Document 1 9987.6 Ops/sec
Lodash CloneDeep - Document 2 150005.4 Ops/sec
Json Clone - Document 2 140536.9 Ops/sec
recursiveDeepCopy - Document 2 294566.2 Ops/sec
recursiveDeepCopy2 - Document 2 291297.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