Date.now vs Date.valueOf vs Number(Date) vs Date/1
JavaScript performance comparison
Info
Add new Date()/1 to the existing tests
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Date.now() |
|
pending… |
Date.getTime |
|
pending… |
Number( new Date) |
|
pending… |
+new Date() |
|
pending… |
new Date()/1 |
|
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 by Will Alexander
- Revision 2: published by Kristof Neirynck
- Revision 3: published
- Revision 4: published
- Revision 5: published
- Revision 6: published
0 comments