Test name | Executions per second |
---|---|
Date-fns | 419697.3 Ops/sec |
Dayjs | 336783.9 Ops/sec |
<script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
<script src="https://igor.moomers.org/random/datefns.js"></script>
window.ds = "2020-02-19T00:51:53.623839+00:00";
window.datefns.parseISO(window.ds);
window.datefns.format(new Date(), "mm-dd-yyyy");
dayjs(ds)
dayjs().format("MM-DD-YYYY")