Run details:
Mozilla/5.0 (Linux; Android 13; SM-A528B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Mobile Safari/537.36
Chrome Mobile 113
Android
Mobile
one year ago
Test name Executions per second
Using the spread operator 1635916.0 Ops/sec
Using Object.assign 1131827.5 Ops/sec
Babel 186771.3 Ops/sec
Script Preparation code:
Tests:
  • Using the spread operator

  • Using Object.assign

  • Babel