Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
luxon vs datefns vs moment vs day.js
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Mobile Safari/537.36 EdgA/133.0.0.0
Browser:
Chrome Mobile 133
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
datefns
451K/s
day.js
395K/s
luxon
316K/s
moment
102K/s
View exact numbers
Test name
Executions per second
✓
datefns
450,585 Ops/sec
day.js
395,418 Ops/sec
luxon
316,261 Ops/sec
moment
101,746 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/luxon@1.26.0/build/global/luxon.min.js"></script> <script src="https://igor.moomers.org/random/datefns.js"></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment.min.js'></script> <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)