Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36
Chrome 87
Mac OS X 10.15.4
Desktop
one year ago
Test name Executions per second
Just instantiate new array 30811.5 Ops/sec
Set length to zero 30603.8 Ops/sec
Splice 28445.2 Ops/sec
Pop all values 20375.3 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values