Script Preparation code:
Tests:
  • new Date()

  • Intl.DateTimeFormat()

  • Date().toLocaleString()

  • JavaScript Date Time format

  • JavaScript Date Time format using Template Strings.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    new Date()
    Intl.DateTimeFormat()
    Date().toLocaleString()
    JavaScript Date Time format
    JavaScript Date Time format using Template Strings.

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 17 days ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124 on Ubuntu
View result in a separate tab
Test name Executions per second
new Date() 2036772.0 Ops/sec
Intl.DateTimeFormat() 14651.1 Ops/sec
Date().toLocaleString() 15038.8 Ops/sec
JavaScript Date Time format 2944115.0 Ops/sec
JavaScript Date Time format using Template Strings. 3244308.0 Ops/sec