Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Moment valueOf vs. Date.parse
Requires Chrome or Firefox for Date.parse heuristics.
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Browser:
Chrome 120
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Pure Date.parse
4.4M/s
Pure moment
337K/s
View exact numbers
Test name
Executions per second
✓
Pure Date.parse
4,389,346 Ops/sec
Pure moment
337,387 Ops/sec
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment.js"></script>
Tests:
Pure moment
return moment("2016-12-24 09:00:00", "YYYY-MM-DD HH:mm:ss").valueOf();
Pure Date.parse
return Date.parse("2016-12-24 09:00:00");