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
Checking the speed of Moment.js with different options.
<script src="https://rawgithub.com/timrwood/moment/2.0.0/moment.js"></script>
function globalDoNothing () {
var doNothing = '';
}
globalMoment = moment('2011-09-23 20:40:55.999',"YYYY-MM-DD HH:mm:ss.SSS");
globalDate = new Date('2011-09-23T20:40:55.999+0000');
Ready to run.
Test | Ops/sec | |
---|---|---|
Moment.js without format |
| ready |
Moment.js with format |
| ready |
Logging |
| ready |
Logging Date |
| ready |
Logging Moment |
| ready |
Parse and format |
| ready |
Just format |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.