Tests:
-
Lodash cloneDeep
-
Native map deep slice(turns objects into arrays)
-
Native JSON parse
-
Object.assign shallow clone
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/132.0.0.0 Safari/537.36
Chrome 132 on Windows
View result in a separate tab
Object.assign shallow clone
15.3M/s
Native map deep slice(turns objects into arrays)
14.1M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Object.assign shallow clone
|
15,285,126 Ops/sec |
|
Native map deep slice(turns objects into arrays)
|
14,107,954 Ops/sec |
|
Native JSON parse
|
830,580 Ops/sec |
|
Lodash cloneDeep
|
534,864 Ops/sec |
Do you really want to delete benchmark?