Push vs length (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
length
var myArray = [];

for(i=1;i<=10;i++){
  myArray.push(i);
}
ready
push
var myArray = [];

for(i=1;i<=10;i++){
  myArray[i] = i;
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.