var type comparison

JavaScript performance comparison

Test case created

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
multiple var, late assignment
var a;
var b;
var c;
var d;
var e;
var f;
var g;

a = 0;
b = 1;
c = 2;
d = 3;
e = 4;
f = 5;
g = 6;
 
pending…
one var, late assignment
var a, b, c, d, e, f, g;

a = 0;
b = 1;
c = 2;
d = 3;
e = 4;
f = 5;
g = 6;
pending…
multiple var, immediate assignment
var a = 0;
var b = 1;
var c = 2;
var d = 3;
var e = 4;
var f = 5;
var g = 6;
pending…
one var, immediate assignment
var a = 0,
b = 1,
c = 2,
d = 3,
e = 4,
f = 5,
g = 6;
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment