Tests:
  • Creating an object with .reduce()

  • Assigning object properties with .forEach()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Creating an object with .reduce()
    Assigning object properties with .forEach()

    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: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36
Chrome 81 on Mac OS X 10.15.5
View result in a separate tab
Test name Executions per second
Creating an object with .reduce() 1541426.0 Ops/sec
Assigning object properties with .forEach() 2900836.0 Ops/sec