Test case name | Result |
---|---|
Array.reduce() | |
For loop | |
Object.fromEntries() + Object.entries() | |
Object.assign() | |
Object ...spread |
Test name | Executions per second |
---|---|
Array.reduce() | 29225.2 Ops/sec |
For loop | 24355.0 Ops/sec |
Object.fromEntries() + Object.entries() | 2106.2 Ops/sec |
Object.assign() | 1285.9 Ops/sec |
Object ...spread | 1519.3 Ops/sec |