Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
luxon v dayjs vs moment v luxon
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
Browser:
Firefox 123
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
luxon
134947.7 Ops/sec
moment
433568.5 Ops/sec
dayjs
416537.7 Ops/sec
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();