Date.now vs new Date().getTime() vs +new Date
JavaScript performance comparison
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Date.now() |
|
pending… |
new Date().getTime() |
|
pending… |
+new Date |
|
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. Here’s a list of current revisions for this page:
- Revision 1: published
- Revision 2: published by mgh
- Revision 4: published
- Revision 5: published by new Date()/1000
- Revision 7: published
- Revision 8: published
- Revision 9: published
- Revision 10: published
- Revision 11: published by Jamie Pate
0 comments