Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.145 Safari/537.36 Vivaldi/2.6.1566.49
Chrome 75
Windows
Desktop
5 years ago
Test name Executions per second
Just instantiate new array 20339.3 Ops/sec
Set length to zero 21363.2 Ops/sec
Splice 646.0 Ops/sec
Pop all values 14643.0 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values