Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/75.0.3770.90 Chrome/75.0.3770.90 Safari/537.36
Chromium 75
Ubuntu
Desktop
4 years ago
Test name Executions per second
Using the spread operator 2863846.0 Ops/sec
Using Object.assign 2956217.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign