Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Mobile Safari/537.36
Chrome Mobile 117
Android
Mobile
one year ago
Test name Executions per second
Reduce and Spread 30373.2 Ops/sec
ForEach and Mutate (for .. in loop) 74603.3 Ops/sec
Mutate with Object.assign 59060.7 Ops/sec
Foreach and Mutate (Object.assign) 4977.9 Ops/sec
Script Preparation code:
Tests:
  • Reduce and Spread

  • ForEach and Mutate (for .. in loop)

  • Mutate with Object.assign

  • Foreach and Mutate (Object.assign)