parse date (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>

Setup

const dateToParse = '2019-01-25';

Test runner

Ready to run.

Testing in
TestOps/sec
Format with date js
const d = dayjs(dateToParse).format('dddd D MMMM YYYY-HH:mm');
d.split('-')
ready
Parse twice
dayjs(dateToParse).format('dddd D MMMM YYYY');
dayjs(dateToParse).format('HH:mm');
ready

Revisions

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