Tests:
  • new array with length

    AخA
     
    var a = new Array(10);
    for (var i = 0; i<10; i++) {
      a[i] = i;
    }
  • new array with push

     
    var a = [];
    for (var i = 0; i<10; i++) {
      a.push(i);
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    new array with length
    new array with push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Chrome 53 on Linux
View result in a separate tab
Test name Executions per second
new array with length 2413522.2 Ops/sec
new array with push 7000963.5 Ops/sec