Script Preparation code:
Tests:
  • Array.concat

  • Array.slice

  • For loop

  • For loop with declared length

  • While loop

  • Spread operator

  • Slice with begin argument

  • Slice with begin and end argument

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.concat
    Array.slice
    For loop
    For loop with declared length
    While loop
    Spread operator
    Slice with begin argument
    Slice with begin and end argument

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
Test name Executions per second
Array.concat 3315429.5 Ops/sec
Array.slice 3300158.2 Ops/sec
For loop 92925.7 Ops/sec
For loop with declared length 129563.4 Ops/sec
While loop 138394.5 Ops/sec
Spread operator 3327695.5 Ops/sec
Slice with begin argument 3431885.8 Ops/sec
Slice with begin and end argument 2225193.0 Ops/sec