Run details:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
Chrome 99
Windows 7
Desktop
2 years ago
Test name Executions per second
Just instantiate new array 20277.1 Ops/sec
Set length to zero 20246.8 Ops/sec
Splice 17981.7 Ops/sec
Pop all values 12760.5 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values