Test name | Executions per second |
---|---|
Lodash cloneDeep | 165712.3 Ops/sec |
Native map deep slice(turns objects into arrays) | 8426105.0 Ops/sec |
Native JSON parse | 263981.3 Ops/sec |
Native map deep slice at 0(turns objects into arrays) | 8020886.5 Ops/sec |
Native map(shallow clone) | 19016028.0 Ops/sec |
Recursive deep clone | 1132195.6 Ops/sec |
Map deep clone | 321337.3 Ops/sec |
Object.assign shallow clone | 13310116.0 Ops/sec |