Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Chrome 53
Windows 7
5 years ago
Test name Executions per second
Just instantiate new array 15758.1 Ops/sec
Set length to zero 15932.3 Ops/sec
Splice 15832.9 Ops/sec
Pop all values 11251.4 Ops/sec
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values