moment("2024-07-09T12:18:14.332Z").valueOf()
new Date("2024-07-09T12:18:14.332Z").getTime()
Date tested:
5 months ago
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Test name
Executions per second
moment
220193.6 Ops/sec
date
5509406.5 Ops/sec
Benchmark definition (click to collapse):
HTML Preparation code:
<script src="https://cdn.rawgit.com/moment/moment/2.7.0/moment.js"></script>
Tests:
moment
moment("2024-07-09T12:18:14.332Z").valueOf()
date
new Date("2024-07-09T12:18:14.332Z").getTime()
Open this result on MeasureThat.net