Script Preparation code:
Tests:

Historical Performance Data aggregated from 91 community runs

Desktop Results:
Chrome 82 runs
new Date().toISOString()
910K/s
new Date().toLocaleString()
503K/s

Fastest: new Date().toISOString() (1.8x faster)

View exact numbers
  • new Date().toISOString(): 910,085 ops/sec
  • new Date().toLocaleString(): 502,634 ops/sec
Firefox 9 runs
new Date().toISOString()
2.3M/s
new Date().toLocaleString()
399K/s

Fastest: new Date().toISOString() (5.9x faster)

View exact numbers
  • new Date().toISOString(): 2,334,812 ops/sec
  • new Date().toLocaleString(): 398,924 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    new Date().toISOString()
    new Date().toLocaleString()

    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/148.0.0.0 Safari/537.36 Edg/148.0.0.0
Chrome 148 on Windows
View result in a separate tab
new Date().toLocaleString()
543K/s
new Date().toISOString()
312K/s
View exact numbers
Test name Executions per second
new Date().toLocaleString() 543,276 Ops/sec
new Date().toISOString() 312,041 Ops/sec