Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Linux
Desktop
2 months ago
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
Script Preparation code:
Tests:
  • Reduce and Spread

  • ForEach and Mutate (for .. in loop)

  • Mutate with Object.assign

  • Foreach and Mutate (Object.assign)


;