Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Windows
Desktop
2 years ago
Test name Executions per second
ES 6 Spread, combining objects 860197.1 Ops/sec
Object.assign, combining objects 3763074.2 Ops/sec
ES 6 Spread, cloning objects 59960644.0 Ops/sec
Object.assign, cloning objects 3991376.5 Ops/sec
Tests:
  • ES 6 Spread, combining objects

  • Object.assign, combining objects

  • ES 6 Spread, cloning objects

  • Object.assign, cloning objects