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
Go 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
Native
3.5M/s
Moment
126K/s
View exact numbers
Test name
Executions per second
✓
Native
3,459,097 Ops/sec
Moment
125,629 Ops/sec
Related benchmarks
MomentJS vs Native Date
Moment Unix vs Vanilla Javascript
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?