Script Preparation code:
Tests:
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: one year 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
JavaScript Date Time format using Template Strings.
6.5M/s
JavaScript Date Time format
1.5M/s
new Date()
1.4M/s
Intl.DateTimeFormat()
740K/s
Date().toLocaleString()
21K/s
View exact numbers
Test name Executions per second
JavaScript Date Time format using Template Strings. 6,510,590 Ops/sec
JavaScript Date Time format 1,503,405 Ops/sec
new Date() 1,427,767 Ops/sec
Intl.DateTimeFormat() 740,363 Ops/sec
Date().toLocaleString() 21,434 Ops/sec