Test case name | Result |
---|---|
Lodash's cloneDeep | |
JSON.parse(JSON.stringify()) | |
recursiveDeepCopy | |
fastest-json-copy npm package |
Test name | Executions per second |
---|---|
Lodash CloneDeep | 571311.7 Ops/sec |
Json Clone | 370041.6 Ops/sec |
recursiveDeepCopy | 1897814.2 Ops/sec |
fastest-json-copy npm package | 2613038.0 Ops/sec |