dasjflasdjkfjsaj

JavaScript performance comparison

Revision 15 of this test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    window.test = function(a){return a;};
};
</script>

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
a
window.asdf = {a:null,b:null,c:null};
test(asdf);
asdf.a = Math.random();
asdf.b = Math.random();
asdf.c = Math.random();
pending…
b
window.uiop = {};
test(uiop);
uiop.x = Math.random();
uiop.y = Math.random();
uiop.z = Math.random();
pending…
c
window.qwer = {a:undefined,b:undefined,c:undefined};
test(qwer);
qwer.d = Math.random();
qwer.e = Math.random();
qwer.f = Math.random();
pending…
d
window.ghjk = {a:0,b:0,c:0};
test(ghjk);
ghjk.t = Math.random();
ghjk.u = Math.random();
ghjk.v = Math.random();
pending…
e
window.zxcv = {a:false,b:false,c:false};
test(zxcv);
zxcv.g = Math.random();
zxcv.h = Math.random();
zxcv.i = Math.random();
pending…
f
window.bnml = {a:'',b:'',c:''};
test(bnml);
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