Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_5_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome 87
Mac OS X 11.5.2
Desktop
3 years ago
Test name Executions per second
pop 14016479.0 Ops/sec
shift 14769369.0 Ops/sec
length 7955269.0 Ops/sec
reassignment 8952965.0 Ops/sec
.splice(0) 10407487.0 Ops/sec
Script Preparation code:
Tests:
  • pop

  • shift

  • length

  • reassignment

  • .splice(0)