Date.now vs Date.getTime

JavaScript performance comparison

Test case created by

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Date.now();
var foo = Date.now();
pending…
Date.getTime()
var foo = new Date().getTime();
pending…

Compare results of other browsers

Revisions

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

2 Comments

Tarun commented :

That test case deals more with getting value of the date than getting the current time.