Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
dayjs vs luxon currentDate
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Browser:
Firefox 132
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
luxon
253559.1 Ops/sec
dayjs
25934.0 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/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) window.__timezone__ = 'Europe/Warsaw'; window.__luxon__ = luxon; window.__dayjs__ = dayjs;
Tests:
luxon
__luxon__.DateTime.now().setZone(__timezone__);
dayjs
__dayjs__().tz(__timezone__);