wqgrecrereffrre

JavaScript performance comparison

Revision 8 of this test case created by JeanHuguesRobert

Preparation code

<script src="http://bender.fesb.hr/~robert/scripts/q/q-master.js"></script>
<script>Q0 = Q;</script>
<script src="http://bender.fesb.hr/~robert/scripts/q/q-more-nextTick-2.js"></script>
<script>Q1 = Q;</script>
<script src="https://github.com/JeanHuguesRobert/l8/raw/master/lib/whisper.js"></script>
<script>
Benchmark.prototype.setup = function() {
    // Long stacks kill performances
    Q0.longStackJumpLimit = 0;
    Q1.longStackJumpLimit = 0;
   
};
</script>

Preparation code output

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
current
// async test
Q0.when(5)
.then()
.then()
.then()
.then()
.then()
.then(function() {
        deferred.resolve()
});
pending…
next
// async test
Q1.when(5)
.then()
.then()
.then()
.then()
.then()
.then(function() {
        deferred.resolve()
});
pending…
Parole
Parole.when(5)
.then()
.then()
.then()
.then()
.then()
.then(function() {
        deferred.resolve()
});
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