Test case name | Result |
---|---|
Object spread | |
Object assign | |
Object fromEntries | |
forEach | |
for loop |
Test name | Executions per second |
---|---|
Object spread | 17.4 Ops/sec |
Object assign | 67.8 Ops/sec |
Object fromEntries | 749.5 Ops/sec |
forEach | 2015.4 Ops/sec |
for loop | 2846.0 Ops/sec |