Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
temporal vs luxon
(version: 2)
Comparing performance of:
luxon vs date vs temporal
Created:
9 days ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/luxon/3.7.2/luxon.min.js'></script>
Script Preparation code:
let info = {year: 1995, month: 1, day: 1, hour: 0, minute: 0, second: 0, millisecond: 0}; let dt = luxon.DateTime.local(info.year, info.month, info.day, info.hour, info.minute, info.second, info.millisecond); let date = new Date(info.year, info.month - 1, info.day, info.hour, info.minute, info.second, info.millisecond); let temp = Temporal.ZonedDateTime.from({...info, timeZone: Temporal.Now.timeZoneId()});
Tests:
luxon
let d; while (dt.year < 2006) { dt = dt.plus({days: 1}); d = dt.toJSDate(); }
date
let d; while (date.year < 2006) { date = new Date(date); date.setDate(date.getDate() + 1); d = date; }
temporal
let d; while (temp.year < 2006) { temp = temp.add({days: 1}); d = new Date(temp.toInstant().epochMilliseconds); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
luxon
date
temporal
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
9 days ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Browser/OS:
Chrome 149 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
luxon
136347824.0 Ops/sec
date
196074240.0 Ops/sec
temporal
15306559.0 Ops/sec
Related benchmarks:
Luxon add day
date parsing test
luxon3 vs datefns
luxon.fromSeconds vs luxon.fromJSDate
Luxon vs moment comparison
luxon vs moment (UTC)
dayjs vs luxon (manipulating)
this is a test
js vs luxon iso, milli, date
Comments
Confirm delete:
Do you really want to delete benchmark?