Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.151 Safari/537.36
Chrome 88
Windows 7
Desktop
3 years ago
Test name Executions per second
Lodash CloneDeep - Document 1 14551.5 Ops/sec
Json Clone - Document 1 26805.7 Ops/sec
recursiveDeepCopy - Document 1 21215.9 Ops/sec
recursiveDeepCopy2 - Document 1 19712.0 Ops/sec
Lodash CloneDeep - Document 2 281634.6 Ops/sec
Json Clone - Document 2 173217.9 Ops/sec
recursiveDeepCopy - Document 2 438366.4 Ops/sec
recursiveDeepCopy2 - Document 2 151081.9 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