Tests:
-
Lodash cloneDeep
-
Native structuredClone
-
JSON.parse(JSON.stringify())
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136 on Windows
View result in a separate tab
JSON.parse(JSON.stringify())
748K/s
Native structuredClone
240K/s
View exact numbers
| Test name |
Executions per second |
|
✓
JSON.parse(JSON.stringify())
|
747,657 Ops/sec |
|
Lodash cloneDeep
|
680,645 Ops/sec |
|
Native structuredClone
|
239,674 Ops/sec |
Do you really want to delete benchmark?