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: 6 days 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
new Date() 1427766.8 Ops/sec
Intl.DateTimeFormat() 740363.4 Ops/sec
Date().toLocaleString() 21434.3 Ops/sec
JavaScript Date Time format 1503405.4 Ops/sec
JavaScript Date Time format using Template Strings. 6510590.0 Ops/sec