Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Chrome 66
Windows 8.1
Other
6 years ago
Test name Executions per second
Just instantiate new array 22213.0 Ops/sec
Set length to zero 22164.2 Ops/sec
Splice 21983.7 Ops/sec
Pop all values 14676.7 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values