Script Preparation code:
Tests:
  • reduce with new object

  • fromEntries

  • reduce without new object

  • forEach

  • for

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    reduce with new object
    fromEntries
    reduce without new object
    forEach
    for

    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: 10 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
reduce with new object 10.2 Ops/sec
fromEntries 2744.8 Ops/sec
reduce without new object 4109.1 Ops/sec
forEach 4166.8 Ops/sec
for 2730.1 Ops/sec