Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.0 Safari/537.36 Edg/105.0.1300.0
Chrome 104
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Lodash cloneDeep 8984.6 Ops/sec
Native structuredClone 8976.0 Ops/sec
clone(); 108.4 Ops/sec
_cloneDeep custom underscore/lodash 6787.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Native structuredClone

  • clone();

  • _cloneDeep custom underscore/lodash