HTML Preparation code:
AخA
 
1
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment.js"></script>
Tests:
  • Date.parse();

     
    return Date.parse("2016-12-24 09:00:00");
  • new Date().getTime()

     
    return new Date("2016-12-24 09:00:00").getTime();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Date.parse();
    new Date().getTime()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Chrome 90 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Date.parse(); 1868091.9 Ops/sec
new Date().getTime() 1671064.9 Ops/sec