Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
spread 1464.0 Ops/sec
concat 917.3 Ops/sec
unshift (forEach) 127.2 Ops/sec
unshift (spread) 897.8 Ops/sec
push 10627849.0 Ops/sec
Script Preparation code:
Tests:
  • spread

  • concat

  • unshift (forEach)

  • unshift (spread)

  • push