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 = "2020-02-19T00:51:53.623839+00:00";
Tests:
  • Date-fns

     
    window.datefns.parseISO(window.ds);
    window.datefns.add(new Date(2014, 8, 1, 10, 19, 50), {
      years: 2,
      months: 9,
      weeks: 1,
      days: 7,
      hours: 5,
      minutes: 9,
      seconds: 30,
    });
  • Dayjs

     
    dayjs(ds)
    dayjs(new Date(2014, 8, 1, 10, 19, 50)).add({
      years: 2,
      months: 9,
      weeks: 1,
      days: 7,
      hours: 5,
      minutes: 9,
      seconds: 30,
    })
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 year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120 on Windows
View result in a separate tab
Test name Executions per second
Date-fns 63521.7 Ops/sec
Dayjs 71379.0 Ops/sec