Script Preparation code:
Tests:
  • slice

  • spread operator

  • push apply into empty array

  • Array.from

  • Object.values

  • Array.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
    Object.values
    Array.concat

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36 Edg/101.0.1210.53
Chrome 101 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
slice 994166.6 Ops/sec
spread operator 917084.3 Ops/sec
push apply into empty array 2737675.2 Ops/sec
Array.from 771951.9 Ops/sec
Object.values 183870.6 Ops/sec
Array.concat 1555811.1 Ops/sec