Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36
Chrome 88
Mac OS X 11.1.0
Desktop
3 years ago
Test name Executions per second
Lodash CloneDeep - Document 1 20581.8 Ops/sec
Json Clone - Document 1 37715.7 Ops/sec
recursiveDeepCopy - Document 1 32436.3 Ops/sec
recursiveDeepCopy2 - Document 1 30947.7 Ops/sec
Lodash CloneDeep - Document 2 532290.8 Ops/sec
Json Clone - Document 2 270934.7 Ops/sec
recursiveDeepCopy - Document 2 750000.0 Ops/sec
recursiveDeepCopy2 - Document 2 267150.0 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