Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36
Chrome 54
Mac OS X 10.10.5
Other
8 years ago
Test name Executions per second
Just instantiate new array 18704.6 Ops/sec
Set length to zero 19072.7 Ops/sec
Splice 19314.4 Ops/sec
Pop all values 12592.9 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values