Run details:
Mozilla/5.0 (Linux; Android 11; DN2103) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
spread 1747.0 Ops/sec
concat 1519.7 Ops/sec
unshift (forEach) 1.7 Ops/sec
unshift (spread) 539.6 Ops/sec
push 35961780.0 Ops/sec
Script Preparation code:
Tests:
  • spread

  • concat

  • unshift (forEach)

  • unshift (spread)

  • push