jQuery Datepicker vs datejs

JavaScript performance comparison

Test case created by Josh T

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js">
</script>
<script>
Benchmark.prototype.setup = function() {
    dateText = "11/5/1955";
};
</script>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
DateJS Parse
Date.parse(dateText);
pending…
jQuery parseDate
$.datepicker.parseDate("mm/dd/yy", dateText)
pending…

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

Compare results of other browsers

0 comments

Add a comment