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 | 731345.6 Ops/sec |
JSON.parse(JSON.stringify()) | 647760.5 Ops/sec |
recursiveDeepCopy | 2623281.0 Ops/sec |
fastest-json-copy npm package | 2284284.0 Ops/sec |
jsondiffpatch.clone() | 2629170.5 Ops/sec |
rfdc | 2744523.0 Ops/sec |