setImmediate Test (v15)

Revision 15 of this benchmark created on


Description

set immediate test

Test runner

Ready to run.

Testing in
TestOps/sec
readyStateChange
// async test
var scriptEl = document.createElement("script");
scriptEl.onreadystatechange = function () {
    scriptEl.onreadystatechange = null;
    scriptEl.parentNode.removeChild(scriptEl);
    scriptEl = null;

    deferred.resolve();
};

document.documentElement.appendChild(scriptEl);
ready
setTimeout
// async test
setTimeout(function () {
    deferred.resolve();
}, 0);
ready
data-uri
// async test
// async test
var i = new Image();

i.onreadystatechange = function () {
    i.onreadystatechange = null;
    i = null;

    deferred.resolve();
};

i.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";
ready

Revisions

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