Test case name | Result |
---|---|
Object.assign() | |
Spread | |
For-in (no hasOwnProperty check) | |
For-in (direct hasOwnProperty check) | |
For-in (indirect hasOwnProperty check) |
Test name | Executions per second |
---|---|
Object.assign() | 908.7 Ops/sec |
Spread | 609.3 Ops/sec |
For-in (no hasOwnProperty check) | 821.5 Ops/sec |
For-in (direct hasOwnProperty check) | 647.1 Ops/sec |
For-in (indirect hasOwnProperty check) | 566.9 Ops/sec |