Script Preparation code:
Tests:
  • Array.concat

  • Slice with begin argument

  • Array.from

  • Array.toSpliced

  • Spread operator

  • For loop

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.concat
    Slice with begin argument
    Array.from
    Array.toSpliced
    Spread operator
    For loop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Windows
View result in a separate tab
Test name Executions per second
Array.concat 318.6 Ops/sec
Slice with begin argument 323.7 Ops/sec
Array.from 316.7 Ops/sec
Array.toSpliced 318.6 Ops/sec
Spread operator 309.8 Ops/sec
For loop 3.8 Ops/sec