Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
Chrome 54
Windows 7
Other
8 years ago
Test name Executions per second
Just instantiate new array 5409.8 Ops/sec
Set length to zero 4393.4 Ops/sec
Splice 4640.3 Ops/sec
Pop all values 2635.6 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values