Script Preparation code:
Tests:
  • Array spread function array

  • Array via object

  • Array direct

  • Array slice

  • Array slice proto (for ArrayLike objects)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array spread function array
    Array via object
    Array direct
    Array slice
    Array slice proto (for ArrayLike objects)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Chrome 91 on Windows
View result in a separate tab
Test name Executions per second
Array spread function array 1144487.9 Ops/sec
Array via object 1232923.1 Ops/sec
Array direct 1555185.9 Ops/sec
Array slice 9231738.0 Ops/sec
Array slice proto (for ArrayLike objects) 3897557.0 Ops/sec