Run details:
Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-A530W) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/11.1 Chrome/75.0.3770.143 Mobile Safari/537.36
Chrome Mobile 75
Android
Mobile
4 years ago
Test name Executions per second
Just instantiate new array 8997.1 Ops/sec
Set length to zero 9195.7 Ops/sec
Splice 7935.3 Ops/sec
Pop all values 5388.9 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values