Test name | Executions per second |
---|---|
datefns | 752329.4 Ops/sec |
luxon | 449708.7 Ops/sec |
moment | 185361.1 Ops/sec |
day.js | 751806.6 Ops/sec |
<script src="https://cdn.jsdelivr.net/npm/luxon@1.26.0/build/global/luxon.min.js"></script>
<script src="https://igor.moomers.org/random/datefns.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.7/dayjs.min.js'></script>
window.ds = "2020-02-19T00:51:53.623839+00:00";
window.datefns.parseISO(window.ds)
luxon.DateTime.fromISO(ds);
moment(ds)
dayjs(ds)