setTimeout vs loop

Benchmark created by Matteo Basso on


Test runner

Ready to run.

Testing in
TestOps/sec
setTimeout
setTimeout(function() {});
ready
loop
for(var i = 10; i--;) {
i;
}
ready

Revisions

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

  • Revision 1: published by Matteo Basso on