Run details:
Mozilla/5.0 (Linux; U; Android 8.1.0; zh-CN; vivo X20 Build/OPM1.171019.011) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.108 Quark/4.8.5.174 Mobile Safari/537.36
Chrome 78
Android 8.1.0
Mobile
3 years ago
Test name Executions per second
Just instantiate new array 26.5 Ops/sec
Set length to zero 27.2 Ops/sec
Splice 21.6 Ops/sec
Pop all values 20.3 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values