Run details:
Mozilla/5.0 (Linux; Android 10; Mi 9T Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Mobile Safari/537.36
Chrome Mobile 87
one year ago
Test name Executions per second
Just instantiate new array 15055.8 Ops/sec
Set length to zero 16633.1 Ops/sec
Splice 14676.7 Ops/sec
Pop all values 10487.1 Ops/sec
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values