HTML Preparation code:
x
 
1
<script src="https://cdn.jsdelivr.net/npm/dayjs@1.11.13/dayjs.min.js"></script>
2
<script src="https://cdn.jsdelivr.net/npm/date-fns@4.1.0/cdn.min.js">
3
</script>
4
Script Preparation code:
 
/*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();
}
Tests:
  • datefns

     
    dateFns.parse('2025-01-09', 'yyyy-MM-dd', new Date())
  • dayjs

     
    dayjs('2025-01-09')
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    datefns
    dayjs

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133 on Windows
View result in a separate tab
Test name Executions per second
datefns 171811.1 Ops/sec
dayjs 2492891.5 Ops/sec