JS.var.2

Benchmark created by Jörg Schaper on


Setup

//Jörg Schaper
    var u=undefined;
    var A=[0,1,2,3,4,5,6,7,8,9];
    var B=[u,u,u,u,u,u,u,u,u,u];
    var C=[ , , , , , , , , , ];
    var D=[                   ];

Test runner

Ready to run.

Testing in
TestOps/sec
0
var a,b,c,d,e,f,g,h,i,j;
ready
1
var a=A[0],b=A[1],c=A[2],d=A[3],e=A[4],f=A[5],g=A[6],h=A[7],i=A[8],j=A[9];
ready
2
var a=B[0],b=B[1],c=B[2],d=B[3],e=B[4],f=B[5],g=B[6],h=B[7],i=B[8],j=B[9];
ready
3
var a=C[0],b=C[1],c=C[2],d=C[3],e=C[4],f=C[5],g=C[6],h=C[7],i=C[8],j=C[9];
ready
4
var a=D[0],b=D[1],c=D[2],d=D[3],e=D[4],f=D[5],g=D[6],h=D[7],i=D[8],j=D[9];
ready

Revisions

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

  • Revision 1: published by Jörg Schaper on