Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
Firefox 63
Windows 8.1
Desktop
6 years ago
Test name Executions per second
Spread 2588041.8 Ops/sec
Object.assign (mutate) 5209417.5 Ops/sec
Object.assign (new object) 1071711.9 Ops/sec
Script Preparation code:
Tests:
  • Spread

  • Object.assign (mutate)

  • Object.assign (new object)