Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
2 months ago
Test name Executions per second
Lodash cloneDeep 1227953.2 Ops/sec
Native structuredClone 490242.0 Ops/sec
recursiveDeepCopy 1612753.6 Ops/sec
Json Clone 1009636.1 Ops/sec
Fast Copy 1968381.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Native structuredClone

  • recursiveDeepCopy

  • Json Clone

  • Fast Copy