Script Preparation code:
Tests:
  • Array.prototype.concat

  • Array.prototype.push spread

  • Array.prototype.concat.apply

  • Array.prototype.push.apply

  • Spread

  • Loop Push

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.prototype.concat
    Array.prototype.push spread
    Array.prototype.concat.apply
    Array.prototype.push.apply
    Spread
    Loop Push

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36
Chrome 101 on Windows
View result in a separate tab
Test name Executions per second
Array.prototype.concat 3234382.0 Ops/sec
Array.prototype.push spread 3916858.0 Ops/sec
Array.prototype.concat.apply 1560972.0 Ops/sec
Array.prototype.push.apply 2314218.0 Ops/sec
Spread 4666604.0 Ops/sec
Loop Push 4761130.0 Ops/sec