Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 OPR/71.0.3770.171
Opera 71
Linux
Desktop
4 years ago
Test name Executions per second
Just instantiate new array 30200.5 Ops/sec
Set length to zero 29765.4 Ops/sec
Splice 27952.5 Ops/sec
Pop all values 17768.1 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values