Run details:
Mozilla/5.0 (Linux; Android 9; Redmi Note 5 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Mobile Safari/537.36
Chrome Mobile 84
one year ago
Test name Executions per second
Just instantiate new array 7970.0 Ops/sec
Set length to zero 8300.0 Ops/sec
Splice 7097.9 Ops/sec
Pop all values 4693.8 Ops/sec
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values