Lodash cloneDeep vs structuredClone vs JSON Parse 2023

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone
10 months ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0
Test name Executions per second
Lodash cloneDeep 6936.7 Ops/sec
Native structuredClone 14668.1 Ops/sec
JSON Parse 19941.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Native structuredClone

  • JSON Parse

Open this result on MeasureThat.net