Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126
Windows
Desktop
11 months ago
Test name Executions per second
Array.prototype.concat 6891427.5 Ops/sec
spread operator 3309882.5 Ops/sec
Push Spread 6891655.5 Ops/sec
Push Apply 5373794.0 Ops/sec
Push Loop 16030435.0 Ops/sec
Assign length loop 13284577.0 Ops/sec
minified assign loop 14557163.0 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.concat

  • spread operator

  • Push Spread

  • Push Apply

  • Push Loop

  • Assign length loop

  • minified assign loop