Push vs length (v30)

Revision 30 of this benchmark created on


Preparation HTML

var myArray = [];

Test runner

Ready to run.

Testing in
TestOps/sec
length
myArray[myArray.length] = 'foo';
myArray.length++;
ready
push
myArray[myArray.length] = 'foo';
ready

Revisions

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