Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_1 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A403 Safari/602.1
Mobile Safari 10
iOS 10.0.1
iPhone
8 years ago
Test name Executions per second
Just instantiate new array 6609.9 Ops/sec
Set length to zero 6945.2 Ops/sec
Splice 5002.2 Ops/sec
Pop all values 3681.7 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values