Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
Chrome 78
Mac OS X 10.14.6
Desktop
5 years ago
Test name Executions per second
pop 15170640.0 Ops/sec
shift 12512830.0 Ops/sec
length 5299397.0 Ops/sec
reassignment 8489753.0 Ops/sec
.splice(0) 11812017.0 Ops/sec
Script Preparation code:
Tests:
  • pop

  • shift

  • length

  • reassignment

  • .splice(0)