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

  • Spread operator 10 items

  • Array.prototype.concat 100 items

  • Spread operator 100 items

  • Array.prototype.concat 10K items

  • Spread operator 10K items

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.prototype.concat 10 items
    Spread operator 10 items
    Array.prototype.concat 100 items
    Spread operator 100 items
    Array.prototype.concat 10K items
    Spread operator 10K items

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Array.prototype.concat 10 items 3707848.5 Ops/sec
Spread operator 10 items 5638908.5 Ops/sec
Array.prototype.concat 100 items 2871025.8 Ops/sec
Spread operator 100 items 1700096.4 Ops/sec
Array.prototype.concat 10K items 135983.7 Ops/sec
Spread operator 10K items 22148.0 Ops/sec


;