Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.82
Chrome 114
Windows
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 237225.0 Ops/sec
Native JSON parse 534.7 Ops/sec
Recursive deep clone 177358.6 Ops/sec
Map deep clone 189945.3 Ops/sec
structuredClone 1447.2 Ops/sec
deepCloneArray 342015.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Native JSON parse

  • Recursive deep clone

  • Map deep clone

  • structuredClone

  • deepCloneArray