Script Preparation code:
Tests:
  • slice

  • spread operator

  • push apply into empty array

  • Array.from

  • concat

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    slice
    spread operator
    push apply into empty array
    Array.from
    concat

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Chrome 91 on Mac OS X 10.14.6
View result in a separate tab
Test name Executions per second
slice 503444.8 Ops/sec
spread operator 489903.8 Ops/sec
push apply into empty array 1472001.0 Ops/sec
Array.from 419219.6 Ops/sec
concat 878343.3 Ops/sec