Push vs length (v9)

Revision 9 of this benchmark created by Tomas Corral 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
concat
var a = new Array();
for(var i =0;i<100000; i++){
    a.concat([i]);
};
ready

Revisions

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