Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
Using concat 6705769.5 Ops/sec
Using prototype.push.apply 4747722.0 Ops/sec
Using arr1.push.apply 15578662.0 Ops/sec
Using push spread operator 16209318.0 Ops/sec
Using spread operator 16884708.0 Ops/sec
Tests:
  • Using concat

  • Using prototype.push.apply

  • Using arr1.push.apply

  • Using push spread operator

  • Using spread operator