"Date.now()" vs "+new Date()" vs "new Date().getTime()" (v15)

Revision 15 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Date.now()
Date.now()
ready
+new Date()
+new Date()
ready
new Date().getTime()
new Date().getTime()
ready
performance.now()
performance.now()
ready
Date.now() - performance.timing.navigationStart
Date.now() - performance.timing.navigationStart
ready

Revisions

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