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 2268.2 Ops/sec
concat 2092.5 Ops/sec
unshift (forEach) 1.8 Ops/sec
unshift (spread) 793.2 Ops/sec
push 36782388.0 Ops/sec
Script Preparation code:
Tests:
  • spread

  • concat

  • unshift (forEach)

  • unshift (spread)

  • push