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 15800.5 Ops/sec
Set length to zero 15653.9 Ops/sec
Splice 13046.0 Ops/sec
Pop all values 10467.8 Ops/sec
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values