Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 YaBrowser/19.12.4.25 Yowser/2.5 Safari/537.36
Yandex Browser 19
Windows
Desktop
4 years ago
Test name Executions per second
Just instantiate new array 22197.9 Ops/sec
Set length to zero 22378.2 Ops/sec
Splice 20125.4 Ops/sec
Pop all values 13921.2 Ops/sec
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Pop all values