Run details:
Mozilla/5.0 (Linux; Android 10; HRY-AL00a; HMSCore 5.2.0.333) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 HuaweiBrowser/11.1.0.300 Mobile Safari/537.36
Chrome 83
Android
Mobile
3 years ago
Test name Executions per second
Just instantiate new array 26.5 Ops/sec
Set length to zero 36.1 Ops/sec
Splice 25.3 Ops/sec
Pop all values 18.3 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values