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 7206.9 Ops/sec
Json Clone - Document 1 20736.9 Ops/sec
recursiveDeepCopy - Document 1 12842.5 Ops/sec
recursiveDeepCopy2 - Document 1 15684.5 Ops/sec
Lodash CloneDeep - Document 2 206219.8 Ops/sec
Json Clone - Document 2 164533.2 Ops/sec
recursiveDeepCopy - Document 2 162833.7 Ops/sec
recursiveDeepCopy2 - Document 2 248603.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