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: 5 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:150.0) Gecko/20100101 Firefox/150.0
Firefox 150 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
Array.concat 24338184.0 Ops/sec
Array.slice 32993010.0 Ops/sec
For loop 14429202.0 Ops/sec
For loop with declared length 14727930.0 Ops/sec
While loop 15078051.0 Ops/sec
Spread operator 6426543.0 Ops/sec
Slice with begin argument 32890174.0 Ops/sec
Slice with begin and end argument 32798278.0 Ops/sec