HTML Preparation code:
x
 
1
2
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js'></script>
Tests:
  • String moment date

     
    const date = moment('22-01-1996')
  • Date() moment date

     
    const date = moment(new Date('22-01-1996'))
  • new Date()

     
    const date = new Date('22-01-1996')
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    String moment date
    Date() moment date
    new Date()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
Test name Executions per second
String moment date 340847.9 Ops/sec
Date() moment date 987889.0 Ops/sec
new Date() 5440624.5 Ops/sec