Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
CUSTOM MomentJS vs Native Date
(version: 1)
Comparing performance of:
Moment vs Native
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment.min.js'></script>
Tests:
Moment
moment('2017-09-29T11:23:40.483Z').add('MMM DD, YYYY hh:mm:ss A');
Native
let d = new Date('2017-09-29T11:23:40.483Z') d.getDate() + "-" + (d.getMonth()+1) + "-" + d.getFullYear() + " " + d.getHours() + ":" + d.getMinutes();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Moment
Native
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Browser/OS:
Chrome 134 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Moment
125628.7 Ops/sec
Native
3459097.2 Ops/sec
Related benchmarks:
MomentJS VS Native
new Date vs date.parse
Date vs moment 1238uu
MomentJS vs Native Date
MomentJS vs Native ISO String Fixed Date
Moment Unix vs Vanilla Javascript
MomentJS vs Native Date 2
moment(string) vs moment(new Date(string)) vs new Date(string)
CUSTOM1 MomentJS vs Native Date
Comments
Confirm delete:
Do you really want to delete benchmark?