Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
luxon v dayjs vs moment v luxon
(version: 0)
Comparing performance of:
luxon vs moment vs dayjs
Created:
3 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.5/dayjs.min.js" integrity="sha512-Ot7ArUEhJDU0cwoBNNnWe487kjL5wAOsIYig8llY/l0P2TUFwgsAHVmrZMHsT8NGo+HwkjTJsNErS6QqIkBxDw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/luxon/3.0.3/luxon.min.js" integrity="sha512-JMLeb+eC5msz4/qpkMO/ftvmiXPJKeO2RQ96r5pXitplvXk2U5CgnsQ5COWnhbsd54KBklQc+/kc0GoZ4UvbBw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="https://momentjs.com/downloads/moment.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
Script Preparation code:
window.__date__ = new Date(); window.__luxon__ = luxon.DateTime.fromJSDate(__date__); window.__moment__ = moment(__date__); window.__dayjs__ = dayjs(__date__);
Tests:
luxon
var addedMinutesLuxon = __luxon__.plus({minutes: 30}); addedMinutesLuxon.toFormat('yyyy/MM/dd'); addedMinutesLuxon.toMillis();
moment
var addedMinutesMoment = __moment__.add(7, 'm'); addedMinutesMoment.format('YYYY/MM/DD'); addedMinutesMoment.valueOf();
dayjs
var addedMinutesDayjs = __dayjs__.add(7, 'm'); addedMinutesDayjs.format('YYYY/MM/DD'); addedMinutesDayjs.valueOf();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
luxon
moment
dayjs
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Browser/OS:
Chrome 134 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
luxon
189029.4 Ops/sec
moment
1131231.6 Ops/sec
dayjs
377953.4 Ops/sec
Related benchmarks:
luxon vs datefns vs moment vs dayjs (formatting)
luxon vs datefns vs moment vs dayjs (calculations)
luxon 3.2.1 vs datefns vs moment vs dayjs (formatting)
luxon vs datefns vs moment vs dayjs (calculations) new
Comments
Confirm delete:
Do you really want to delete benchmark?