Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Compare performance between Dayjs.tz and Temporal.ZonedDateTime
(version: 6)
Get the end of month of an arbitrary month with both.
Comparing performance of:
Create a Dayjs.tz vs Create a Temporal.ZonedDateTime
Created:
8 months ago
by:
Registered User
Jump to the latest result
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 });
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Create a Dayjs.tz
Create a Temporal.ZonedDateTime
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
3 months ago
)
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0
Browser/OS:
Firefox 145 on Ubuntu
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Create a Dayjs.tz
4817.2 Ops/sec
Create a Temporal.ZonedDateTime
54611.4 Ops/sec
Related benchmarks:
JS Date libraries 2023.0
JS Date libraries 2 fixed
dayjs vs luxon currentDate
dayjs vs luxon withTimezoneFromString
dayjs vs luxon timeToEnd
dayjs vs luxon between
Date vs Dayjs.utc() vs Dayjs().utc()
moment.js vs day.js vs date-fns set
Dates_Test
Comments
Confirm delete:
Do you really want to delete benchmark?