Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7
Safari 9
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
Just instantiate new array 20336.2 Ops/sec
Set length to zero 20594.6 Ops/sec
Splice 13350.1 Ops/sec
Pop all values 12869.5 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values