[JavaScript] Performance comparison of Date.now vs new Date().getTime() vs +new Date
I checked the execution time of JavaScript’s Date.now vs new Date().getTime() vs +new Date with jsPerf.
The result was that Date.now was the fastest.
So let’s use Date.now.
That’s all from the Gemba.