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: 3 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127 on Windows
View result in a separate tab
Test name Executions per second
slice 642534.8 Ops/sec
spread operator 675570.8 Ops/sec
push apply into empty array 1877254.4 Ops/sec
Array.from 545401.3 Ops/sec
Object.values 163514.5 Ops/sec


;