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)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113 on Linux
View result in a separate tab
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


;