Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Linux
Desktop
11 months ago
Test name Executions per second
Lodash cloneDeep 1462665.0 Ops/sec
Native structuredClone 653306.2 Ops/sec
recursiveDeepCopy 9306773.0 Ops/sec
Json Clone 744857.0 Ops/sec
Fast Copy 844701.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Native structuredClone

  • recursiveDeepCopy

  • Json Clone

  • Fast Copy