Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36 Edg/102.0.1245.33
Chrome 102
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
pop 24422208.0 Ops/sec
shift 24716788.0 Ops/sec
length 14431955.0 Ops/sec
reassignment 18070818.0 Ops/sec
.splice(0) 18697838.0 Ops/sec
Script Preparation code:
Tests:
  • pop

  • shift

  • length

  • reassignment

  • .splice(0)