Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Modern Date Libraries
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Browser:
Chrome 127
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Luxon
130072.8 Ops/sec
Date-fns
139725.8 Ops/sec
Dayjs
108464.1 Ops/sec
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/date-fns/2.0.0-alpha0/date_fns.min.js" integrity="sha512-0kon+2zxkK5yhflwFqaTaIhLVDKGVH0YH/jm8P8Bab/4EOgC/n7gWyy7WE4EXrfPOVDeNdaebiAng0nsfeFd9A==" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/luxon@1.25.0/build/global/luxon.min.js"></script> <script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
Script Preparation code:
window.__date__ = new Date(); window.__expected__ = '2000/01/06';
Tests:
Luxon
var actual = luxon.DateTime.fromJSDate(__date__).toFormat('yyyy/MM/dd'); console.assert(actual === __expected__);
Date-fns
var actual = dateFns.format(__date__, 'YYYY/MM/DD'); console.assert(actual === __expected__);
Dayjs
var actual = dayjs(__date__).format('YYYY/MM/DD'); console.assert(actual === __expected__);