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.ds);
  • Dayjs

     
    dayjs().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: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15
Safari 16 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Date-fns 4532913.5 Ops/sec
Dayjs 3374404.0 Ops/sec