Test case name | Result |
---|---|
lodash cloneDeep | |
JSON.parse(JSON.stringify()) | |
recursiveDeepCopy | |
fastest-json-copy npm package | |
rfdc | |
structuredClone |
Test name | Executions per second |
---|---|
lodash cloneDeep | 13.6 Ops/sec |
JSON.parse(JSON.stringify()) | 17.2 Ops/sec |
recursiveDeepCopy | 91.3 Ops/sec |
fastest-json-copy npm package | 67.3 Ops/sec |
rfdc | 64.3 Ops/sec |
structuredClone | 41.9 Ops/sec |