Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 YaBrowser/20.11.3.183 Yowser/2.5 Safari/537.36
Yandex Browser 20
Windows 7
Desktop
4 years ago
Test name Executions per second
pop 2283494.8 Ops/sec
shift 2276123.8 Ops/sec
length 1351065.9 Ops/sec
reassignment 1585800.4 Ops/sec
.splice(0) 1774142.6 Ops/sec
Script Preparation code:
Tests:
  • pop

  • shift

  • length

  • reassignment

  • .splice(0)