Test name | Executions per second |
---|---|
datefns | 171811.1 Ops/sec |
dayjs | 2492891.5 Ops/sec |
<script src="https://cdn.jsdelivr.net/npm/dayjs@1.11.13/dayjs.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/date-fns@4.1.0/cdn.min.js">
</script>
/*your preparation JavaScript code goes here
To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/
//window.ds = "2020-02-19T00:51:53.623839+00:00";
async function globalMeasureThatScriptPrepareFunction() {
// This function is optional, feel free to remove it.
// await someThing();
}
dateFns.parse('2025-01-09', 'yyyy-MM-dd', new Date())
dayjs('2025-01-09')