underscore.date vs datejs (v19)

Revision 19 of this benchmark created on


Preparation HTML

<script src="https://raw.github.com/datejs/Datejs/master/build/date.js"></script>

<script src="https://raw.github.com/timrwood/underscore.date/master/underscore.date.js"></script>
<script>
  var nowDate = new Date();
  var _nowDate = _.date(nowDate);
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
underscore.date parse
_.date('7-10-1986', 'MM-DD-YYYY');
ready
DateJS parse
Date.parse('7-10-1986', "MM-dd-yyyy");
ready
underscore.date format
_nowDate.format('MM-DD-YYYY h:mm:ss a');
ready
DateJS format
nowDate.toString('MM-dd-yyyy h:mm:ss t');
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.