Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Compare performance between Dayjs.tz and Temporal.ZonedDateTime
Get the end of month of an arbitrary month with both.
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Browser:
Chrome 139
Operating system:
Linux
Device Platform:
Desktop
Date tested:
9 months ago
Test name
Executions per second
Create a Dayjs.tz
21714.9 Ops/sec
Create a Temporal.ZonedDateTime
177619.2 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/timezone.js"></script> <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/arraySupport.js"></script> <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/utc.js"></script> <script src='https://cdn.jsdelivr.net/npm/temporal-polyfill@0.3.0/global.min.js'></script>
Script Preparation code:
dayjs.extend(window.dayjs_plugin_timezone); dayjs.extend(window.dayjs_plugin_arraySupport); dayjs.extend(window.dayjs_plugin_utc);
Tests:
Create a Dayjs.tz
dayjs.tz([2025, 7, 1], "Europe/London").endOf("month");
Create a Temporal.ZonedDateTime
const dt = Temporal.ZonedDateTime.from({ year: 2025, month: 8, day: 1, timeZone: "Europe/London" }); dt.with({ day: dt.daysInMonth, hour: 24, minute: 59, second: 59, millisecond: 999 });