Script Preparation code:
AخA
 
const arr = new Array(1000);
window.arr = arr;
for (let i = 0; i < arr.length; i++) {
    arr[i] = (Math.random() * 1000 >> 0) + 50
}
Tests:
  • indexArr

     
    const indexArr = new Array(1000)
    for(let i = 0;i < arr.length;i++){
        indexArr[i]=arr[i]
    }
  • pushArr

     
    const pushArr = new Array(1000)
    for(let i = 0;i < arr.length;i++){
        pushArr.push(arr[i])
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    indexArr
    pushArr

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 Edg/89.0.774.68
Chrome 89 on Windows
View result in a separate tab
Test name Executions per second
indexArr 3446.5 Ops/sec
pushArr 3271.5 Ops/sec