Script Preparation code:
AخA
 
 var someBigArray = [];
  var anotherArray = [];
  
  for (var i = 0; i < 100; i++) {
    someBigArray.push(10);
    anotherArray.push(10);
  }
Tests:
  • concat

     
    someBigArray = someBigArray.concat(anotherArray);
  • push

     
    anotherArray.forEach(function(item) {
      someBigArray.push(anotherArray);
    })
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    concat
    push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
Chrome 54 on Mac OS X 10.11.6
View result in a separate tab
Test name Executions per second
concat 596.8 Ops/sec
push 38310.3 Ops/sec