Date.now vs tickcount

Benchmark created by Arthur on


Preparation HTML

<script>
  var obj = {
   tickTime: 1,
   ticks: function() {
    return this.tickTime
   }
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Date.now
Date.now()
ready
func
obj.ticks();
ready

Revisions

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

  • Revision 1: published by Arthur on