Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134
Ubuntu
Desktop
one year ago
JSON.stringify(JSON.parse())
159K/s
Native structuredClone
106K/s
View exact numbers
| Test name |
Executions per second |
|
✓
JSON.stringify(JSON.parse())
|
159,220 Ops/sec |
|
Lodash cloneDeep
|
147,995 Ops/sec |
|
Native structuredClone
|
105,886 Ops/sec |
Tests:
-
Lodash cloneDeep
-
Native structuredClone
-
JSON.stringify(JSON.parse())