Test case name | Result |
---|---|
Using reduce and the spread operator | |
Using map and adding to an object | |
Using reduce without spread operator |
Test name | Executions per second |
---|---|
Using reduce and the spread operator | 390026.8 Ops/sec |
Using map and adding to an object | 1568088.0 Ops/sec |
Using reduce without spread operator | 1644045.0 Ops/sec |