Performance cost of useless setTimeout

Benchmark created by Joseph Gentle on


Test runner

Ready to run.

Testing in
TestOps/sec
timeout
var timeout = setTimeout(function(){}, 3000);
clearTimeout(timeout);
ready
interval
var timeout = setInterval(function(){}, 3000);
clearInterval(timeout);
ready
control
 
ready

Revisions

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

  • Revision 1: published by Joseph Gentle on