Test case name | Result |
---|---|
lodash cloneDeep | |
JSON.parse(JSON.stringify()) | |
recursiveDeepCopy | |
fastest-json-copy npm package | |
jsondiffpatch.clone() | |
rfdc |
Test name | Executions per second |
---|---|
lodash cloneDeep | 584158.3 Ops/sec |
JSON.parse(JSON.stringify()) | 531963.4 Ops/sec |
recursiveDeepCopy | 1403354.4 Ops/sec |
fastest-json-copy npm package | 1325091.1 Ops/sec |
jsondiffpatch.clone() | 1312213.9 Ops/sec |
rfdc | 1542571.1 Ops/sec |