Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Linux
Desktop
one year ago
Test name Executions per second
Using array spread 5324139.0 Ops/sec
Using clone and push loop 10082558.0 Ops/sec
Using clone and push spread 4393178.5 Ops/sec
Using clone and push spread 2 3553577.8 Ops/sec
Using push spread 2945258.8 Ops/sec
Using array concat 7670045.0 Ops/sec
Using array concat (2) 3492119.2 Ops/sec
Script Preparation code:
Tests:
  • Using array spread

  • Using clone and push loop

  • Using clone and push spread

  • Using clone and push spread 2

  • Using push spread

  • Using array concat

  • Using array concat (2)


;