Tests:
  • Using reduce and the spread operator

  • Using map and adding to an object

  • Using reduce without spread operator

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Using reduce and the spread operator
    Using map and adding to an object
    Using reduce without spread operator

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36
Chrome 71 on Linux
View result in a separate tab
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