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 9855.0 Ops/sec
Set length to zero 10079.3 Ops/sec
Splice 8028.9 Ops/sec
Pop all values 6282.5 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values


;