Moment.js Parse ISO Date (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="https://raw.github.com/timrwood/moment/1.2.0/moment.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
To String
alert(moment('2011-09-23T20:40:55.00Z').toString());
ready
10 iterations
for (var i = 0, len = 10; i < len; i++) { moment('2011-09-23T20:40:55.00' + i + '+0000Z').toString(); };
ready

Revisions

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