Test case name | Result |
---|---|
Spread Syntax | |
Object.assign | |
Object.fromEntries and Object.entries: | |
JSON | |
Reference Assignment | |
Deep copy using a recursive function |
Test name | Executions per second |
---|---|
Spread Syntax | 58.3 Ops/sec |
Object.assign | 56.2 Ops/sec |
Object.fromEntries and Object.entries: | 48.3 Ops/sec |
JSON | 53.6 Ops/sec |
Reference Assignment | 65.3 Ops/sec |
Deep copy using a recursive function | 58.7 Ops/sec |