Test name | Executions per second |
---|---|
Moment | 125628.7 Ops/sec |
Native | 3459097.2 Ops/sec |
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment.min.js'></script>
moment('2017-09-29T11:23:40.483Z').add('MMM DD, YYYY hh:mm:ss A');
let d = new Date('2017-09-29T11:23:40.483Z')
d.getDate() + "-" + (d.getMonth()+1) + "-" + d.getFullYear() + " " +
d.getHours() + ":" + d.getMinutes();