Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Lodash CloneDeep - Document 1 14133.4 Ops/sec
Json Clone - Document 1 41589.7 Ops/sec
recursiveDeepCopy - Document 1 32600.2 Ops/sec
recursiveDeepCopy2 - Document 1 31743.5 Ops/sec
Lodash CloneDeep - Document 2 618307.0 Ops/sec
Json Clone - Document 2 394143.2 Ops/sec
recursiveDeepCopy - Document 2 1957604.1 Ops/sec
recursiveDeepCopy2 - Document 2 948399.5 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