Run details:
Mozilla/5.0 (Linux; Android 8.1.0; 16th Plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36
Chrome Mobile 98
Android 8.1.0
Mobile
2 years ago
Test name Executions per second
.unshift() 6974.4 Ops/sec
.push() 5570877.5 Ops/sec
Script Preparation code:
Tests:
  • .unshift()

  • .push()