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 (Macintosh; Intel Mac OS X 10.15; rv:150.0) Gecko/20100101 Firefox/150.0
Browser:
Firefox 150
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
3 months ago
datefns
1.4M/s
day.js
1.1M/s
luxon
819K/s
moment
383K/s
View exact numbers
Test name
Executions per second
✓
datefns
1,359,724 Ops/sec
day.js
1,080,792 Ops/sec
luxon
819,281 Ops/sec
moment
382,890 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)