Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Windows
Desktop
25 days ago
Test name Executions per second
datefns 752329.4 Ops/sec
luxon 449708.7 Ops/sec
moment 185361.1 Ops/sec
day.js 751806.6 Ops/sec
HTML Preparation code:
AخA
 
1
<script src="https://cdn.jsdelivr.net/npm/luxon@1.26.0/build/global/luxon.min.js"></script>
2
<script src="https://igor.moomers.org/random/datefns.js"></script>
3
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment.min.js'></script>
4
<script src='https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.7/dayjs.min.js'></script>
Script Preparation code:
 
window.ds = "2020-02-19T00:51:53.623839+00:00";
Tests:
  • datefns

     
    window.datefns.parseISO(window.ds)
  • luxon

     
    luxon.DateTime.fromISO(ds);
  • moment

     
    moment(ds)
  • day.js

     
    dayjs(ds)