Date Access Speed Tests

JavaScript performance comparison

Test case created by Dan Herbert

Info

Tests to experiment with the performance of various ways of getting Date in millisecond format.

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Date.now()
var ts = Date.now()
pending…
+new Date()
var ts = +new Date()
pending…
new Date().getTime()
var ts = new Date().getTime()
pending…
performance.now()
var ts = performance.timing.navigationStart + performance.now()
pending…

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

Compare results of other browsers

0 comments

Add a comment