Test case name | Result |
---|---|
Lodash cloneDeep | |
Json clone | |
Ramda clone | |
hand rolled | |
loop not map (still recursive) | |
original gangster | |
moar hand rolling |
Test name | Executions per second |
---|---|
Lodash cloneDeep | 4924.9 Ops/sec |
Json clone | 9874.2 Ops/sec |
Ramda clone | 2687.0 Ops/sec |
hand rolled | 4079.9 Ops/sec |
loop not map (still recursive) | 7471.2 Ops/sec |
original gangster | 5892.4 Ops/sec |
moar hand rolling | 11461.8 Ops/sec |