HTML Preparation code:
x
 
1
<script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
2
<script src="https://igor.moomers.org/random/datefns.js"></script>
3
Script Preparation code:
 
window.ds = dayjs(new Date("2020-02-19T00:51:53.623839+00:00"));
window.ht = new Date("2020-02-19T00:51:53.623839+00:00");
Tests:
  • Date-fns

     
    window.datefns.startOfWeek(window.ht);
  • Dayjs

     
    window.ds.startOf("week")
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Date-fns
    Dayjs

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Date-fns 7925620.5 Ops/sec
Dayjs 4208078.5 Ops/sec