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 8630.5 Ops/sec
Set length to zero 8761.0 Ops/sec
Splice 7568.1 Ops/sec
Pop all values 5487.6 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values