Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_4_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.14(0x17000e2e) NetType/WIFI Language/zh_CN
Mobile Safari 12
iOS 12.4.5
one year ago
Test name Executions per second
Just instantiate new array 9950.5 Ops/sec
Set length to zero 10000.8 Ops/sec
Splice 8028.9 Ops/sec
Pop all values 6241.2 Ops/sec
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values