Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
dayjs vs luxon between
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Browser:
Chrome 125
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
luxon
16201.6 Ops/sec
dayjs
6159.9 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/dayjs@1.11.11/dayjs.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/dayjs@1.11.11/plugin/timezone.js"></script> <script src="https://cdn.jsdelivr.net/npm/dayjs@1.11.11/plugin/utc.js"></script> <script src="https://cdn.jsdelivr.net/npm/dayjs@1.11.11/plugin/isBetween.js"></script> <script src="https://cdn.jsdelivr.net/npm/luxon@1.28.0/build/global/luxon.min.js"></script>
Script Preparation code:
dayjs.extend(window.dayjs_plugin_utc) dayjs.extend(window.dayjs_plugin_timezone) dayjs.extend(window.dayjs_plugin_isBetween) window.__start__ = '2024-04-30 08:33'; window.__end__ = '2024-05-30 08:33'; window.__timezone__ = 'Europe/Warsaw'; window.__luxon__ = luxon; window.__dayjs__ = dayjs;
Tests:
luxon
const start = __luxon__.DateTime.fromFormat(__start__, 'yyyy-MM-dd HH:mm', { zone: __timezone__ }); const end = __luxon__.DateTime.fromFormat(__end__, 'yyyy-MM-dd HH:mm', { zone: __timezone__ }); const current = __luxon__.DateTime.now().setZone(__timezone__); const currentValue = current.startOf('minute').valueOf(); currentValue >= start.valueOf() && currentValue <= end.valueOf();
dayjs
const start = __dayjs__.tz(__start__, 'YYYY-MM-DD HH:mm', __timezone__); const end = __dayjs__.tz(__end__, 'YYYY-MM-DD HH:mm', __timezone__); const current = __dayjs__().tz(__timezone__); current.isBetween(start, end, 'minute', []);