Date.now()

Benchmark created on


Preparation HTML

<script>
  var foo, timeout;
  
  function timer() {}
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Date.now()
foo = Date.now();
ready
setTimeout()
clearTimeout(timeout);
timeout = setTimeout(timer, 1000)
ready

Revisions

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