Run details:
Mozilla/5.0 (Linux; Android 6.0.1; SM-G600FY Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Mobile Safari/537.36
Chrome Mobile 69
Android 6.0.1
Mobile
6 years ago
Test name Executions per second
Just instantiate new array 1945.9 Ops/sec
Set length to zero 2108.9 Ops/sec
Splice 2127.8 Ops/sec
Pop all values 1580.2 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values