Tests:
  • concate

    AخA
     
    const array1 = [1, 2, 3];
    const concated = array1.concat([4, 5, 6]);
  • spread

     
    const array1 = [1, 2, 3];
    const spreaded = [
      ...array1,
      ...[4, 5, 6],
    ];
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    concate
    spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15
Safari 13 on Mac OS X 10.15.2
View result in a separate tab
Test name Executions per second
concate 12281173.0 Ops/sec
spread 55610668.0 Ops/sec