Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Chrome 84
Windows
Desktop
4 years ago
Test name Executions per second
Lodash CloneDeep - Document 1 17361.5 Ops/sec
Json Clone - Document 1 28890.1 Ops/sec
recursiveDeepCopy - Document 1 24402.8 Ops/sec
recursiveDeepCopy2 - Document 1 22894.4 Ops/sec
Lodash CloneDeep - Document 2 433935.9 Ops/sec
Json Clone - Document 2 247788.1 Ops/sec
recursiveDeepCopy - Document 2 540308.7 Ops/sec
recursiveDeepCopy2 - Document 2 226307.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