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 9660.0 Ops/sec
Set length to zero 10085.2 Ops/sec
Splice 7610.7 Ops/sec
Pop all values 6270.8 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values