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: 11 seconds ago)
Mozilla/5.0 (Android 11; Mobile; rv:94.0) Gecko/94.0 Firefox/94.0
Firefox Mobile 94 on Android
View result in a separate tab
Test name Executions per second
Just instantiate new array 4594.4 Ops/sec
Set length to zero 4687.2 Ops/sec
Splice 5144.5 Ops/sec
Pop all values 3692.9 Ops/sec