Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Firefox/52.0
Firefox 52
Mac OS X 10.12
Desktop
6 years ago
Test name Executions per second
.unshift() 8361.9 Ops/sec
.push() 21628626.0 Ops/sec
Script Preparation code:
Tests:
  • .unshift()

  • .push()