Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0
Firefox 85
Ubuntu
Desktop
3 years ago
Test name Executions per second
Lodash CloneDeep - Document 1 14310.4 Ops/sec
Json Clone - Document 1 35167.0 Ops/sec
recursiveDeepCopy - Document 1 30876.4 Ops/sec
recursiveDeepCopy2 - Document 1 31120.6 Ops/sec
Lodash CloneDeep - Document 2 382000.0 Ops/sec
Json Clone - Document 2 380000.9 Ops/sec
recursiveDeepCopy - Document 2 770463.6 Ops/sec
recursiveDeepCopy2 - Document 2 789662.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