Push vs length (v34)

Revision 34 of this benchmark created on


Teardown



            var myArray = [], i;
        
  

Test runner

Ready to run.

Testing in
TestOps/sec
length
for(i=0;i<10;i++){
  myArray.push('');
}
ready
push
for(i=0;i<10;i++){
  myArray[i] = '';
}
ready

Revisions

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