Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Just instantiate new array
    Set length to zero
    Splice
    Pop all values

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: yesterday)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130 on Ubuntu
View result in a separate tab
Test name Executions per second
Just instantiate new array 18981.1 Ops/sec
Set length to zero 40687.3 Ops/sec
Splice 44049.3 Ops/sec
Pop all values 13350.0 Ops/sec