Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
Chrome 86
Fedora
Desktop
3 years ago
Test name Executions per second
Just instantiate new array 28058.9 Ops/sec
Set length to zero 26942.1 Ops/sec
Splice 26139.7 Ops/sec
Pop all values 16498.8 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values