jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
moment.js and date.js are 2 libraries offering similar functionalities that is lacking in basic javascript.
Results on Chrome: moment.js is lighter, and offers much faster parsing. On the other hand, date.js offers much faster formatting and manipulation.
<script src="http://datejs.googlecode.com/files/date.js"></script>
<script src="http://momentjs.com/downloads/moment.min.js"></script>
<script>
var DateJS = new Date();
var momentJS = moment();
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
moment.js parse |
| ready |
DateJS parse |
| ready |
moment.js format |
| ready |
DateJS format |
| ready |
moment.js manipulation |
| ready |
DateJS manipulation |
| ready |
moment.js Overall |
| ready |
DateJS Overall |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.