Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
Firefox 74
Ubuntu
Desktop
4 years ago
Test name Executions per second
Lodash CloneDeep - Document 1 5506.6 Ops/sec
Json Clone - Document 1 19268.8 Ops/sec
recursiveDeepCopy - Document 1 16045.6 Ops/sec
recursiveDeepCopy2 - Document 1 16187.3 Ops/sec
Lodash CloneDeep - Document 2 314055.3 Ops/sec
Json Clone - Document 2 168891.6 Ops/sec
recursiveDeepCopy - Document 2 1509799.5 Ops/sec
recursiveDeepCopy2 - Document 2 456483.7 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