Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 OPR/40.0.2308.90
Opera 40
Windows
Other
8 years ago
Test name Executions per second
Just instantiate new array 21713.5 Ops/sec
Set length to zero 22178.1 Ops/sec
Splice 22104.2 Ops/sec
Pop all values 15753.0 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values