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 | 20.9 Ops/sec |
JSON.parse(JSON.stringify()) | 19.2 Ops/sec |
recursiveDeepCopy | 43.1 Ops/sec |
fastest-json-copy npm package | 28.0 Ops/sec |
rfdc | 26.6 Ops/sec |
structuredClone | 46.7 Ops/sec |