Run details:
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
Chrome 54
Windows 8.1
5 years ago
Test name Executions per second
Just instantiate new array 22263.7 Ops/sec
Set length to zero 22256.0 Ops/sec
Splice 21965.9 Ops/sec
Pop all values 15323.7 Ops/sec
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values