asynch cost

JavaScript performance comparison

Test case created by JeanHuguesRobert

Info

What's the overhead with asynchronous function calls.

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Synchronous
var ii = 1;

while (ii--) {
 do_it();
}

function do_it() {}
pending…
Asynchronous
var ii = 1;

(function label_1() {
 if (!ii--) return;
 do_it(function() {
  label_1();
 })
})()


function do_it(next) {
 next();
}
pending…

You can edit these tests or add even more tests to this page by appending /edit to the URL.

Compare results of other browsers

0 comments

Add a comment