Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Moment Dayjs Date-fns end of day comparison
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0
Browser:
Firefox 144
Operating system:
Linux
Device Platform:
Desktop
Date tested:
9 months ago
Date-fns
526K/s
Dayjs
514K/s
Moment
139K/s
Luxon
86K/s
View exact numbers
Test name
Executions per second
✓
Date-fns
525,954 Ops/sec
Dayjs
513,593 Ops/sec
Moment
139,011 Ops/sec
Luxon
85,544 Ops/sec
HTML Preparation code:
<script src="https://unpkg.com/dayjs@1.8.21/dayjs.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://cdn.jsdelivr.net/npm/luxon@3.4.0/build/global/luxon.min.js"></script>
Script Preparation code:
window.ds = "2020-02-19T00:51:53.623839+00:00";
Tests:
Date-fns
window.datefns.endOfDay(window.datefns.parseISO(window.ds))
Moment
moment(ds).endOf('day')
Dayjs
dayjs(ds).endOf('day')
Luxon
luxon.DateTime.fromISO(ds).endOf('day')