Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Moment Dayjs Date-fns end of day comparison
(version: 1)
Comparing performance of:
Date-fns vs Moment vs Dayjs vs Luxon
Created:
one year ago
by:
Guest
Jump to the latest result
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')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
Date-fns
Moment
Dayjs
Luxon
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 days ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 YaBrowser/26.4.0.0 Safari/537.36
Browser/OS:
Yandex Browser 26 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Date-fns
1228479.8 Ops/sec
Moment
267788.3 Ops/sec
Dayjs
1090726.8 Ops/sec
Luxon
199323.6 Ops/sec
Related benchmarks:
date format
date to iso comparaison
Moment Dayjs Date-fns comparison
date to iso comparaison with mutable moment
luxon vs datefns vs moment vs dayjs
luxon vs datefns vs moment-timezone
luxon vs datefns vs moment vs day.js
Moment Dayjs Date-fns date format benchmark
Moment Dayjs Date-fns date format benchmark with abs comparitor
Comments
Confirm delete:
Do you really want to delete benchmark?