window.performance.now vs Date.now (v2)

Revision 2 of this benchmark created by No Name on


Description

window.performance.now vs. Date.now

Preparation HTML

<script type="text/javascript">
    var perf = window.performance;
    var perfNow = function () {
        return perf.now();
    };
    var date = window.Date;
    var dateNow = function () {
        return date.now();
    };
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
window.performance.now
perfNow();
ready
Date.now
dateNow();
ready

Revisions

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

  • Revision 1: published by Cory Gross on
  • Revision 2: published by No Name on