simpleTest

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
regexp
(new Date().getTime()).toString().slice(4) + 'xxxxxxx'.replace(/[x]/g, function(c) {
        return Math.random()*10|0;
    });
pending…
for
var v = (new Date().getTime()).toString().slice(4);
for (var i=0, len=7; i<len; i++){
 v += Math.random()*10|0;
}
pending…
binary
(new Date().getTime()).toString().slice(4) + (10000000 + Math.random() * 89999999 << 0)
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