Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.12 (KHTML, like Gecko) Version/11.1 Safari/605.1.12
Safari 11
Mac OS X 10.12.6
Desktop
3 years ago
Test name Executions per second
Lodash CloneDeep - Document 1 15907.8 Ops/sec
Json Clone - Document 1 28970.1 Ops/sec
recursiveDeepCopy - Document 1 26457.1 Ops/sec
recursiveDeepCopy2 - Document 1 23100.7 Ops/sec
Lodash CloneDeep - Document 2 267898.3 Ops/sec
Json Clone - Document 2 80241.4 Ops/sec
recursiveDeepCopy - Document 2 626688.4 Ops/sec
recursiveDeepCopy2 - Document 2 234980.4 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