Script Preparation code:
Tests:
  • Reduce and Spread

  • ForEach and Mutate (for .. in loop)

  • Mutate with Object.assign

  • Foreach and Mutate (Object.assign)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Reduce and Spread
    ForEach and Mutate (for .. in loop)
    Mutate with Object.assign
    Foreach and Mutate (Object.assign)

    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: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123 on Windows
View result in a separate tab
Test name Executions per second
Reduce and Spread 100481.5 Ops/sec
ForEach and Mutate (for .. in loop) 319679.4 Ops/sec
Mutate with Object.assign 227602.6 Ops/sec
Foreach and Mutate (Object.assign) 18539.6 Ops/sec