Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
moment (2.11.2) valueOf vs new Date().getTime() with a specific date constructor
Comparing performance of: moment().valueOf() vs new Date().getTime() with a specific date constructor
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Browser:
Chrome 134
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
moment().valueOf()
183657.3 Ops/sec
new Date().getTime()
3109842.2 Ops/sec
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
Tests:
moment().valueOf()
return moment('2022-07-29T04:38:22.641Z').valueOf()
new Date().getTime()
return new Date('2022-07-29T04:38:22.641Z').getTime()