Push vs length (v8)

Revision 8 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
length
var b = new Array();
for(var i =0;i<100000; i++){
    b[b.length] = i;
};
ready
push
var a = new Array();
for(var i =0;i<100000; i++){
    a.push(i);
};
ready

Revisions

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