Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
MomentJS VS Date VS Date-Fns - ttlSec
(version: 1)
Comparing performance of:
MomentJS vs Date JS vs Date-Fns
Created:
9 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/moment@2.29.4/moment.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/date-fns/cdn.min.js"></script>
Script Preparation code:
var unix = 1724409214;
Tests:
MomentJS
moment().add(3600, 's').utc().toISOString()
Date JS
const now = new Date(); const futureDate = new Date(now.getTime() + (3600 * 1000)); const isoString = futureDate.toISOString();
Date-Fns
dateFns.addSeconds(new Date(), 3600).toISOString()
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
MomentJS
Date JS
Date-Fns
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
9 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Browser/OS:
Chrome 138 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
MomentJS
416613.5 Ops/sec
Date JS
1047861.2 Ops/sec
Date-Fns
890401.5 Ops/sec
Related benchmarks:
Date vs moment with compare
date-fns vs moment addDays
date-fns vs moment addDays2
Moment@2.29
Moment@2.30
MomentJS VS Date
MomentJS VS Date - ttlSec
MomentJS VS Date VS Date-Fns - getRoundedDate
MomentJS VS Date VS Date-Fns - getTtlFromKey
Comments
Confirm delete:
Do you really want to delete benchmark?