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
Mobile
3 years ago
Test name Executions per second
Just instantiate new array 10014.3 Ops/sec
Set length to zero 9888.2 Ops/sec
Splice 7961.3 Ops/sec
Pop all values 6263.8 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values