Tests:
-
lodash cloneDeep
-
JSON.parse(JSON.stringify())
-
recursiveDeepCopy
-
structuredClone
-
rfdc
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
JSON.parse(JSON.stringify())
1.5M/s
View exact numbers
| Test name |
Executions per second |
|
✓
rfdc
|
6,017,647 Ops/sec |
|
recursiveDeepCopy
|
5,493,822 Ops/sec |
|
lodash cloneDeep
|
1,721,945 Ops/sec |
|
JSON.parse(JSON.stringify())
|
1,530,035 Ops/sec |
|
structuredClone
|
728,631 Ops/sec |
Do you really want to delete benchmark?