Run details:
Mozilla/5.0 (Linux; Android 11; Mi 10 Pro Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045613 Mobile Safari/537.36 MMWEBID/8538 MicroMessenger/ Process/tools WeChat/arm64 Weixin NetType/4G Language/zh_CN ABI/arm64
QQ Browser Mobile 6
one year ago
Test name Executions per second
Just instantiate new array 15778.5 Ops/sec
Set length to zero 15765.7 Ops/sec
Splice 13318.4 Ops/sec
Pop all values 10477.1 Ops/sec
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values