momentjs vs xaprb

Benchmark created by Tim on


Preparation HTML

<script src="http://flexible-js-formatting.googlecode.com/svn/trunk/dates/date-functions.js"></script>
<script src="https://raw.github.com/timrwood/moment/master/moment.js"></script>

<script>
var m = moment();
var d = new Date();

if (console && console.log) {
  console.log(m.format('MM-DD-YYYY h:mm:ss a'), 'MomentJS format');
  console.log(d.dateFormat('m-d-Y h:i:s a'), 'xaprb format');
}
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
MomentJS
m.format('MM-DD-YYYY h:mm:ss a');
ready
xaprb
d.dateFormat('m-d-Y h:i:s a');
ready

Revisions

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

  • Revision 1: published by Tim on
  • Revision 5: published by Dony Antony on