Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Windows
Desktop
one year ago
JSON.stringify(JSON.parse())
378K/s
Native structuredClone
250K/s
View exact numbers
| Test name |
Executions per second |
|
✓
JSON.stringify(JSON.parse())
|
378,099 Ops/sec |
|
Lodash cloneDeep
|
319,392 Ops/sec |
|
Native structuredClone
|
249,509 Ops/sec |
Tests:
-
Lodash cloneDeep
-
Native structuredClone
-
JSON.stringify(JSON.parse())