Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 Edg/89.0.774.76
Chrome 89
Mac OS X 10.15.6
Desktop
2 years ago
Test name Executions per second
Just instantiate new array 25717.3 Ops/sec
Set length to zero 26028.9 Ops/sec
Splice 23157.2 Ops/sec
Pop all values 14944.5 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values