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

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130 on Linux
View result in a separate tab
Test name Executions per second
Reduce and Spread 5187.0 Ops/sec
ForEach and Mutate (for .. in loop) 1095.9 Ops/sec
Mutate with Object.assign 11274.5 Ops/sec
Foreach and Mutate (Object.assign) 8905.8 Ops/sec


;