[] vs new Array() (v36)

Revision 36 of this benchmark created by HEYMAN on


Test runner

Ready to run.

Testing in
TestOps/sec
var ;
var i=10000,a=null;
while(i--) a= [0,1,2,3,4,5,6,7,8,9,10,0,1,2,3,4,5,6,7,8,9,10,0,1,2,3,4,5,6,7,8,9,10];
ready
var
var i=10000;
while(i--)var a= [0,1,2,3,4,5,6,7,8,9,10,0,1,2,3,4,5,6,7,8,9,10,0,1,2,3,4,5,6,7,8,9,10];
ready

Revisions

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