Run details:
Mozilla/5.0 (X11; CrOS x86_64 13020.87.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36
Chrome 83
Chrome OS 13020.87.0
Desktop
4 years ago
Test name Executions per second
Just instantiate new array 9878.4 Ops/sec
Set length to zero 9996.1 Ops/sec
Splice 9604.2 Ops/sec
Pop all values 6057.3 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values