Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Windows
Desktop
one year ago
Test name Executions per second
Using concat 11051338.0 Ops/sec
Using prototype.push.apply 20110506.0 Ops/sec
Using arr1.push.apply 24538372.0 Ops/sec
Using push spread operator 25021052.0 Ops/sec
Using spread operator 9869415.0 Ops/sec
Tests:
  • Using concat

  • Using prototype.push.apply

  • Using arr1.push.apply

  • Using push spread operator

  • Using spread operator