Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Dayjs Date-fns format and add day comparison
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0
Browser:
Firefox 137
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Date-fns
165474.5 Ops/sec
Dayjs
186685.0 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"); window.datefns.add(new Date(), { weeks: 1 });
Dayjs
dayjs(ds) dayjs().format("MM-DD-YYYY"); dayjs().add(1, 'days');