Push vs length (v35)

Revision 35 of this benchmark created on


Setup

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.