Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Dayjs Date-fns format comparison
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Browser:
Firefox 115
Operating system:
Windows 7
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Dayjs
113K/s
Date-fns
81K/s
View exact numbers
Test name
Executions per second
✓
Dayjs
112,884 Ops/sec
Date-fns
80,870 Ops/sec
HTML Preparation code:
<script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script> <script src="https://igor.moomers.org/random/datefns.js"></script>
Script Preparation code:
window.ds = "2020-02-19T00:51:53.623839+00:00";
Tests:
Date-fns
window.datefns.parseISO(window.ds); window.datefns.format(new Date(), "mm-dd-yyyy");
Dayjs
dayjs(ds) dayjs().format("MM-DD-YYYY")