Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/16.2b14898 Mobile/15E148 Safari/605.1.15
Mobile Safari 12
iOS 12.2
Mobile
5 years ago
Test name Executions per second
Just instantiate new array 14433.2 Ops/sec
Set length to zero 13413.4 Ops/sec
Splice 11400.9 Ops/sec
Pop all values 9645.1 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values