Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36
Chrome 87
Mac OS X 11.1.0
Desktop
4 years ago
Test name Executions per second
Just instantiate new array 30553.6 Ops/sec
Set length to zero 30580.9 Ops/sec
Splice 27957.0 Ops/sec
Pop all values 19609.5 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values