Push vs length (v28)

Revision 28 of this benchmark created by chuan on


Test runner

Ready to run.

Testing in
TestOps/sec
length
var myArray = [1,2,3,4,5,6];
myArray[myArray.length] = 'foo';
myArray[myArray.length] = 'bar';
ready
push
var myArray = [1,2,3,4,5,6];
myArray.push('foo');
myArray.push('bar');
ready

Revisions

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