momentjs vs datejs
JavaScript performance comparison
Preparation code
<script src="https://raw.github.com/datejs/Datejs/master/build/date.js"></script>
<script src="https://raw.github.com/timrwood/moment/master/moment.js"></script>
<script>
var DateJS = new Date();
var momentJS = moment();
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
moment.js parse |
|
pending… |
DateJS parse |
|
pending… |
moment.js format |
|
pending… |
DateJS format |
|
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 Tim
- Revision 2: published by Tim
- Revision 3: published by Tim Wood
- Revision 4: published
- Revision 5: published
- Revision 7: published by Scott Yang
- Revision 9: published
0 comments