Script Preparation code:
Tests:
  • slice

  • spread operator

  • push apply into empty array

  • Array.from

  • Object.values

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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36
Chrome 66 on Windows
View result in a separate tab
Test name Executions per second
slice 256590.7 Ops/sec
spread operator 480849.5 Ops/sec
push apply into empty array 1147929.8 Ops/sec
Array.from 369462.1 Ops/sec
Object.values 124244.7 Ops/sec


;