Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/86.0.4240.77 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 86
iOS 14.2
Mobile
4 years ago
Test name Executions per second
Just instantiate new array 27608.8 Ops/sec
Set length to zero 26444.6 Ops/sec
Splice 20262.6 Ops/sec
Pop all values 15492.6 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values