Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.prototype.slice()
    spread operator
    Array.prototype.slice(0)
    Array.from()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0
Firefox 138 on Windows
View result in a separate tab
Array.prototype.slice(0)
5.7M/s
Array.prototype.slice()
5.7M/s
spread operator
1.3M/s
Array.from()
1.2M/s
View exact numbers
Test name Executions per second
Array.prototype.slice(0) 5,724,952 Ops/sec
Array.prototype.slice() 5,681,192 Ops/sec
spread operator 1,320,724 Ops/sec
Array.from() 1,247,191 Ops/sec