Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G36 Safari/601.1
Mobile Safari 9
iOS 9.3.5
iPhone
8 years ago
Test name Executions per second
Just instantiate new array 10729.7 Ops/sec
Set length to zero 10605.4 Ops/sec
Splice 8241.9 Ops/sec
Pop all values 6937.9 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values