setinterval vs recursive settimeout

Benchmark created by ehynds on


Test runner

Ready to run.

Testing in
TestOps/sec
setInterval
setInterval(function() {}, 1000);
ready
setTimeout
(function loopsiloop() {
 setTimeout(function() {
  loopsiloop();
 }, 1000);
})();
ready

Revisions

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

  • Revision 1: published by ehynds on