Object Initalisation Methodology

JavaScript performance comparison

Revision 3 of this 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
Null
window.asdf = {a:null,b:null,c:null};
asdf.a = Math.random();
asdf.b = Math.random();
asdf.c = Math.random();
 
pending…
Blank
window.uiop = {};
uiop.x = Math.random();
uiop.y = Math.random();
uiop.z = Math.random();
 
pending…
Undefined
window.qwer = {d:undefined,e:undefined,f:undefined};
qwer.d = Math.random();
qwer.e = Math.random();
qwer.f = Math.random();
 
pending…
Number
window.ghjk = {t:0,u:0,v:0};
ghjk.t = Math.random();
ghjk.u = Math.random();
ghjk.v = Math.random();
 
pending…
Boolean
window.zxcv = {g:false,h:false,i:false};
zxcv.g = Math.random();
zxcv.h = Math.random();
zxcv.i = Math.random();
 
pending…
String
window.bnml = {q:'',r:'',s:''};
bnml.q = Math.random();
bnml.r = Math.random();
bnml.s = Math.random();
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