Quickest way to a UNIX Date

JavaScript performance comparison

Revision 33 of this test case created by ghjghj

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
+new Date() (All Browsers)
+new Date()
pending…
+new Date (All Browsers)
+new Date
pending…
Number(new Date()) (All Browsers)
Number(new Date())
pending…
Date.parse(new Date()) (All Browsers)
Date.parse(new Date())
pending…
new Date/1E3|0
new Date/1E3|0
pending…
Date.now() (ES5.1, IE9+)
Date.now()
pending…
new Date().getTime() (All Browsers)
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.

0 Comments