Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 309970.4 Ops/sec
Native JSON parse 1565.1 Ops/sec
Recursive deep clone 1986673.9 Ops/sec
Map deep clone 487312.4 Ops/sec
structuredClone 17907.9 Ops/sec
deepCloneArray 2777838.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Native JSON parse

  • Recursive deep clone

  • Map deep clone

  • structuredClone

  • deepCloneArray