Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Moment Dayjs Date-fns add years benchmark
(version: 0)
Moment Dayjs Date-fns add years benchmark
Comparing performance of:
Date-fns vs Moment vs Dayjs
Created:
4 years ago
by:
Guest
Jump to the latest result
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 src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment.min.js'></script>
Script Preparation code:
window.ds = "2020-02-19T00:51:53.623839+00:00";
Tests:
Date-fns
window.datefns.addYears(window.datefns.parseISO(window.ds), 2)
Moment
moment(ds).add(2,"y")
Dayjs
dayjs(ds).add(2,"y")
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Date-fns
Moment
Dayjs
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Moment Dayjs Date-fns comparison
Moment Dayjs Date-fns format benchmark
Moment Dayjs Date-fns date format benchmark
Moment Dayjs Date-fns date format benchmark with abs comparitor
Comments
Confirm delete:
Do you really want to delete benchmark?