Run details:
Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36
Chrome 66
Windows 8
Other
6 years ago
Test name Executions per second
Just instantiate new array 11747.0 Ops/sec
Set length to zero 11833.9 Ops/sec
Splice 11243.3 Ops/sec
Pop all values 7057.8 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values