Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 OPR/118.0.0.0
Opera 118
Mac OS X 10.15.7
Desktop
one year ago
JSON.stringify(JSON.parse())
577K/s
Native structuredClone
386K/s
View exact numbers
| Test name |
Executions per second |
|
✓
JSON.stringify(JSON.parse())
|
576,906 Ops/sec |
|
Lodash cloneDeep
|
575,937 Ops/sec |
|
Native structuredClone
|
386,005 Ops/sec |
Tests:
-
Lodash cloneDeep
-
Native structuredClone
-
JSON.stringify(JSON.parse())