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

Latest run results:
Run details: (Test run date: 2 years 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 3234381.5 Ops/sec
Array.prototype.push spread 3916858.2 Ops/sec
Array.prototype.concat.apply 1560971.9 Ops/sec
Array.prototype.push.apply 2314218.2 Ops/sec
Spread 4666604.0 Ops/sec
Loop Push 4761129.5 Ops/sec


;