Test case name | Result |
---|---|
Lodash cloneDeep | |
Native structuredClone | |
JSON Parse | |
Indirect JSON Parse | |
In-house deepcopy |
Test name | Executions per second |
---|---|
Lodash cloneDeep | 597783.7 Ops/sec |
Native structuredClone | 81082.8 Ops/sec |
JSON Parse | 1189524.9 Ops/sec |
Indirect JSON Parse | 1098014.4 Ops/sec |
In-house deepcopy | 1701146.5 Ops/sec |