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; Ubuntu; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0
Browser:
Firefox 145
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
3 months ago
Test name
Executions per second
Create a Dayjs.tz
4817.2 Ops/sec
Create a Temporal.ZonedDateTime
54611.4 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 });