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

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100 on Windows
View result in a separate tab
Test name Executions per second
new Date() 1208835.0 Ops/sec
Intl.DateTimeFormat() 278692.0 Ops/sec
Date().toLocaleString() 6185.9 Ops/sec
JavaScript Date Time format 2060749.0 Ops/sec
JavaScript Date Time format using Template Strings. 1893144.0 Ops/sec