Run details:
Mozilla/5.0 (Linux; Android 12; SM-N985F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.97 Mobile Safari/537.36 OPR/71.3.3718.67322
Opera Mobile 71
Android
Mobile
2 years ago
Test name Executions per second
Lodash cloneDeep 343204.0 Ops/sec
Native structuredClone 80068.4 Ops/sec
JSON.parse(JSON.stringify()) 203219.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Native structuredClone

  • JSON.parse(JSON.stringify())