Tests:
  • Array.concat

  • Array.slice

  • For loop

  • For loop with declared length

  • While loop

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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94 on Ubuntu
View result in a separate tab
Test name Executions per second
Array.concat 2167115.5 Ops/sec
Array.slice 5353382.5 Ops/sec
For loop 2314156.5 Ops/sec
For loop with declared length 2148240.8 Ops/sec
While loop 2406057.0 Ops/sec


;