Run details:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36
Chrome 91
Windows 7
Desktop
11 months ago
Test name Executions per second
Just instantiate new array 8810.1 Ops/sec
Set length to zero 9014.5 Ops/sec
Splice 7416.8 Ops/sec
Pop all values 7225.6 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values