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 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36
Chrome Mobile 134 on Android
View result in a separate tab
Test name Executions per second
Array.concat 43446608.0 Ops/sec
Array.slice 58199104.0 Ops/sec
For loop 2263549.2 Ops/sec
For loop with declared length 2529748.5 Ops/sec
While loop 2601110.0 Ops/sec
Spread operator 41771828.0 Ops/sec
Slice with begin argument 57034632.0 Ops/sec
Slice with begin and end argument 22680618.0 Ops/sec