Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
luxon vs dayjs vs date-fns vs ff native temporal vs moment (formatting)
Create and format dates from a timestamp
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Safari/605.1.15
Browser:
Safari 26
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
4 months ago
Test name
Executions per second
luxon v3.5.0
747213.9 Ops/sec
dayjs v1.11.13
2621421.8 Ops/sec
date-fns v4.1.0
25943.0 Ops/sec
Native Temporal (Firefox 139)
0.0 Ops/sec
moment.js v2.29.1
1139875.2 Ops/sec
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/luxon/3.5.0/luxon.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.13/dayjs.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/date-fns/4.1.0/cdn.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
Script Preparation code:
window.timestamp = 1735660089 window.intlFormat = { year: "numeric", month: "2-digit", day: "2-digit", hour: "numeric", minute: "numeric", hour12: true, }
Tests:
luxon v3.5.0
var date = luxon.DateTime.fromMillis(timestamp * 1000); date.toLocaleString(intlFormat)
dayjs v1.11.13
var date = dayjs(timestamp * 1000); date.format("L LT")
date-fns v4.1.0
var date = dateFns.fromUnixTime(timestamp); dateFns.intlFormat(date, intlFormat)
Native Temporal (Firefox 139)
var instant = Temporal.Instant.fromEpochMilliseconds(timestamp * 1000) instant.toLocaleString(intlFormat)
moment.js v2.29.1
var date = moment(timestamp) date.format("L LT")